Hello,
I'm wondering if I'm doing this correctly because my label caption forecolor remains "red" given my code below.
Hoping some could enlighten me with the below code. Thank you!!
I also tried
However, the result is regardless the value, the forecolor remains red.
I'm wondering if I'm doing this correctly because my label caption forecolor remains "red" given my code below.
Hoping some could enlighten me with the below code. Thank you!!
VBA Code:
If Val(Me.lbl1.caption) < 85 Then
Me.lbl1.forecolor = RGB(255,0,0,)
Else
Me.lbl1.forecolor = RGB(0,0,0)
End If
I also tried
VBA Code:
If Val(Me.lbl1) < 85 Then
Me.lbl1.forecolor = RGB(255,0,0,)
Else
Me.lbl1.forecolor = RGB(0,0,0)
End If
However, the result is regardless the value, the forecolor remains red.