Page 2 of 2 FirstFirst 12
Results 16 to 18 of 18
  1. #16
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Another way to say it - you want to find records in MRP that are not already in Master.



    What is LEFT JOIN pulling - Should be "Retrieve all records from MRP and only those from Master that match". Then need Is Null criteria under the Master fields for a Find Unmatched result.

    The 'extra' fields are in MRP? They should be retrieved by the query you posted.
    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.

  2. #17
    gaker10 is offline Competent Performer
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2014
    Posts
    262
    The extra columns are in Master. So where in my code should I put that?

    Code:
    SELECT MRP.*, Master.extrainfo1, Master.extrainfo2, Master.extrainfo3, Master.extrainfo4
    FROM MRP LEFT JOIN Master ON (MRP.ShipDate = Master.ShipDate) AND (MRP.DatePromised = Master.DatePromised) AND (MRP.QtyOrdered = Master.QtyOrdered) AND (MRP.CustLine = Master.CustLine) AND (MRP.ClassCode = Master.ClassCode) AND (MRP.CustPO = Master.CustPO) AND (MRP.CustID = Master.CustID) AND (MRP.SOLine = Master.SOLine) AND (MRP.SONumber = Master.SONumber) AND (MRP.PartNumber = Master.PartNumber)
    WHERE (((Master.PartNumber) Is Null));

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    You don't put the 'Retrieve ...' in the sql statement. That was a description of the JOIN type. It will be either a LEFT or RIGHT (I never can remember which way). I see you have LEFT. In query design view, click on the link line between the two tables and see what the selected join description is.
    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.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 09-08-2014, 10:36 AM
  2. Date Query help needed (comparison help)
    By quentinfox in forum Queries
    Replies: 4
    Last Post: 10-16-2013, 09:59 AM
  3. data comparison query help
    By aselm01 in forum Queries
    Replies: 10
    Last Post: 09-12-2013, 03:29 PM
  4. Comparison Query
    By mkc80 in forum Queries
    Replies: 3
    Last Post: 08-15-2012, 01:48 PM
  5. Comparison Query
    By mkc80 in forum Access
    Replies: 3
    Last Post: 08-11-2012, 04:50 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