• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1295
  • 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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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