If a user selects a records on a continuous form, and hits the delete key, I display a customised message is displayed asking the user to confirm if they want to delete the record.
If the user selects "Yes", Access displays message that a record is going to be deleted.
How can I prevent this second message from being displayed. This message also give the user the option to abort the deletion, which I do not want.
Thanks in advance
Code:
Private Sub Form_Delete(Cancel As Integer)
Dim response As Integer
response = MsgBox("Do you really want to delete:" & vbLf & vbLf & _
Me.Field1 & "?", vbQuestion + vbYesNo, "Delete Record?")
If response = vbNo Then
Cancel = True
Exit Sub
End If
End Sub
If the user selects "Yes", Access displays message that a record is going to be deleted.
How can I prevent this second message from being displayed. This message also give the user the option to abort the deletion, which I do not want.
Thanks in advance