I am creating an asp page that updates a users personal data in an access database. I can query the database with no problems. But when I try to update I get the following error:
Error Type:
Microsoft JET Database Engine (0x80040E09)
Cannot update. Database or object is read-only.
My code to open the database is as follows (and has worked for me in the past):
adOpenForwardOnly = 0
adOpenStatic = 1
adOpenDynamic = 2
adLockReadOnly = 1
adLockOptimistic = 3
adCmdText = 0
adCmdTable = 2
Set conn = Server.CreateObject("ADODB.Connection"
conn.Open DBProvider & DataSource & SecurityInfo
Set rs = Server.CreateObject("ADODB.Recordset"
rs.Open "writers_tbl", conn, adOpenDynamic, adLockOptimistic, adCmdTable
rs.MoveFirst
writerID = Request.Form("writerID"
if writerID = "" then
response.redirect "frame.asp?page_id=9&Err=2"
end if
rs.Find "ID LIKE '" & writerID & "' "
if not rs.eof then
strA = Request.Form("fname"
if strA <> "" then rs("writer_fname"
= strA
'etc....
I just recently switched over to XP professional from win2K. And this is when the problem arose. Actually I am getting this same error for past code that is proven to work. Am I missing some permissions settings somewhere? I am a complete newbie to XP. Maybe IIS (this error is coming from my machine as I am currently testing code on my machine). Any ideas or suggestions are greatly appreciated. TIA - Rory
Error Type:
Microsoft JET Database Engine (0x80040E09)
Cannot update. Database or object is read-only.
My code to open the database is as follows (and has worked for me in the past):
adOpenForwardOnly = 0
adOpenStatic = 1
adOpenDynamic = 2
adLockReadOnly = 1
adLockOptimistic = 3
adCmdText = 0
adCmdTable = 2
Set conn = Server.CreateObject("ADODB.Connection"
conn.Open DBProvider & DataSource & SecurityInfo
Set rs = Server.CreateObject("ADODB.Recordset"
rs.Open "writers_tbl", conn, adOpenDynamic, adLockOptimistic, adCmdTable
rs.MoveFirst
writerID = Request.Form("writerID"
if writerID = "" then
response.redirect "frame.asp?page_id=9&Err=2"
end if
rs.Find "ID LIKE '" & writerID & "' "
if not rs.eof then
strA = Request.Form("fname"
if strA <> "" then rs("writer_fname"
'etc....
I just recently switched over to XP professional from win2K. And this is when the problem arose. Actually I am getting this same error for past code that is proven to work. Am I missing some permissions settings somewhere? I am a complete newbie to XP. Maybe IIS (this error is coming from my machine as I am currently testing code on my machine). Any ideas or suggestions are greatly appreciated. TIA - Rory