Results 1 to 3 of 3
  1. #1
    RogerD is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Location
    Ky
    Posts
    27

    merging 2 tables and deleting duplicate info

    I am using an Access dB to summarize orders and forecasts from our customers. The information starts out as 2 excel files, then is uploaded into the database and the info is merged into 1 file.



    The issue is, we have overlapping dates for orders and forecasts.

    I need a query that will check for:
    Part Number and date in the forecast file that match part number and date in the order file.
    Any matches to both part number and date in the forecast file would be removed and the information in the orders file would be kept.

    Any and all help is appreciated..
    thanks
    RogerD

  2. #2
    llkhoutx is offline Competent Performer
    Windows 8 Access 2010 32bit
    Join Date
    Jan 2010
    Location
    Houston, Texas USA
    Posts
    373
    Join the 2 tables in an append query, append only those records in the 2nd table.

  3. #3
    RogerD is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2014
    Location
    Ky
    Posts
    27
    Quote Originally Posted by llkhoutx View Post
    Join the 2 tables in an append query, append only those records in the 2nd table.
    yes, that would work, but the forecast and orders do not overlap in every instance. Perhaps, I am missing something.
    I need all orders and all forecasts, except where orders and forecasts are on the same date with the same part number, when this occurs, I want the orders only.
    we have from 1 to 3 weeks of firm orders (varies by customer), and forecasts for up to 3 months

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

Similar Threads

  1. Deleting the wrong duplicate
    By mattzkn in forum Access
    Replies: 1
    Last Post: 12-10-2013, 06:42 AM
  2. Merging duplicate data
    By spenco in forum Access
    Replies: 2
    Last Post: 12-02-2013, 05:30 PM
  3. Deleting Duplicate Records
    By EHittner in forum Queries
    Replies: 9
    Last Post: 10-30-2013, 02:56 PM
  4. Duplicate info... AGAIN
    By Oscar.Ingalls in forum Queries
    Replies: 2
    Last Post: 01-01-2013, 12:19 AM
  5. Merging and deleting duplicate records
    By Rider in forum Access
    Replies: 1
    Last Post: 01-06-2012, 01: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