HI all,
The problem that i am facing is that when I try to insert records into MS Access Database from my ASP page.
I have written the following code:
set DB = server.createobject("ADODB.Connection"
DB.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.mappath(db1.mdb)"
set rs = server.createobject("ADODB.Recordset"
rs.open "select * from orderTab",db,adOpenDynamic,adLockOptimistic
rs.addnew '''this is the line which gives Error
The error is Cannot update as the object is readonly or the locktype does not support Updates..
I have tried to change the cursortype but even then it does not work. The Database is not readonly. I have also checked the permissions on the Virtual Directory, it has read, write and execute permissions.
Please Help
The problem that i am facing is that when I try to insert records into MS Access Database from my ASP page.
I have written the following code:
set DB = server.createobject("ADODB.Connection"
DB.open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + Server.mappath(db1.mdb)"
set rs = server.createobject("ADODB.Recordset"
rs.open "select * from orderTab",db,adOpenDynamic,adLockOptimistic
rs.addnew '''this is the line which gives Error
The error is Cannot update as the object is readonly or the locktype does not support Updates..
I have tried to change the cursortype but even then it does not work. The Database is not readonly. I have also checked the permissions on the Virtual Directory, it has read, write and execute permissions.
Please Help