Results 1 to 2 of 2
  1. #1
    mknowles is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2009
    Posts
    2

    query field with multiple values

    I've received an Access database with a SUBNATIONS field that can contain Mexican states, American states or Canadian provinces that are comma-delimited. An example might be "AZ, CO, MEXCH, BC." I'm interesting only in rows with at least one American state (drop if only found in Mexico or Canada).



    I've tried the IN operator [In ("AL", "AZ", ... , "WY")] but that only reports rows with one state occurrence (not multiple states occurrences as above). I've looked at other operators but nothing seems to be working.

    I'm new to Access and SQL and am wondering if: (a) I can perform this with a simple query, or (B) if there are more sophisticated searches I need to perform that I'm not aware of?

    Thanks,
    Mike

  2. #2
    mknowles is offline Novice
    Windows XP Access 2007
    Join Date
    Nov 2009
    Posts
    2
    Sometimes you just need to post a question and the answer comes to you.

    The solution was to query:
    Like "*AL*" Or Like "*AK*" Or … Or Like "*WY*" Or Like "*DC*"

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

Similar Threads

  1. Query multiple field & criteria
    By fua in forum Access
    Replies: 2
    Last Post: 11-04-2009, 08:22 PM
  2. Query multiple values in a field
    By JAYgarti in forum Access
    Replies: 0
    Last Post: 07-09-2009, 09:52 AM
  3. Replies: 1
    Last Post: 07-07-2009, 01:00 PM
  4. clear field values
    By surrendertoo in forum Queries
    Replies: 0
    Last Post: 02-23-2008, 10:57 PM
  5. Replies: 0
    Last Post: 12-19-2006, 09:44 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