E
Eric Blitzer
I have a continuous form and want to change the backcolor
of a field in one column based on a condition in another
column. My problem is that when the field is clicked the
backcolor that is appropiate is applied to the whole column
not just that one record. Here is my code
Private Sub Form_Current()
Dim lngYellow As Long, lngWhite As Long
lngYellow = RGB(255, 255, 0)
lngWhite = RGB(255, 255, 255)
If Me.ChATimeIn = 0 Or IsNull(ChATimeIn) Then
Me!ATimeIn.BackColor = lngWhite
Else
Me!ATimeIn.BackColor = lngYellow
End If
Thanks
Eric
of a field in one column based on a condition in another
column. My problem is that when the field is clicked the
backcolor that is appropiate is applied to the whole column
not just that one record. Here is my code
Private Sub Form_Current()
Dim lngYellow As Long, lngWhite As Long
lngYellow = RGB(255, 255, 0)
lngWhite = RGB(255, 255, 255)
If Me.ChATimeIn = 0 Or IsNull(ChATimeIn) Then
Me!ATimeIn.BackColor = lngWhite
Else
Me!ATimeIn.BackColor = lngYellow
End If
Thanks
Eric