prevent multiple records deletion in a form

  • Thread starter Thread starter alex
  • Start date Start date
How Is it possible to prevent a multiple records
deletion in a form?
Thanks Ale

Put code in the Form's BeforeDeleteConfirm event to check whether the
deletion is allowable.

For a more detailed answer, please post a more detailed question.
 
Cancel the form's Delete event if SelHeight indicates more than one row is
selected:

Private Sub Form_Delete(Cancel As Integer)
If Me.SelHeight > 1 Then
Cancel = True
MsgBox "Multi-row deletion not allowed."
End If
End Sub
 
Back
Top