I have a simple table with an auto-numbered key:
Key FName LName
What I'd like to do is export all the records in the table to Excel (accomplished easily by selecting the records and copy/pasting them to Excel as text). Another person will then edit the records in Excel, making changes to some names and adding some records (leaving the Key field blank). I can do all of that.
However, once I'm finished making my changes/additions in Excel, I want to re-import the data to Access. Spreadsheet rows where the Key is listed and exists in the table should update that table row. Spreadsheet rows where the Key field is empty (or there is no matching table Key) should be added (allowing Access to Autonumber those new rows in the Key field).
Using "File>Get External Data>Import. . ." adds new rows easily enough, but throws an error for every row where the Key already exists (which will be most of the time since I will be doing more edits than additions).
How do I set up this import? Will it require VBA code, or am I just using the Import tool incorrectly?
VBAjedi![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)
Key FName LName
What I'd like to do is export all the records in the table to Excel (accomplished easily by selecting the records and copy/pasting them to Excel as text). Another person will then edit the records in Excel, making changes to some names and adding some records (leaving the Key field blank). I can do all of that.
However, once I'm finished making my changes/additions in Excel, I want to re-import the data to Access. Spreadsheet rows where the Key is listed and exists in the table should update that table row. Spreadsheet rows where the Key field is empty (or there is no matching table Key) should be added (allowing Access to Autonumber those new rows in the Key field).
Using "File>Get External Data>Import. . ." adds new rows easily enough, but throws an error for every row where the Key already exists (which will be most of the time since I will be doing more edits than additions).
How do I set up this import? Will it require VBA code, or am I just using the Import tool incorrectly?
VBAjedi
![[swords] [swords] [swords]](/data/assets/smilies/swords.gif)