Hello,
I have two employee tables with similar structure imported in Ms Access. Table A contains permanent employee data, and Table B contractors. Some names appear in both tables. I want to make a union between these two tables such that if employee name appears in both tables, it will only keep the one in Table A. That is, if a record of permanent employee also exist as a contractor, the contractor record for that employee will be ignored in the union.
General query form:
Select * FROM TableA
UNION
Select * FROM TableB
Could someone please assist adding a condition, if statement or VBA to achieve the above.
Thank you,
Shawn
I have two employee tables with similar structure imported in Ms Access. Table A contains permanent employee data, and Table B contractors. Some names appear in both tables. I want to make a union between these two tables such that if employee name appears in both tables, it will only keep the one in Table A. That is, if a record of permanent employee also exist as a contractor, the contractor record for that employee will be ignored in the union.
General query form:
Select * FROM TableA
UNION
Select * FROM TableB
Could someone please assist adding a condition, if statement or VBA to achieve the above.
Thank you,
Shawn