I have a field on a report i want to change the forecolor if its value is 0, the field is a number field.
I have the follwoing code in the on open section
If Nz(Me!Txt1, 0) = 0 Then
Txt1.ForeColor = RGB(0, 255, 0)
End If
When i open the report i get
Run-time error'-2147352567 (80020009)
You entered an expression that has no value
There are records for the report and i have some on no data code.
I have the follwoing code in the on open section
If Nz(Me!Txt1, 0) = 0 Then
Txt1.ForeColor = RGB(0, 255, 0)
End If
When i open the report i get
Run-time error'-2147352567 (80020009)
You entered an expression that has no value
There are records for the report and i have some on no data code.