I cannot insert data into my access database that resides on my own PC (I'm using IIS as a local server, Win XP).
The error I get is the following:
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
/stocks/register_check.asp, line 60
I have read that this might be something to do with permissions, but how can I effect the permissions??? My code is listed below. Thanks for any help in advance.
dim username, password, email, surname, first_name, organisation
username = Request.Form("username"
password = Request.Form("password"
email = Request.Form("email"
surname = Request.Form("surname"
first_name = Request.Form("first_name"
organisation = Request.Form("organisation"
dim objConn, strConnection
set objConn = Server.CreateObject("ADODB.Connection"
strConnection = "DSN=TestConny"
objConn.Open strConnection
Set Recordset1 = Server.CreateObject("ADODB.Recordset"
Set Recordset1.ActiveConnection = objConn
Recordset1.Open strQ, objConn
sql = "INSERT into Users (Username, Password, Email, Surname, First_name, Organisation) VALUES ('" & username & "', '" & password & "', '" & email & "', '" & surname & "', '" & first_name & "', '" & organisation & "')"
objConn.Execute sql