• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1300
  • Last Modified:

Disable the Confirm question for action queries in VBA

I am currently using Access 2000 and want to know if there is a way to disable to disable the confirm question you get when you execute and action query using the Docmd.RunSQl statement in VBA code instead of disabling it from the tools/ option menu.
0
gemost
Asked:
gemost
1 Solution
 
shanesuebsahakarnCommented:
Turn the options off and on with SetWarnings:

DoCmd.SetWarnings False
DoCmd.RunSQL .......
DoCmd.SetWarnings True
0
 
arcrossCommented:
as well, if you use Currentdb.execute "yuor SQL" no messages will appear

0
 
gemostAuthor Commented:
Thanks for the help shanesuebsahakarn  the code work perfectly.

gemost :)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now