Suppress Access Messagebox

  • Thread starter Thread starter Sanjay
  • Start date Start date
S

Sanjay

Hi
Is there a way to suppress Access's Message "You are
about to append one row to the records etc." while
running an append query from a form.
I am using Docmd.RunSQL object to run an INSERT statement
I already validate the user's intention and want to
suppress this message
Would appreciate any help

Thanks

Sanjay
 
You can use the SetWarnings action to turn system messages
on or off. See vb help (enter Setwarnings).

DoCmd.setwarnings Off
DoCmd.RunSQL
DoCmd.setwarnings On

Glenn
 

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

Back
Top