Link to home
Start Free TrialLog in
Avatar of thaburner
thaburnerFlag for United States of America

asked on

Text Box Easy Problem

This is the code I am using, How do i make it where it doesnt matter what case the letter is in for it to carry out the action if the two txt boxes are the same. Example TEST or Test.

Private Sub txtID_Change()
If txtState.Text = txtcountry.text Then
MsgBox "The Country can not be the same as the State.", vbCritical
txtID.Text = ""
End If
End Sub
ASKER CERTIFIED SOLUTION
Avatar of Dabas
Dabas
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial