Turn off delete record message using code.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a button on a form that contains a subform. When I click on the button
the selected record on the subform is deleted from the underlying bound
table. Is it possible to stop the message box appearing, advising that a
record is about to be deleted, using code for this procedure only. Ie I still
want to be advised if I run other delete queries within the application.
 
Greg,

DoCmd.SetWarnings False 'turns off messages
***Put your delete sequence in here***
DoCmd.SetWarnings True 'turns messages back on
 
Thanks Gina!

Gina Whipp said:
Greg,

DoCmd.SetWarnings False 'turns off messages
***Put your delete sequence in here***
DoCmd.SetWarnings True 'turns messages back on


--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II
 

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