B
Bob Barnes
No problem setting a textbox's BackColor by code, but...
i'm using in...
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
....snippet...
Where B and C are Doubles...
B = CDbl(AShrink.Caption): C = CDbl(ATotalRepair.Caption)
lbl433.Caption = Format((B / C) * 100, "#0.0") & "%"
If IsNumeric(Left(lbl433.Caption, 2)) Then
I = CInt(Left(lbl433.Caption, 2))
If I >= 10 Then lbl433.BackColor = 255
End If
It WILL run the "...If I >= 10 Then lbl433.BackColor = 255",
but the BackColor (on one label ONLY...the others work properly)
will be white when the Report opens.
Ideas...please.
TIA - Bob
i'm using in...
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
....snippet...
Where B and C are Doubles...
B = CDbl(AShrink.Caption): C = CDbl(ATotalRepair.Caption)
lbl433.Caption = Format((B / C) * 100, "#0.0") & "%"
If IsNumeric(Left(lbl433.Caption, 2)) Then
I = CInt(Left(lbl433.Caption, 2))
If I >= 10 Then lbl433.BackColor = 255
End If
It WILL run the "...If I >= 10 Then lbl433.BackColor = 255",
but the BackColor (on one label ONLY...the others work properly)
will be white when the Report opens.
Ideas...please.
TIA - Bob