All Forums >> [Scripting] >> ASP >> Cannot update. Database or object is read-only. Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Posts: 54
Score: 0
Joined: 5/23/2001
From: USA
Status: offline
Microsoft JET Database Engine error '80040e09'
Cannot update. Database or object is read-only.
/addnew.asp, line 9 No sure why I'm receiving this error. I can write the fields to a page but not update. Here is my code, line 9 is objrs.addnew *********************8 Dim objrs, x, strcriteria, strconnect strConnect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=e:\websites\liquiflo\liquiflo.mdb;" Set objrs = Server.CreateObject ("ADODB.Recordset") objrs.open "Info", strConnect, 2, 2 objrs.MoveLast objrs.AddNew Objrs("Name")=request("Name") *************************
Posts: 16
Score: 0
Joined: 5/22/2001
From: USA
Status: offline
you cannot update because the defaul type for an ADODB.Recordset is read-only. if you want to make modification you have to put some suplimentary lines like this: