View Full Version : Automating a Delete Query


Dragenesis
01-02-2008, 05:54 PM
I currently have the following query written:


DELETE * FROM TABLE1


When runs, it tells me the number of rows to be deleted and I have to click "Yes" for it to run. Is there a way to run the query and not have the prompt so it will run without human input?

boblarson
01-02-2008, 06:05 PM
Yes, use

CurrentDb.Execute "Delete * From Table1", dbFailOnError