Private Sub cmdDeleteRecord_Click()
Resp = MsgBox("Are you sure you want to Delete this Record?", vbYesNo + vbDefaultButton1)
DoCmd.SetWarnings False
If Resp = vbYes Then
CompleteDelete = True
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdDeleteRecord
End If
DoCmd.SetWarnings True
End Sub