snowboardr
Programmer
This code isnt working?! I don't understand why...
'# The error..
Microsoft JET Database Engine error '80004005'
Operation must use an updateable query.
/rate/report_done.asp, line 41
Any suggestions?
-Thanks in advance![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
'# The error..
Microsoft JET Database Engine error '80004005'
Operation must use an updateable query.
/rate/report_done.asp, line 41
Code:
<%
set my_conn= Server.CreateObject("ADODB.Connection")
ConnString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" & Server.MapPath("db.mdb")
'set rs = server.CreateObject("ADODB.RecordSet") '# I tried this commented / uncommented
username = Request.Form("username")
email = Request.Form("email")
comments = Request.Form("comments")
my_conn.Open ConnString
strSql = "INSERT INTO flag_it (flag_username,flaged_by_email,flaged_reason)"
strSql = strSql & " VALUES ("
strSql = strSql & "'" & username & "',"
strSql = strSql & "'" & email & "',"
strSql = strSql & "'" & comments & "'"
strSql = strSql & ")"
Set rs = my_conn.execute(strSql)'# I tried this commented / uncommented
'rs = my_conn.Execute (strSql)'# I tried this commented / uncommented
'Response.write strSql '# I looked at my querystring to see if it was right...it looks fine.
'Response.end
'# I check the DB to see if all table names were right...evething is correct. am I missing something?!
'my_conn.close
'set my_conn = nothing
%>
Any suggestions?
-Thanks in advance