Does anybody see any errors in this code. I have this code on a onclick trigger. No errors but field data does not change color or font to bold. Any help would be great.
Thanks
Chuck
Private Sub DESCRIPTION_Label_Click()
Dim objFrc As FormatCondition
Dim lngRed As Long
lngRed = RGB(255, 0, 0)
Me![JON].FormatConditions.Delete
Set objFrc = Me![JON].FormatConditions.Add(acFieldValue, _
acEqual, "NL5EEP00")
With Me![JON].FormatConditions(0)
.FontBold = True
.BackColor = lngRed
End With
End Sub
Thanks
Chuck
Private Sub DESCRIPTION_Label_Click()
Dim objFrc As FormatCondition
Dim lngRed As Long
lngRed = RGB(255, 0, 0)
Me![JON].FormatConditions.Delete
Set objFrc = Me![JON].FormatConditions.Add(acFieldValue, _
acEqual, "NL5EEP00")
With Me![JON].FormatConditions(0)
.FontBold = True
.BackColor = lngRed
End With
End Sub