Hello all
i am using this code to change the font color to red color if ( Textbox3.value < textbox22.value ) see the code below please ...
the value of Textbox22 is "200" , if i enter value of "39" in Textbox3 the red color will present also !
that means the value of textbox22 is "2" not "200"
any help ? please
thanls
i am using this code to change the font color to red color if ( Textbox3.value < textbox22.value ) see the code below please ...
Code:
Private Sub TextBox3_Change()
If TextBox3.Value < TextBox22.Value Then
TextBox3.ForeColor = RGB(0, 0, 0)
Else
TextBox3.ForeColor = RGB(255, 0, 0)
End If
End Sub
the value of Textbox22 is "200" , if i enter value of "39" in Textbox3 the red color will present also !
that means the value of textbox22 is "2" not "200"
any help ? please
thanls