Hi
I know that has been asked many times before as I have read through almost all of them, but I just cannot get it to work.
I have 2 tables Payments and Payments_Import I have a web portal for my work, any payments made to me is listed in a spreadsheet in the portal, which I copy into an Excel spreadsheet, that is then imported into a table "Payments_Import" in my DB I then append the data into the Payments table, this is prone to duplicate records.
There is 8 fields in each table the main fields are Job_No and Payment
Initially I had the Job_No field set as the Primary Key this worked fine as at the time there was 1 payment against a Job No, things have now changed and I now can have several payments against 1 job no.
I have tried several methods to achieve this
I know that has been asked many times before as I have read through almost all of them, but I just cannot get it to work.
I have 2 tables Payments and Payments_Import I have a web portal for my work, any payments made to me is listed in a spreadsheet in the portal, which I copy into an Excel spreadsheet, that is then imported into a table "Payments_Import" in my DB I then append the data into the Payments table, this is prone to duplicate records.
There is 8 fields in each table the main fields are Job_No and Payment
Initially I had the Job_No field set as the Primary Key this worked fine as at the time there was 1 payment against a Job No, things have now changed and I now can have several payments against 1 job no.
I have tried several methods to achieve this