How do I get Access to differentiate capital and lower case letter

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In Access 2000 I am importing records which have a record type identifier
which is a 2 character alphanumeric code, in this code "EC" is a different
code to "Ec". How can I get Access to distinguish between the 2 when running
queries or VBA?
 
JET is always case insensitive, so there is no efficient solution.

It is possible to fudge it by using StrComp(), e.g.

SELECT * FROM Table1
WHERE StrComp([Field1], "Ec", 0) = 0;
 
Allen,

Thank you, built that into my SQL statement and it has worked a treat.

Thanks,
Steve

Allen Browne said:
JET is always case insensitive, so there is no efficient solution.

It is possible to fudge it by using StrComp(), e.g.

SELECT * FROM Table1
WHERE StrComp([Field1], "Ec", 0) = 0;

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

SteveEdge said:
In Access 2000 I am importing records which have a record type identifier
which is a 2 character alphanumeric code, in this code "EC" is a different
code to "Ec". How can I get Access to distinguish between the 2 when
running
queries or VBA?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top