Log in

View Full Version : Solved: excel column names to access array



calenger
09-16-2005, 11:24 AM
Hi All and thanks for reading

Does anyone know of a way to pull the column names from an excel spreadsheet into an array in access?

The reason :)
I have a download spreadsheet that changes by adding or removing columns every month. I attempting to build a custom import that will deal with the changes.

The Plan :)
I am going to compare the previous months table's feild names and ordinal positions to the spreadsheet to determine what has changed. Then either move new columns to the end of the spreadsheet (dont care about new data) or insert column (with name) to satisfy the transferspreadsheet routine i already have.

Any better ideas appreciated.

calenger
09-16-2005, 11:27 AM
sorry forgot to add that column names are in the second row of the spreadsheet