Hello All,
I have this code below that work (sort of). I'm not sure what event to put it on. I tried different ones and it doesn't seem to update when I scroll through the records. If there is a better way to do this then please let me know.
Thanks
I have this code below that work (sort of). I'm not sure what event to put it on. I tried different ones and it doesn't seem to update when I scroll through the records. If there is a better way to do this then please let me know.
Code:
Dim lngRed As Long
Dim lngGreen As Long
Dim lngYellow As Long
lngGreen = RGB(124, 252, 0)
lngYellow = RGB(255, 215, 0)
lngRed = RGB(255, 0, 0)
If Me.List96 = 3 Then Me.Detail.BackColor = lngRed
If Me.List96 = 2 Then Me.Detail.BackColor = lngYellow
If Me.List96 = 1 Then Me.Detail.BackColor = lngGreen
End Sub
Thanks