docmd.setwarnings best use

M

Mark Andrews

I setup a cascade to null relationship between two tables and would like to
hide the message that pops up when you
delete a record from the primary table because it uses the Cascade deleting
message and is confusing.

Just looking for some tips on the best way to put DoCmd.Setwarnings into the
code.

Currently I have DoCmd.Setwarnings False in the
Private Sub Form_BeforeDelConfirm(Cancel As Integer, Response As Integer)
event

and DoCmd.Setwarnigs True in the
Private Sub Form_AfterDelConfirm(Status As Integer) event

it seems to work but wondering what the best approach is?

Thanks in advance,
Mark
 

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