Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Operation must use an updateable query??

Status
Not open for further replies.

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
 
Make sure that the access database is able to be modified by the Internet guest account. It might be that file security on your webserver doesn't allow the internet guest account to modify that file.
 
It's just a file sitting on my website, it's not off an SQL server or anything. Does that matter? Cyprus
 
it's just that your host has to set Iuser permission to write so the internet user can modify the database
if you contact them they will know give them the database name and path to the db and they will fix that
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top