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

How to Suppress an Access information message

Status
Not open for further replies.

cmmrfrds

Programmer
Feb 13, 2000
4,690
0
0
US
I have a Function that does some deletes and inserts which pop up Access informational messages. I would like to suppress the messages for just this function. Can somebody tell me how to do it in the function.

Thank you,
Jerry
 
Before the main part of your code add the following (Access 97 syntax):

DoCmd.SetWarnings False

Make sure after the code to set it back to True otherwise nothing will pop up from that point forward until Access is closed down. Scott Musich
Database Analyst/Programmer
 
Thank you. That did it in Access 2000 as well.
 
No problem!

You can also acheive this by using Macros - However, I find it cleaner to use the code approach. Scott Musich
Database Analyst/Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top