Question : 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.

Answer : Disable the Confirm question for action queries in VBA

Turn the options off and on with SetWarnings:

DoCmd.SetWarnings False
DoCmd.RunSQL .......
DoCmd.SetWarnings True
Random Solutions  
 
programming4us programming4us