Delete Query

A

Alain

Hello,

I would like to know if it is possible to programatically
remove the warning msgbox when we are about to delete
recordset from a table, I know it is possible to set it
up in the options, but I want to turn off that option
only in 1 database program, not on all of them

Thanks
Alain
 
V

Van T. Dinh

DoCmd.SetWarnings False
DoCmd.OpenQuery "YourDeleteQuery"
DoCmd.SetWarnings True

Alternatively, use the Execute Method like:

CurrentDB.Execute "YourDeleteQuery"
 

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

Top