A
AJOLSON
I have a report that I am trying to change the color of a query field
background if a condition is present.
In this case if the value of a field is > 2 I want the background to set to
vbRed
So I am trying to code this in “ Report loadâ€
I am typing this
Private Sub Report_Open(Cancel As Integer)
If October.Text > 2 Then
October.BackColor = vbRed
End If
End sub
I cant get this to work at all. First it tells me that the field has no
value, than when I get past that in does not execute the backcolor code.
Can anyone tell me how to get the background dof a field to change colors in
Reports?
Thank
Andy
background if a condition is present.
In this case if the value of a field is > 2 I want the background to set to
vbRed
So I am trying to code this in “ Report loadâ€
I am typing this
Private Sub Report_Open(Cancel As Integer)
If October.Text > 2 Then
October.BackColor = vbRed
End If
End sub
I cant get this to work at all. First it tells me that the field has no
value, than when I get past that in does not execute the backcolor code.
Can anyone tell me how to get the background dof a field to change colors in
Reports?
Thank
Andy