I import a list of new enquiries into a new table (Copy_of_table_client) on a daily basis. These enquiries come from different sources so it is possible that they contain duplicate leads. In addition before I add them into Tbl_client to be given to the salespeople I need to check that they are not a duplicate of a prrevious enquiry/lead that is already in Tbl_client from another day. So I need to:
1. Check for any duplicates in my import (Copy_of_table_cleint) and remove them
2. Check for any records that exist in both tables (Tbl_Client and copy_of_table_client) and remove them from Tbl_copy_of_table_client)
3. Import any existing records from copy_of_table_client into tbl_client then delete copy_of_table_client table ready for the new import the next day
The fields in Tbl_copy_of_client include FirstName, Surname, Email, Telephone, Notes. These fields all exist in Tbl_Client too. My thinking is that the most reliable and unique value for comparision maybe the Email.
1. Check for any duplicates in my import (Copy_of_table_cleint) and remove them
2. Check for any records that exist in both tables (Tbl_Client and copy_of_table_client) and remove them from Tbl_copy_of_table_client)
3. Import any existing records from copy_of_table_client into tbl_client then delete copy_of_table_client table ready for the new import the next day
The fields in Tbl_copy_of_client include FirstName, Surname, Email, Telephone, Notes. These fields all exist in Tbl_Client too. My thinking is that the most reliable and unique value for comparision maybe the Email.