Link to home
Start Free TrialLog in
Avatar of yitz99
yitz99

asked on

make key field case sensitive?

I've got a text field that I want to use as the primary key, but it has to be case sensitive.  That is, it has to allow for three recordes with key fields:
fred
Fred
FRED

How do you tweak the index to do this?
Avatar of marcoszorrilla
marcoszorrilla

In the onUpdate event write this code:

MyField=Ucase([MyField])

then you obtain only FRED
ASKER CERTIFIED SOLUTION
Avatar of nico5038
nico5038
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yitz99

ASKER

Thanks Nico.  The answer is clear enough, although it isn't what I wanted to hear.

Are you in my time zone (gmt +2), or are you a night owl?
I'm from The Netherlands (at gmt+1).
You made me curious, what's the way you want to go ?

Nic;o)
Avatar of yitz99

ASKER

I wanted to input directly to the table without a form and without code.
Avatar of yitz99

ASKER

I wanted to input directly to the table without a form and without code.
That's not possible with access, but when you also have MS SQL then you could create a table with a StoredProcedure that performs a function like this automatically when inserting/updating a row.

Nic;o)