Hi, I have the following code to delete a record from my database, but I want a Message box with yes no options before the record is deleted. I keep coming up with run time errors because I'm putting something in the place. (Can you tell I'm a newbie yet?) Can someone help?
Thanks
MickJ
Private Sub cmdDelete_Click()
On Error GoTo DeleteErr
With datPrimaryRS.Recordset
.Delete
.MoveNext
If .EOF Then .MoveLast
End With
Exit Sub
DeleteErr:
MsgBox Err.Description
End Sub
Thanks
MickJ
Private Sub cmdDelete_Click()
On Error GoTo DeleteErr
With datPrimaryRS.Recordset
.Delete
.MoveNext
If .EOF Then .MoveLast
End With
Exit Sub
DeleteErr:
MsgBox Err.Description
End Sub