Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Primary key thinks upper and lower case are the same.

Status
Not open for further replies.

salop1

IS-IT--Management
Jul 11, 2002
4
GR
Access 97/Windows 2000
Problem: Primary key thinks upper and lower case are the same.
I cannot create a key or non-duplicate index on a column whose values may be differentiated only by case. For example, Access treats "LC1030280T" and "LC1030280t" as the same and therefore I cannot build a key or index on this column.

Q1 Do you know how I can create a table in Access so that columns are case-sensitive?
or if not..

Q2 Do you know of any environment/global variables that may influence the Access default behaviour for a database instance, or hopefully at least at the table-level, if not column-level?

Q3 Any ideas I could use as a 'fudge'?
-I've thought about creating another table in Access to hold the 'duplicates' - but then need messy UNIONs in all joins.

Why I need this: I'm synchronising an Ingres 6.4 DB with Access using a background application, (C++Builder/Delphi). When tables change in Ingres a rule(trigger) is fired and the Delphi app. updates the relevant record(s) in Access using the key(s) to reference the record(s).
I suspect there is a bug in our Ingres apps. because we normally apply a standard of uppercase for all key columns and build this into the form's data validation code.
 
Hi

Access (jet) is not case sensitive, end of story, there are no parameters of option settings I am aware of to change that, only (messy) work around I can think of is to contrustruct your primary key of the ascii values of the characters in the keys Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
Ken,
thanks for such a fast response. I realised after I'd posted that perhaps the forum on Access tables/Jet might have been better. Anyway, you've answered my question. We will soon buy MS SQL Server 2000; I know this doesn't use Jet, so I hope it will cope a little better than Access.
Cheers,
Jon
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top