?
Solved

Text Box Easy Problem

Posted on 2005-05-07
1
Medium Priority
?
143 Views
Last Modified: 2010-05-02
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
0
Comment
Question by:thaburner
1 Comment
 
LVL 27

Accepted Solution

by:
Dabas earned 500 total points
ID: 13952273
Hi thaburner:
> If txtState.Text = txtcountry.text Then
Try
If UCase(txtState.Text) = UCase(txtcountry.text)

Dabas
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Suggested Courses

862 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question