I want some records in my Access Datasheet Form to flash (switch from one color to another one) depending on the value in a given field.
I found some great help on there by using the On Timer event of the Form but for some reason it doesn't work for me. I suppose it is because in my case, my form is displayed in Datasheet View.
Also, I realized that it only checks the value of the active record but I would like it to check the value of all the records for that given field (via SQL maybe ?)
Is it even possible to change the back color of a record via VBA in Access or the only way is via the conditional formatting tool ?
I am a bit confused on how to proceed and if there is even a way to do so.
Any ideas on how to do this ?
Private Sub Form_Timer()
If [Receiver] = "Martin" Then
If [Receiver].ForeColor = 0 Then 'vbRed
[Receiver].ForeColor = 255 'vbBlack
Else
[Receiver].ForeColor = 0 'vbRed
End If
End If
End Sub
<blink>
anymore - it was super annoying. I suggest regular conditional formatting with colors that stand out. – Andre