Yeah, I've changed my code to this and it's still giving me a "RunCommand action was cancelled" error.
Private Sub cmdDelete_Click()
On Error GoTo Err_cmdDelete_Click
If MsgBox("Are you sure you want to delete this record?", vbYesNo, "Confirm Delete") = vbYes Then
DoCmd.SetWarnings...