I get this error
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
I am trying to input data into a database from a webased form. What am I doing wrong?
here is my asp code
<%@LANGUAGE="VBSCRIPT"%>
<%Response.Buffer=true%>
<%
Dim conn,rs,strsql,surveyno,deptno,position
set conn = server.CreateObject("ADODB.Connection"
conn.Open "DSN=survey;uid=user;pwd=2000"
Set cmd = Server.CreateObject("ADODB.Command"
Set cmd.ActiveConnection = conn
deptno = Request.Form("Dept"
position = Request.Form("radiobutton"
strSQL = "INSERT INTO completed_surv (dept,emp_ID) "
strSQL = strSQL & "VALUES (" & deptno
strSQL = strSQL & ",'" & position & "')"
Set rs = conn.Execute(strSQL)
Set rs = nothing
'close the connection
conn.close
set conn = nothing
%>
Error Type:
Microsoft OLE DB Provider for ODBC Drivers (0x80004005)
[Microsoft][ODBC Microsoft Access Driver] Operation must use an updateable query.
I am trying to input data into a database from a webased form. What am I doing wrong?
here is my asp code
<%@LANGUAGE="VBSCRIPT"%>
<%Response.Buffer=true%>
<%
Dim conn,rs,strsql,surveyno,deptno,position
set conn = server.CreateObject("ADODB.Connection"
conn.Open "DSN=survey;uid=user;pwd=2000"
Set cmd = Server.CreateObject("ADODB.Command"
Set cmd.ActiveConnection = conn
deptno = Request.Form("Dept"
position = Request.Form("radiobutton"
strSQL = "INSERT INTO completed_surv (dept,emp_ID) "
strSQL = strSQL & "VALUES (" & deptno
strSQL = strSQL & ",'" & position & "')"
Set rs = conn.Execute(strSQL)
Set rs = nothing
'close the connection
conn.close
set conn = nothing
%>
