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!

Deleting from SQL table using a list box as reference

Status
Not open for further replies.

daveonion

Programmer
Aug 21, 2002
359
GB
Hi i've got the following code,

CurrentDb.Execute "Delete * From dbo_tbl_poster Where dbo_tbl_poster.[ris_poster_risuid] = '" & Me.uid_scf & "'"

to delete an entry out of a table, the table is attached to sql server and when i execute the code the following error occurs

You must use the dbSeeChanges option with OpenRecordset when accessing a SQL Server table that has an IDENTITY column. (Error 3622)

anybody out there have any idea

much appreciated

Dave
 
shreked thanks for the post, but i am unsure as what i have to do wit hregards to microsoft access, any chance of enlightening me?

thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top