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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Updating and Deleting from access 2k w/ ASP

Status
Not open for further replies.

desktophero

Programmer
Mar 30, 2001
33
US
I am having trouble switching code from a SQL server to Access 2000 - I hate to say it but I have to!

Anyway, I can run SELECT statements all day long, but as soon as I try to do DELETE or UPDATE or INSERT - the errors start to fly. I have tried DSNs, etc. but I can't get anything (except the SELECTs) to work.

I am using

set conn=server.createobject("ADODB.Connection")
conn.open "DRIVER=Microsoft Access Driver (*.mdb);UID=Admin;DBQ=database;DefaultDir=default"
set rs=server.createobject("ADODB.Recordset")
rs.open "tablename", conn

rs("Fieldname").AddNew
rs.Update
rs("Fieldname").Value=1
rs.update

rs.close
conn.close

Any suggestions?
Thank you in advance!

Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top