Applecore Pages on Microsoft Access

Remove confirmations for Action Queries

Whenever you run an Action Query (i.e. a Delete, Update or Append Query) Access by default asks you to confirm this action. If you want the query to run automatically, then you will need to do one of two things. Either:

DoCmd.SetWarnings False
DoCmd.OpenQuery "qryName"
DoCmd.SetWarnings True

The other option is to use the Execute method on a SQL string, and then use Transactions, as well as error trapping.

Top

 


HOME | NEW | TABLES | QUERIES | FORMS | REPORTS | GENERAL | API | DOWNLOADS | TUTORIAL | RESOURCES
E-MAIL
Copyright & Disclaimer

 

Last modified at 06/06/2006 14:59:43