R
Ryan
I have a delete button on my form to delete a record but when the are you
sure you want to delete yes no box appears nothing happens when "yes" is
pushed. Here is my code:
Private Sub DeleteRecord_Click()
If MsgBox("Confirm delete", vbYesNo) = vbYes Then
'add delete code
Else
Exit Sub
End If
End Sub
What am I missing? Thx.
sure you want to delete yes no box appears nothing happens when "yes" is
pushed. Here is my code:
Private Sub DeleteRecord_Click()
If MsgBox("Confirm delete", vbYesNo) = vbYes Then
'add delete code
Else
Exit Sub
End If
End Sub
What am I missing? Thx.