Add action to button

M

Mike Busch

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.
 
T

tina

If Msgbox("Do you REALLY want to delete this record?", _
vbYesNo + vbDefaultButton2) = vbYes Then
DoCmd.RunCommand acCmdDeleteRecord
End If

hth
 
Top