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!

Can I suppress an Append Query message box?

Status
Not open for further replies.

KerryL

Technical User
May 7, 2001
545
US
I've created a command button that launches an Append query, but I'd like to suppress the message box that appears.

(The one saying "you are about to append ### records to Table XYZ. Do you want to continue?)

Is there a way I can make the append query open, run, and close without the message and ok box appearing?
 
See thread702-975157

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
KerryL,

If in code:
DoCmd.SetWarnings False
DoCmd.OpenQuery "YourAppendQuery"
DoCmd.SetWarnings True

If from a macro, use the SetWarnings action before and after executing the OpenQuery method.

Be sure to turn setWarnings back on, or you won't get any warnings before deleting records manually until you close and reopen your db.

-Patrick

Nine times out of ten, the simplest solution is the best one.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top