I have a regular import from an Excel sheet range using the TransferSpreadsheet method which populates a ‘Holding Table’ and then this information is used to update and append to a Final Junction table. During each import there is only ever one Holder (PK).
Sample Data in Final Junction Table after first import
Sample Data in Holding Table after holder 100 refreshes it’s data via the new imported spreadsheet
As you can see the last two records have dropped of the refreshed import and my question is how can I delete these in the Final Junction Table. The Final Junction Table will store multiple Holders so I can’t do a destructive update for all records. I could however do a destructive update for only that Holder and then import all the remaining 3 records but I need to know how to pass the current holder number to either a delete query or some VBA.
Looking forward to any advice, regards
ps had to put it in the code to keep the format
Sample Data in Final Junction Table after first import
Code:
Holder (PK) System (PK) Number
100 1 10
100 2 10
100 3 25
100 4 15
100 5 50
Sample Data in Holding Table after holder 100 refreshes it’s data via the new imported spreadsheet
Code:
Holder (PK) System (PK) Number
100 1 6
100 2 6
100 3 6
Looking forward to any advice, regards
ps had to put it in the code to keep the format
Last edited: