gold007eye
Registered User.
- Local time
- Yesterday, 23:25
- Joined
- May 11, 2005
- Messages
- 260
I have dollar amounts in my database and I need it to do something like this
If amount = $0.00 text should be Black
If amount is Greater than $0.00 text should be Blue
If amount is Less than $0.00 text should be Red
Here is what I have tried, but only keeps the 1st coded color. I have this set in the "OnLoad" event on my Main Menu.
If amount = $0.00 text should be Black
If amount is Greater than $0.00 text should be Blue
If amount is Less than $0.00 text should be Red
Here is what I have tried, but only keeps the 1st coded color. I have this set in the "OnLoad" event on my Main Menu.
Code:
If [Current Balance] < "0" Then
[Current Balance].ForeColor = vbRed
ElseIf [Current Balance] > "0" Then
[Current Balance].ForeColor = vbBlue
ElseIf [Current Balance] = "0" Then
[Current Balance].ForeColor = vbBlack
End If