Solved

MS Access 2010 search case senstive values within two columns

Posted on 2013-02-07
4
405 Views
Last Modified: 2013-02-10
My problem is that I have two columns, both with alphanumeric values. This two clumns have the same data but in different cases.

One Column may a field with Uppercase alphabets within the field say "12345DF2313tjm" this is compared to the other column's  value  "12345df2313tjm".

I have over 10,000 rows with similar case mismatch. How can I make access compare the two columns, then if there is a case mismatch, put a new value on a new column all in upper case. In this case the new coulmn would have "12345DF2313TJM"
0
Comment
Question by:lynmke
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 61

Assisted Solution

by:mbizup
mbizup earned 333 total points
ID: 38863854
An easy way to do this - but not necessarily the most efficient is to simply uppercase your column:


UPDATE YourTable
SET YourField = UCase(YourField)

Open in new window

0
 
LVL 61

Accepted Solution

by:
mbizup earned 333 total points
ID: 38863859
Or if you are using a separate field:


UPDATE YourTable
SET YourNewField = UCase(YourOldField)

Open in new window


From your description, you don't really need a comparison, and uppercasing either field will give you your expected results.
0
 
LVL 120

Assisted Solution

by:Rey Obrero (Capricorn1)
Rey Obrero (Capricorn1) earned 167 total points
ID: 38863885
You can use the Asc() function or the StrComp() function to have Microsoft Access differentiate between case-sensitive text strings.
see this link

How to Return Case-Sensitive Matches in Queries

http://support.microsoft.com/kb/209674

you can run a query like this

update tableName
set [newcolumn]=ucase([Column1])
where strcomp([column1],[column2],0) <>0
0
 

Author Closing Comment

by:lynmke
ID: 38873588
Thanks, all solutions accepted.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

632 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