Welcome to SPN

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

Sign Up Now!
  1.   Become a Supporter    ::   Make a Contribution   
    Target (Recurring Monthly): $200 :: Achieved: $98

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. OP
    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. OP
    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?

    >
    >
    >
     
Since you're here... we have a small favor to ask...

More people are visiting & reading SPN than ever but far fewer are paying to sustain it. Advertising revenues across the online media have fallen fast. So you can see why we need to ask for your help. Donating to SPN's is vote for free speech, for diversity of opinions, for the right of the people to stand up to religious bigotry. Without any affiliation to any organization, this constant struggle takes a lot of hard work to sustain as we entirely depend on the contributions of our esteemed writers/readers. We do it because we believe our perspective matters – because it might well be your perspective, too... Fund our efforts and together we can keep the world informed about the real Sikh Sikhi Sikhism. If everyone who writes or reads our content, who likes it, helps us to pay for it, our future would be much more secure. Every Contribution Matters, Contribute Generously!

    Become a Supporter      ::     Make a Contribution     



Share This Page