SQL Server 2000, dbSeechanges, and Delete

  • Thread starter Thread starter lyners
  • Start date Start date
L

lyners

Is there a way to pass a delete query through to SQL server from Access
2000 so I do not get the dreaded 3266 dbSeeChanges error?



In short I have:



Currentdb.execute ("Delete * from TestTable where Col1 = '1'")



I get a dbSeechanges error (Must have the options set up for
dbSeechanges), if I change my CurrentDb.execute line to:



Currentdb.execute ("Delete * from TestTable where Col1 = '1'",
dbSeechanges)



I get a "Expected =" error.



Currently I have the code loop through the SQL table to delete the
records. It is VERY SLOW! I would rather let the SQL Server handle the
delete by passing it a query.



Thoughts, comments, and possible solutions would be great.



Thanks!

Lyners
 
Back
Top