Consider a direct Excel query which is supported by the Jet/ACE SQL Engine. Below assumes the Excel sheet is tabular in format with named headers and begins in A1
cell. Save or run below as an Access query. Of course, adjust all columns, Excel workbook path, and sheet name.
INSERT INTO myTable (Col1, Col2, Col3, ...)
SELECT t.Col1, Col2, Col3, ...
FROM [Excel 12.0 Xml;HDR=Yes;Database=C:\Path\To\Excel\Workbook.xlsx].[Sheet1$] t
For Excel data that does not start in left uppermost A1
cell and without headers, consider below query which selects data from sheet range: B100:Z450
. Be sure listed table columns match the data type one-for-one in Excel data of nameless headers.
INSERT INTO myTable (Col1, Col2, Col3, ...)
SELECT *
FROM [Excel 12.0 Xml;HDR=No;Database=C:\Path\To\Excel\Workbook.xlsx].[Sheet1$B100:Z450] t
To debug always run the SELECT
portion of query before full append query.