DoCmd.SetWarnings not working

T

Tony_VBACoder

With Access 2002 SP1, I have the following code in
my "Delete Record" Command Button on my form"

*********************************************************
DoCmd.SetWarnings False
DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70
DoCmd.DoMenuItem acFormBar, acEditMenu, 6, , acMenuVer70
DoCmd.SetWarnings True
*********************************************************

I took this code from the Command Button wizard to Delete
a Record.

Can anyone tell me why even though I turned off my
Warnings (SetWarnings False), I am still receiving the
prompt below, that Warns me about deleting this record?

"Relationships that specify cascading deletes are about to
cause 1 record(s) in this table and in related tables to
be deleted. Are you srue you want to delete these
records?"
 

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