cyprus106
Programmer
- Apr 30, 2001
- 654
I'm getting this error after I try to add to a table in my database theough the code below
Error:
Operation must use an updateable query.
My Code:
set conn = Server.CreateObject("ADODB.connection"
sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & server.mappath("betaboard.mdb"
&_
"; Persist Security Info=False"
conn.Open(sConnection)
sqlstring = "INSERT INTO board ( [date], topic, name, email, http, body ) " &_
"values ( # " & now() & " #, ' " & topic & " ' , ' " & name & " ' , ' " & email & " ', ' " & http & " ' , ' " & body & " ')"
conn.Execute(sqlstring)
conn.Close
I have absolutely no idea what's wrong, having not been very experienced in asp. Could someone please help me? I'm just taking a few values inputted by a user and assing them to a table and it won't let me!
Thanks lots... Cyprus
Error:
Operation must use an updateable query.
My Code:
set conn = Server.CreateObject("ADODB.connection"
sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & server.mappath("betaboard.mdb"
"; Persist Security Info=False"
conn.Open(sConnection)
sqlstring = "INSERT INTO board ( [date], topic, name, email, http, body ) " &_
"values ( # " & now() & " #, ' " & topic & " ' , ' " & name & " ' , ' " & email & " ', ' " & http & " ' , ' " & body & " ')"
conn.Execute(sqlstring)
conn.Close
I have absolutely no idea what's wrong, having not been very experienced in asp. Could someone please help me? I'm just taking a few values inputted by a user and assing them to a table and it won't let me!
Thanks lots... Cyprus