What triggers the Delete Warning message box?

  • Thread starter Thread starter Guest
  • Start date Start date
What triggers the Delete Warning message box

Running a Delete query, or some other action which will delete records
from a table in your database. What are *you* doing right before you
see the message?
and how do I get rid of it?

Are you certain that you want Access to permanently, irrevocably, and
silently delete data from your database without any warning?

John W. Vinson[MVP]
 
I am providing my own customized warning and want to suppress a second
warning. I am doing nothing other than allowing the user to press the Delete
key and processing other deletes (of related records) myself via EXECUTE.
 
I am providing my own customized warning and want to suppress a second
warning. I am doing nothing other than allowing the user to press the Delete
key and processing other deletes (of related records) myself via EXECUTE.

The Querydef Execute method (qd.Execute "MyDeleteQuery" for example)
will not issue any prompts; or you can use

DoCmd.SetWarnings False

prior to running the delete. Be sure to

DoCmd.SetWarnings True

afterward or you'll turn off ALL warning messages for the rest of the
Access session!

John W. Vinson[MVP]
 

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