How can I get it to prompt a warning before deleting a record

D

djscott242

If I delete a record how can I change the options to prompt me a warning
before deleting?
 
D

Dirk Goldgar

djscott242 said:
If I delete a record how can I change the options to prompt me a warning
before deleting?


That depends on how you're doing it. By default, Access does warn when a
user deletes a record via a form. If you're not seeing that, check your
options to make sure "Confirm ... Record changes" is checked. Also make
sure that you don't have code that turns warnings off:

DoCmd.SetWarnings False

without always subsequently executing a statement that turns them back on
again:

DoCmd.SetWarnings True

It's also possible to write your own warnings, to be displayed in place of
the built-in Access delete warning, using the form's BeforeDelConfirm event.
See the help file for details.
 

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