SeadnaS
Programmer
- May 30, 2011
- 214
OK, i have a combo box which lists some numbers. The numbers come from a table called specs i'm using a SELECT DISTINCT for the combo box so it doesn't show duplicate numbers.
I have an if statement that checks to see if the number selected in the combo box matches a number selected in another combo box and displays a "!" in a text box if it doesn't match.
My problem is that when i select the matching number again the "!" doesn't go away. Does anyone know what i might be doing wrong. Here's the VBA code:
If Me.MODEL_NO.Column(6) = Me.QRBP_PRESSURE.Value Then
Me.qrbp_test.Value = ""
Else: Me.qrbp_test.Value = "!"
End If
I have an if statement that checks to see if the number selected in the combo box matches a number selected in another combo box and displays a "!" in a text box if it doesn't match.
My problem is that when i select the matching number again the "!" doesn't go away. Does anyone know what i might be doing wrong. Here's the VBA code:
If Me.MODEL_NO.Column(6) = Me.QRBP_PRESSURE.Value Then
Me.qrbp_test.Value = ""
Else: Me.qrbp_test.Value = "!"
End If