Before delete warning

A

acores

I have a popup form and I want to make a warning before the user can delete
permanently a record.
I already made a macro with a MsgBox with the message «Do you really want to
delete this record?», and assigned that macro to the form OnDeleting event,
but nothing happened and the record was simply deleted with no warnings.
What am I doing wrong?
Thank you in advance.
Acores
 
S

Steve Schapel

Acores,

How are you actually deleting the record? Using a
RunCommand/DeleteRecord action in your macro? Clicking the Delete
button on the form toolbar? Something else? Is the record being
deleted from the "popup form", or from another form? Does the normal
Access delete confirmation message occur?
 
A

acores

Hi, Steve.
I created a shortcut menu (right click menu) with some predefined buttons,
such as 'Delete record' or 'Add record' in a popup form.
However, when I click in the button 'Delete record', I do not have a warning
message: Access simply delete the record! And that's what I want to avoid.

"Steve Schapel" escreveu:
 
Top