Results 1 to 5 of 5
  1. #1
    RAJESHKUMAR R is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    48

    How to Find Unmatched Data by Comparing 3 Quires with 1 Table

    Dear Experts,

    I have created three different Query Named as below


    1. FirmOrder
    2. 2. Forecast
    3. 3. Shipment

    And all these three contains common field that is Part_Number

    Also, I have a Table Named as “FG_PN_LISTS” which is also contains a field as Part_Number

    The Support which I am requesting here is,



    I would like to compare all thee queries with “FG_PN_LISTS” Table and provide the single lists of Part_Number which is not available in “FG_PN_LISTS”!

    Thanks & Regards,
    Rajeshkumar R

  2. #2
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,527
    you want an OUTER join
    join the Part list to the query on Part.
    dbl-click the join line
    set the property to : show ALL records from tParts, SOME from the query
    bring down PART# from both into the grid
    run query, the 'null' results will show what is missing.

  3. #3
    RAJESHKUMAR R is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Oct 2017
    Posts
    48
    Dear ranman256,


    Thanks for your Response, I could able do above only for one Table with One Query.

    However, I would like to compare all three Queries Part_Number Lists with FG_PN_LISTS and find Unmatched Data!

    When I am trying I am getting an Error like "Ambiguous Join"

    Thanks & Regards,
    Rajeshkumar R

  4. #4
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,991
    This post may help with ambiguous join errors

    https://www.accessforums.net/showthr...356#post390356
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

  5. #5
    Gicu's Avatar
    Gicu is offline VIP
    Windows 8 Access 2013
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,121
    The trick to do it all in one query is to properly create your outer joins. For that you need to start with your most inclusive set and go from there in a descending order. So maybe in your case Forecast->Shipment->FirmOrder->FG_PN_LISTS if the table is indeed the one with the least amount of part numbers.

    Cheers,
    Vlad

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

Similar Threads

  1. Replies: 3
    Last Post: 09-22-2014, 01:53 PM
  2. Replies: 7
    Last Post: 01-08-2014, 06:03 PM
  3. Multiple Find Unmatched
    By dr4ke1990 in forum Queries
    Replies: 13
    Last Post: 11-08-2013, 10:41 AM
  4. Replies: 1
    Last Post: 12-08-2011, 01:52 PM
  5. Unmatched data entered with data in table
    By boreda in forum Access
    Replies: 0
    Last Post: 07-28-2006, 09:11 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