Can you make a text field case sensitive?

hainejo

Board Regular
Joined
Jun 27, 2002
Messages
57
I have a table that has ID codes as the key.
The field needs to be case sensitive.
I have some codes that are basically the same but different case:
EX: AA4 and aa4 are two different ID codes but access sees them as the same.

Can you make a text field, in a table, case sensitive?
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
I suggest that you make a special field for sorting purposes.
You will need to run an Update query to fill in the data for this field.

In this example I have the standard code in a field called Code1, and copy it to a field called Code2. If the code starts with a lower case letter (ASCII character code greater than 90) it puts an "x" in front of the code.

This is the formula used in the "Update to" box for the field in the query :-


Code:
IIf(Asc(Left([Table1]![code1],1))>90,"x" & [Table1]![code1],[Table1]![code1])
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top