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.
LVL 3
gemostAsked:
Who is Participating?
 
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.

All Courses

From novice to tech pro — start learning today.