Solitude1056
IS-IT--Management
I've got a survey with a working conn, but once the proc page gets to the recordset point, it throws the following error:
Microsoft OLE DB Provider for ODBC Drivers error "80004005"
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
The webpage processes the form's results from the prior page, and is supposed to then enter the info into the database. When the SQL string is tested in Access, it's fine, but I get an error once I try it through the live webpage. I've debugged enough and have discovered the error is from the third line of the following relevant part of the code:
SQL = "insert into Table1 (ID,Member,Degree,Title) "
SQL = SQL & "Values(" & intUID & "," & intMember & "," & intDegree & "," & intTitle & "
"
set RS = Server.CreateObject("ADODB.Recordset"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
RS.Open SQL, Conn
Conn.Execute SQL
I've found webpages that suggest Access does best if you Addnew and *then* get the ID/Auto-number for the new record (I have the first page on the survey getting max(ID) instead). When I tried Addnew, it also threw an error. If anyone has any ideas, I'd really love to hear them.
Microsoft OLE DB Provider for ODBC Drivers error "80004005"
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
The webpage processes the form's results from the prior page, and is supposed to then enter the info into the database. When the SQL string is tested in Access, it's fine, but I get an error once I try it through the live webpage. I've debugged enough and have discovered the error is from the third line of the following relevant part of the code:
SQL = "insert into Table1 (ID,Member,Degree,Title) "
SQL = SQL & "Values(" & intUID & "," & intMember & "," & intDegree & "," & intTitle & "
set RS = Server.CreateObject("ADODB.Recordset"
RS.Open SQL, Conn
Conn.Execute SQL
I've found webpages that suggest Access does best if you Addnew and *then* get the ID/Auto-number for the new record (I have the first page on the survey getting max(ID) instead). When I tried Addnew, it also threw an error. If anyone has any ideas, I'd really love to hear them.