Add action to button

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to place a buttom on a form to delete a record. I would like the
user to be promted to whether or not the really want to delete this record.
Any help would be great.
 
If Msgbox("Do you REALLY want to delete this record?", _
vbYesNo + vbDefaultButton2) = vbYes Then
DoCmd.RunCommand acCmdDeleteRecord
End If

hth
 

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

Access Automatically Send a notification email once a record is added 0
Disable Command Button After Click 7
Add new record 3
Tabs Button question 8
Going to first record 0
Duplicate Record 6
Separate Form 0
Delete button 3

Back
Top