Kinger43
racecar driver
- Local time
- Yesterday, 20:19
- Joined
- Aug 17, 2007
- Messages
- 226
I want to dynamically color the text(Forecolor) of a text box in the detail section based on its value. Right now This is what I have
Where Counter is an invisible text box that holds the same value as the box I'm trying to color. It just simply isn't working. No errors being thrown, just isn't working. Any help is appreciated, Thanks.
Code:
Private Sub Report_Open(Cancel As Integer)
If Counter > 10 Then
DoCmd.SetProperty "OperationCount", acPropertyForeColor, "#ED1C24"
Else
DoCmd.SetProperty "OperationCount", acPropertyForeColor, "#000000"
End If
End Sub