Results 1 to 4 of 4
  1. #1
    K Roger is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Sep 2011
    Posts
    27

    How to search for an ASC code (upper case only) within a query

    I am trying to parse out data that was imported from an EXCEL file. (I still use MS OFFICE 2003). I have succeeded in parsing out the desired data into a single word field (in title case, all lower or all upper case and or a mix of them that I want to update to a separate field in the database. I can sort on this field in a query OK as well as doing a "Find" using the drop down window.



    However, my problem is when I try running a query using the the "Contains" line, the selection e.g. "A" always fails. I have attempted various values, such as chr(65), asc(65) and 65 with an without quotes. I just cannot figure out the syntax to put in the "Contains" line, if indeed I can select a title case value. So far my only solution is to copy the value in a computed field (using Right, Left, Instr and Mid functions in several steps). This is a lot of work that involves about 6000 records.

    Any help/suggestions would be appreciated.

    KRoger

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922

  3. #3
    K Roger is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Sep 2011
    Posts
    27
    Thanks RuralGuy

    At first blush and hopefully last blush the solution offered at your suggested link works!

    Thank you very much!

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    You are most welcome. Welcome to the site BTW.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Change text case from upper to proper case
    By s.nolan in forum Access
    Replies: 1
    Last Post: 12-02-2015, 10:56 AM
  2. Replies: 5
    Last Post: 10-23-2012, 03:55 PM
  3. Upper & Lower Case in table
    By Forums10 in forum Access
    Replies: 4
    Last Post: 01-31-2011, 09:01 AM
  4. Is there a way to force a field do be upper case?
    By newtoAccess in forum Access
    Replies: 1
    Last Post: 11-28-2010, 04:20 PM
  5. Forcing text to upper case
    By barrettp in forum Forms
    Replies: 10
    Last Post: 06-01-2010, 09:44 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums