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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Eliminate Append\Delete Query warning 1

Status
Not open for further replies.

burgerman

Technical User
Sep 21, 2002
31
US
I am trying to eliminate the warning box that appears when an action query is selected. I want to do this programmatically instead of under the tools:eek:ptions selection. I tried using the docmd.setwarnings=false but to no avail any suggestions?
 
Click:

Tools

Options

Edit/Find Tab (3rd from left)

In the top right of the panel that you now see you can check/uncheck regarding on your requirements.

 
Hi

DoCmd.SetWarnings False / True (for off /on )

should do it, what actualyy happened when you tried it?

Alternatively you could use the execute method of the database object

So its is
DoCmd.SetWarnings False
DoCmd.RUNSQL "DELETE ....."
DoCmd.SetWarnings True

or

Dim db As DAO.Database
Set Db = CurrentDb()
Db.execute "DELETE ....." Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
UK
kenneth.reaySPAMNOT@talk21.com
remove SPAMNOT to use
 
Put in a break point and step through the code to see what's going on because the SetWarnings command should do the trick.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top