suppressing message box

M

MariaL

I have a form that when it is closed by the user it runs a
macro that creates a table that will append information to
another table. How can I suppress the message box that
ask the user if they want to delete the table when the
query is run? It's not necessary for the user to make this
decision.
 
G

Gerald Stanley

To prevent users from seeing system generated warning
messages, use
DoCmd.SetWarnings False

Hope This Helps
Gerald Stanley MCSD
 
C

Chris

In your macro, add SetWarnings and False.

Or, in code, DoCmd.SetWarnings False

Make sure you turn them back on after you are done.

Chris
 
M

MariaL

Yes it did - Thanks!
-----Original Message-----
To prevent users from seeing system generated warning
messages, use
DoCmd.SetWarnings False

Hope This Helps
Gerald Stanley MCSD
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top