Is there a way that when I highlight a record in datasheet view to set a field to true and run code on the field that are set to true.
What happens now is, when I drag the mouse to 5 records my On Current Event only sets the first record that was highlighted to True all the others are not.
what can I do to detect which records are highlighted and set the field of those records to TRUE.
What happens now is, when I drag the mouse to 5 records my On Current Event only sets the first record that was highlighted to True all the others are not.
Code:
Private Sub Form_Current()
If Nz(Me.Active, False) = False Then
Me.Active = True
Else
Me.Active = False
End If
End Sub
what can I do to detect which records are highlighted and set the field of those records to TRUE.