Hello,
This one is doing my head in, I have a table in SQL which is used for reporting, so I want to clear ALL records before processing and inserting the new ones.
The INSERT works fine, however why won't either of these work
CurrentDb.Execute "DELETE FROM EOM_Reporting WHERE 1=1", dbSeeChanges
CurrentDb.Execute "DELETE * FROM EOM_Reporting", dbSeeChanges
why won't SQL delete the records, if I run the first direct in the SQL Analyser it works fine and deletes the records, so what is wrong with Access ?
This one is doing my head in, I have a table in SQL which is used for reporting, so I want to clear ALL records before processing and inserting the new ones.
The INSERT works fine, however why won't either of these work
CurrentDb.Execute "DELETE FROM EOM_Reporting WHERE 1=1", dbSeeChanges
CurrentDb.Execute "DELETE * FROM EOM_Reporting", dbSeeChanges
why won't SQL delete the records, if I run the first direct in the SQL Analyser it works fine and deletes the records, so what is wrong with Access ?