Results 1 to 5 of 5
  1. #1
    samtitus is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2017
    Posts
    5

    QUERY to LIST matching criteria and NOT part criteria


    I have a column that lists all candidates qualifications and I would like to search for candidates that matches ONLY a list of qualifications I search for.
    for instance if I list 3 different types of qualifications - it must ONLY list candidates who has all 3 qualifications and not list candidates who has only 2 or 1 of the qualifications I list.
    I need the list to show me candidates that has all 3 qualifications. how do I do this, I tried combo boxes but it still shows me candidates that has only 2 or the 3 qualifications I am looking for.

  2. #2
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,737
    In the qualifications field separate each qualification (or form control reference if that's what you're doing) with AND.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,521
    make a 'search table', tFindQuals. add the quals you want to find.
    join this to the tPersonQuals table.

    you may have to add a count so the query returns the count in tFindQuals = count(tPersonQuals)

    the images shows the queries, 1. to join persons to the quals to find,
    2. count the FindQuals, 3 join them to get the exact count.
    Attached Thumbnails Attached Thumbnails get all quals.jpg  

  4. #4
    samtitus is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2017
    Posts
    5
    Thank you I have changed the operator from OR to AND but now it does not return any records and I know there are candidates that match the qualifications I am looking for. Please advise

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,716

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

Similar Threads

  1. Query using Like criteria pattern matching
    By vad77 in forum Queries
    Replies: 2
    Last Post: 05-08-2020, 12:04 PM
  2. Criteria part in an expression in a query.
    By Perfac in forum Queries
    Replies: 1
    Last Post: 05-18-2016, 11:48 AM
  3. Replies: 6
    Last Post: 07-01-2015, 09:56 AM
  4. Replies: 4
    Last Post: 06-30-2014, 02:53 PM
  5. Replies: 5
    Last Post: 08-02-2012, 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