Good morning, interesting problem I hope. (I am using Office 2007)
At the moment, I have an Access table which is basically a spec for how different retailers raw excel files can be read into an Access Table. It lists the Field Name that will be used when importing into the Access table, the first data row etc.
E.g.
Retailer_No 1
File Name C:\RawFiles\Retailer1.xls
First_Import_Row 4
Unit_Sales A
Value_Sales D
I then use some code I found to open the File and then loop through to map what ever is in Column A to Unit Sales for example. Although it works, it relies on the user opening the excel file, writing down the column numbers and then editing the table above. What I would like to happen, is for Access to ask the user to select the Excel file, and then loop through the Key fields required (Unit Sales, Value sales etc) and ask the user to highlight the column for that field e.g. User highlights Column A and then this is used for Unit_Sales.
Can anyone help please?
At the moment, I have an Access table which is basically a spec for how different retailers raw excel files can be read into an Access Table. It lists the Field Name that will be used when importing into the Access table, the first data row etc.
E.g.
Retailer_No 1
File Name C:\RawFiles\Retailer1.xls
First_Import_Row 4
Unit_Sales A
Value_Sales D
I then use some code I found to open the File and then loop through to map what ever is in Column A to Unit Sales for example. Although it works, it relies on the user opening the excel file, writing down the column numbers and then editing the table above. What I would like to happen, is for Access to ask the user to select the Excel file, and then loop through the Key fields required (Unit Sales, Value sales etc) and ask the user to highlight the column for that field e.g. User highlights Column A and then this is used for Unit_Sales.
Can anyone help please?