Find records with mixed case

H

Hal Pratt

I have database of some records in all caps and others in Proper or upper
and lower case text. Is there an expression I can use in a query to identify
either group?
 
J

John Spencer (MVP)

You might use the INSTR function along with UCASE or LCase to detect them. Use
Binary Compare (0) to detect differences in Case.

SELECT YourListOfFields
FROM YourTable
WHERE Instr(1,UCase(Somefield),SomeField,0)= 1

That should get all records where somefield is all upper case

Change the =1 to =0 to get all records where the field is mixed case or all
lower case
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top