S
Steven
I have the following to not allow a user to delete more than one record at a
time in the form. The issue is that if more than one record (for example if
3 records were selected) then the MsgBox will show 3 times and etc.
How would you make it so the MsgBox will appear only one time?
Private Sub Form_Delete(Cancel As Integer)
If Me.SelHeight > 1 Then
Cancel = True
MsgBox "Cannot delete more than one record at a time."
Exit Sub
End If
'....continue
End Sub
Thank you,
Steven
time in the form. The issue is that if more than one record (for example if
3 records were selected) then the MsgBox will show 3 times and etc.
How would you make it so the MsgBox will appear only one time?
Private Sub Form_Delete(Cancel As Integer)
If Me.SelHeight > 1 Then
Cancel = True
MsgBox "Cannot delete more than one record at a time."
Exit Sub
End If
'....continue
End Sub
Thank you,
Steven