Turn off delete record message using code.
by R3JlZw » Wed, 25 Oct 2006 10:25:02 GMT
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.
Re: Turn off delete record message using code.
by Gina Whipp » Wed, 25 Oct 2006 10:40:18 GMT
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
Re: Turn off delete record message using code.
by R3JlZw » Wed, 25 Oct 2006 10:47:01 GMT
Re: Turn off delete record message using code.
by Gina Whipp » Wed, 25 Oct 2006 10:56:22 GMT
Glad to help, thanks for posting back!
--
Gina Whipp
"I feel I have been denied critical, need to know, information!" - Tremors
II