Apologies. I should have declared I’m a rank amateur.There may well be something obvious I’m missing.
I’m using a hand-me-down database with tables which have not been normalised. I’m trying to develop a replacement. So, let’s say I’m starting from scratch. I’ll make it very simple in the hope you’ll see what I’m trying to do. Let’s say I have a database with three tables, Name, Item, Location.
The Name table consists say of three entries:
1 Smith
2 Jones
3 Evans
The Item table shows:
1 Potatoes
2 Tomatoes
3 Onions
The Location table has:
1 Oldham
2 Bolton
3 Manchester
I create a query joining these called Transactions. I create a table with the same name based on the query.
Using an input form I can create a record if I sell potatoes to Smith in Oldham. The Transactions table now contains, 1,1,1.
Now I receive a spreadsheet from my salesman with a new sale. He sold tomatoes to Jones in Bolton. I want to append that transaction to my table. If I go to ‘import’, ‘external data’, and Excel, I can append to this table. What it imports are the values of the data items from the spreadsheet, in this case: Jones, Tomatoes, Bolton. What I want to append are the key equivalents: 2,2,2.
That is my question. How do I read the data from the spreadsheet and retrieve the keys for each data item, and then append those values to my table.
Hope that makes sense