Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Snub "You are about to ..... " dialog boxes in MS Access

Status
Not open for further replies.

raabbasi

Technical User
Jun 21, 2005
52
PK
While processing a series of database tasks - like inserting, deleting and updating a number of records at one time, MS Access presents a dialog box for each of such operations asking to confirm, every time.
How to snub these dialog boxes to appear.
 
Hi,

Code:
DoCmd.SetWarnings False
should do it.

Once you finish doing what you need you can turn them on again using

Code:
DoCmd.SetWarnings True

Hope this helps

HarleyQuinn
---------------------------------
Help us to help you,
read FAQ222-2244 before posting.
 
[tt]docmd.setwarnings false
' perform thingies
docmd.setwarnings true[/tt]

Or execute the queries through the .execute method of either the DAO database object or the ADO connection object.

Roy-Vidar
 
Many thanks to HarleyQuinn and Roy-Vidar.
The alternate solution of using .Execute method of the Connection object is a great idea.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top