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

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.
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,215,390
Messages
6,124,669
Members
449,178
Latest member
Emilou

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