Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

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

Discussion in 'Information Technology' started by SteveEdge, Jul 28, 2006.

  1. SteveEdge

    SteveEdge
    Expand Collapse
    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?
     
  2. Loading...


  3. Allen Browne

    Allen Browne
    Expand Collapse
    Guest

    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.
    Tips for Access users - http://allenbrowne.com/tips.html
    Reply to group, rather than allenbrowne at mvps dot org.

    "SteveEdge" <SteveEdge@discussions.microsoft.com> wrote in message
    news:7B074869-6911-4B5A-ADFF-AB391482DEDD@microsoft.com...
    > 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?
     
  4. SteveEdge

    SteveEdge
    Expand Collapse
    Guest

    Re: How do I get Access to differentiate capital and lower case le

    Allen,

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

    Thanks,
    Steve

    "Allen Browne" wrote:

    > 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.
    > Tips for Access users - http://allenbrowne.com/tips.html
    > Reply to group, rather than allenbrowne at mvps dot org.
    >
    > "SteveEdge" <SteveEdge@discussions.microsoft.com> wrote in message
    > news:7B074869-6911-4B5A-ADFF-AB391482DEDD@microsoft.com...
    > > 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?

    >
    >
    >
     

Share This Page