I have an Access database with a table named InventoryAvail. I’d like to push a button in Access and import a specific Listobject from a specific Excel file to fill the InventoryAvail table.
What vba code do I need to put on the button’s event?
Docmd.Transferspreadsheet will not work because I do not want all of the data from the spreadsheet, I only want what is in the specific Listobject.
The Excel file is called Inventory and resides on my desktop. The worksheet is named Inventory.
The Listobject is named Available and has two columns:
The InventoryAvail table has two columns:
I need the data from the Excel Listobject Available to be imported into the Access table InventoryAvail