Results 1 to 3 of 3
  1. #1
    dougdrex is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2014
    Posts
    49

    Query records where value in field is not found in field from another table

    Using Access 2010



    I have a relatively simple db. It only has two tables. Each table has a field that concatenates the values from three other fields (concatenation performed in Excel before importing). I want to query the records where the value of the concatenated field in one table is NOT found in the concatenated field of the other table.

    The query uses both tables and creates a relationship between the two fields. I'm having a brain freeze on how to only include the rows from the table I'm working on (field called "Unique_Key") that do not have a matching value in the concatenated field from the other table (field called "Unique_ID").

    Let me know if my explanation does not make sense.

    Thanks!
    Doug

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Have you tried the Find Unmatched query wizard?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    John_G is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2011
    Location
    Ottawa, ON (area)
    Posts
    2,615
    In the query design view, set the properties of the join (right-click on the join line) to show all records from table A and only releated records from table B (Option 2).

    The result will give you all records in table A, and rows where there is no matching record in Table B will have blanks for the Table B data.

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

Similar Threads

  1. Replies: 6
    Last Post: 11-18-2013, 07:52 AM
  2. Replies: 12
    Last Post: 04-25-2013, 01:32 PM
  3. Replies: 1
    Last Post: 04-12-2013, 06:11 AM
  4. Replies: 5
    Last Post: 06-19-2012, 10:46 AM
  5. Replies: 1
    Last Post: 04-29-2010, 05:22 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