Results 1 to 4 of 4
  1. #1
    Jerseynjphillypa is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Apr 2012
    Posts
    83

    find all text string in Criteria at once

    I would like to find all the text string under the field location for NJ - xxx, NJ-xxxx, NJ -xxxx,etc.

    I do not want it to find NJ

    I used the command Like "NJ -*"

    But the problem is the space or the position of the "-". How would I be able to find all text string using the criteria all at once regardless of the extra space or "-".
    Attached Files Attached Files

  2. #2
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    This should do the trick

    WHERE Table.Location Like "NJ*" and Table.Location <> "NJ"
    Attached Files Attached Files

  3. #3
    Jerseynjphillypa is offline Advanced Beginner
    Windows Vista Access 2007
    Join Date
    Apr 2012
    Posts
    83
    thank you for the help jzwp11

  4. #4
    jzwp11 is offline VIP
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2010
    Location
    Dayton, OH
    Posts
    2,901
    You're welcome.

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

Similar Threads

  1. Find first Capital letter in string
    By Dutch1956 in forum Programming
    Replies: 5
    Last Post: 09-07-2011, 03:14 PM
  2. Replies: 1
    Last Post: 05-30-2011, 09:38 AM
  3. Replies: 1
    Last Post: 03-20-2011, 09:21 AM
  4. Multiple Criteria in a string
    By cksm4 in forum Programming
    Replies: 3
    Last Post: 08-04-2010, 11:54 AM
  5. How to Concatenate String Criteria
    By ColPat in forum Programming
    Replies: 2
    Last Post: 06-26-2010, 08:48 PM

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