1I want to regularly import data into an access table from a spreadsheet
The spreadsheet has data: Code1, Code2, Number1, Number2
Code1 = share code
Code2 = stock exchange code
Number1 = price
I want the resulting access table to have a primary key made up of the concatenation of the two codes: Code1 and Code2
I have a table tSeparate which has the same fields as the spreadsheet.
Code1, Code2, Number1, Number2
First I delete all the records in tSeparate
Then I import the data into tSeparate
I have a query qJoining which operates on tSeparate giving:
BothCodes: [Code1] & [Code2], Number1, Number2
I have a table tJoined which has the same fields as the above query
[BothCodes], Number1, Number2
I delete all the old records in tJoined
Then I run an append query which uses qJoining to give me a table with the primary key I want.
Is there an easier way to do this?