If MsgBox("Are you sure you want to delete the current record?", vbQuestion + vbYesNo, "Delete Current Record?") = vbYes Then
DoCmd.RunCommand acCmdDeleteRecord [COLOR=red]'Access command to delete record[/COLOR]
Else
MsgBox "Delete Function Aborted.", vbInformation
Exit Sub
End If