Millie1919
asked on
Limit Query Results
I have a file of names where some are properly cased and some are all lowercase and some are all uppercase. I am interested in only viewing the names in the table that are all uppercase or all lowercase. How do I achieve this through MS Access?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
if so you would need to loop through that table and check every individual character (loop) in that field in usng the asc function (ascii function):
asc("A") returns 65
asc("Z ") returns 90
asc("a") returns 97
asc("Z ") returns 122
so every character needs to be between 65 to 90 OR between 97 to 122, mutually exclusive
if you get a field with a mix of characters between 65 to 90 ANd between 97 to 122 the you its a mix of lower and upper case