SteveMersereau
Technical User
I'm having trouble updating a database.. never had this one before!
I'm using this code;
The error message I'm getting is
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.
/db/dataentry/insert.asp, line 49
Where line 49 is;
myRS.Update
I've checked the locktype, and connection and they appear fine. The connection will read from the database ok.
Any ideas where to start...? it's an Access 2000 database by the way.
Love,
Steve
I'm using this code;
Code:
Dim myRS
Set myRS = Server.CreateObject("ADODB.Recordset")
myRS.CursorType = 1
myRS.LockType = 3
myRS.Open "people", myConn
myRS.AddNew
myRS("name")=Request.Form("form_name")
.....etc etc
myRS.Update
myRS.Close
Set myRS = Nothing
myConn.Close
Set myConn=Nothing
%>
The error message I'm getting is
Microsoft OLE DB Provider for ODBC Drivers error '80004005'
[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.
/db/dataentry/insert.asp, line 49
Where line 49 is;
myRS.Update
I've checked the locktype, and connection and they appear fine. The connection will read from the database ok.
Any ideas where to start...? it's an Access 2000 database by the way.
Love,
Steve