• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

ASP - Need help updating my database

HamSupLo

Diamond Member
I created a form where I can insert a new record into my Access database.

Here's my script:

<%
pname=Request.Form("pname")
ppicture=Request.Form("ppicture")
pinfo=Request.Form("pinfo")
pdesc=Request.Form("pdescription")



Set conn=Server.CreateObject("ADODB.Connection")
conn.open "DSN=db1"

set rs=Server.CreateObject("ADODB.recordset")
rs.open "state", conn, 1,2

rs.AddNew
rs("program_name")=pname
rs("program_info")=pinfo
rs("program_desc")=pdesc
rs("pictures")=ppicture
rs.Update


%>

and when i submit, i get this error:

Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Cannot update. Database or object is read-only.
/test3.asp, line 30

Any help is appreciated!
 
Dood - ASP is a bit vague.

Make sure your NT permissions are set correctly - the IUSR_WEB or whoever it is needs modify access 🙂
 
Back
Top