Before delete warning

G

Guest

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?
 
G

Guest

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:
 

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

Similar Threads

Delete shorcut key? 3
Delete button 3
Message box if no records 2
Query of three fields simultaneously 3
Requery or Refresh 5
Table with only one record 3
Warning before record deletion 2
Command Button Problem 7

Top