Solved

Disable the Confirm question for action queries in VBA

Posted on 2004-10-12
3
1,253 Views
Last Modified: 2008-01-09
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
Comment
Question by:gemost
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 41

Accepted Solution

by:
shanesuebsahakarn earned 250 total points
ID: 12289968
Turn the options off and on with SetWarnings:

DoCmd.SetWarnings False
DoCmd.RunSQL .......
DoCmd.SetWarnings True
0
 
LVL 8

Expert Comment

by:arcross
ID: 12290058
as well, if you use Currentdb.execute "yuor SQL" no messages will appear

0
 
LVL 3

Author Comment

by:gemost
ID: 12290127
Thanks for the help shanesuebsahakarn  the code work perfectly.

gemost :)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question