I have 3 spreadsheets that I want to import into Access but I”m having a problem figuring it out. I’m not even sure it can be done the way I want to do it.
One Spreadsheet looks like this:
StoreNum, SKU_1, SKU_2, SKU_3, ..., SKU_1000
1, 0, 100, 25, ..., 1
2, 5, 250, 15, ..., 5
3, 78, 25, 12, ..., 15
How can I import this so I have StoreNum, SKU, Qty?
The others are easy for me to understand
StoreNum, Address1, Address2, City, State, Zip
and
Sku, Description, Notes, Size
I think you want to store the spreadsheet data in Access like this …
If that’s what you want, keep reading. If it’s not what you want, please clarify what you want.
In Access, create a link to the Excel worksheet and name that link
ExcelSource.Then create a
SELECTquery similar to this:If the result set from that
SELECTquery gives you what you need, convert it to an “append query” to store those data in a table namedYourTable. The SQL for that query will be theSELECTSQL preceded by anINSERT INTO ...section:If your Excel worksheet includes 1000 SKU columns, create a series of smaller append queries, each of which uses a manageable subset of those 1000 columns.
This could also be done with VBA code rather than a query. I don’t want to lead you through that option because I don’t even know if I’m on the right track here.