I have two access 2007 tables. I would like to use an append query that only appends records from table1 to table two (append to table) where the SSN and the Consult Date fields are not already in table two (append to table). Any thoughts -- Thanks
Microsoft ApplicationsMicrosoft OfficeMicrosoft Access
Last Comment
Dale Fye
8/22/2022 - Mon
Jeffrey Coachman
Please try to post a sample database and present the *exact* output you need, based on the sample data.
It is not clear if this means the field itself is not present or the field "value" is not present
...etc
<the SSN and the Consult Date fields are not already in table two (append to table)>
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
Don't know how familiar you are with SQL. If you aren't (or if you prefer) then you can create a new query graphically in design view and let Access create the SQL statement for you, essentially getting what fyed wrote as the result ...
Create a new query, add both tables, draw lines between Table1.SSN and Table2.SSN, and between Table1.ConsultDate and Table2.Consultdate, Double Click each line and specify "Include all records from Table1" (the lines change to have an arrow on the Table2 side), drop Table2.SSN down to the grid (by dragging or double clicking it) and specify "Is Null" for the criteria. Change the query type to "Append" and specify all the fields you want to append.
shieldsco
ASKER
Thanks fyed -- glad you understood
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
It is not clear if this means the field itself is not present or the field "value" is not present
...etc
<the SSN and the Consult Date fields are not already in table two (append to table)>
JeffCoachman