Prevent prompts when running Delete Query

  • Thread starter Thread starter Bruceh
  • Start date Start date
B

Bruceh

I'd like to run a query via
docmd.RunSQL("Delete * from tableX")
and would like to suppress all the prompts.

Can this be done?

TIA
 
Use this instead:

CurrentDb.Execute "Delete * from tableX", dbFailOnError

HTH,
Nikos
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top