Delete duplicate data from access tables while creating new table

Hello

I have 2 tables in Access that I need to create a new table with.  I want the new table to not contain any data from table 2 (duplicate data).

So table1 will be my starting table and I need to delete any duplicate CustID from it that can be found in table2.

So New_Table will only have records in it that was not duplicated.  

I hope I am not making this confusing but table1 has updated data in it.  And Table2 has old data in it.  So I want to create New_Table that basically only has the new custID data that was not found in Table2.  (CustID is the only field I am looking at for duplicate.  So if The custID has been used in table2 I don’t want any of those records to show up in New_Table)


I have attached a access database that shows what I am talking about.  Table1, Table2 and need to know how to create New_Table

Thanks for your help

FaithDan
startingpoint1.accdb
LVL 1
FaithDanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rey Obrero (Capricorn1)Commented:
run a make table query

SELECT Table1.CustID, Table1.Name1, Table1.Phone, Table1.ItemID INTO New_table1
FROM Table1 LEFT JOIN Table2 ON Table1.CustID = Table2.CustID
WHERE Table2.CustID Is Null

see query1
startingpoint1-rev.accdb
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PrasanthKrishnanCommented:
Try this query



INSERT INTO NEW_TABLE  SELECT a.CUSTID,a.NAME1,a.PHONE, a.ITEMID FROM
(
SELECT custid, name1, phone, itemid from table1
union
SELECT custid, name1, phone, itemid from table2
) a
0
FaithDanAuthor Commented:
Thank you again... That's exactly what I was needing.

Thank you very much

FaithDan
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.