I have the following procedure in a form:
Private Sub PlusMinus_Change()
PlusMinus = PmtAmt - Total
Select Case PlusMinus
Case Is < 0
PlusMinus.BackColor = vbRed
InvOnHold = "Y"
Case Is > 0
PlusMinus.BackColor = vbGreen
InvOnHold = ""
Case Is = 0
PlusMinus.BackColor = -2147483633
InvOnHold = ""
End Select
InvChange = True
End Sub 'PlusMinus_Change
I am trying to calculate if the customer paid the correct amount, if they didn't pay enough I want the box to be red, if they paid to much I want the box to be green, if they paid the correct amount I want the box to be grey.
The box with the above code is showing up grey. The calculation is not showing up correctly. Can someone help?
Beth
Private Sub PlusMinus_Change()
PlusMinus = PmtAmt - Total
Select Case PlusMinus
Case Is < 0
PlusMinus.BackColor = vbRed
InvOnHold = "Y"
Case Is > 0
PlusMinus.BackColor = vbGreen
InvOnHold = ""
Case Is = 0
PlusMinus.BackColor = -2147483633
InvOnHold = ""
End Select
InvChange = True
End Sub 'PlusMinus_Change
I am trying to calculate if the customer paid the correct amount, if they didn't pay enough I want the box to be red, if they paid to much I want the box to be green, if they paid the correct amount I want the box to be grey.
The box with the above code is showing up grey. The calculation is not showing up correctly. Can someone help?
Beth