i have a textbox on a form called Amount. I am trying to have some code that will look at the currency amount, and if it is under $10, it will change the back color of the text box's label and the back color of the label. It doesn't seem to be working. I have the code on the form's on current and the field's after update.
Other info - users cannot edit field, it is locked.
I am hoping for a miracle because I need to have this issue solved and working by morning. Any help is appreciated. I am going to do some other work for a while, so if you stuble onto this, I would love the help.
Thanks,
misscrf
It is never too late to become what you could have been ~ George Eliot
Code:
Dim lngRed As Long
Dim lngBlack As Long
Dim lngYellow As Long
lngRed = RGB(255, 0, 0)
lngBlack = RGB(139, 137, 137)
lngYellow = RGB(255, 255, 0)
If Me!Amount.Value > 10 Then
Me.lblSettlement_Amount.BackColor = lngYellow
Me.lblSettlement_Amount = "Check Value Under $10"
Else
DoCmd.CancelEvent
Exit Sub
End If
Other info - users cannot edit field, it is locked.
I am hoping for a miracle because I need to have this issue solved and working by morning. Any help is appreciated. I am going to do some other work for a while, so if you stuble onto this, I would love the help.
Thanks,
misscrf
It is never too late to become what you could have been ~ George Eliot