Working on an new database and one of my forms is a "Delete Contractor" form. I created a command button as follows.
Private Sub cmd_DelCont_Click()
DoCmd.RunCommand acCmdDeleteRecord
End Sub
I did not set warnings off because I want to confirm the deletion. The problem I have if I hit No on the confirmation msg box I get a run time error 2501, The RunCommand was canceled.
How can I eliminate this error?
Thanks in advance for your assistance.