I have a system where a user will download an Excel spreadsheet from the web and then they will go to Access to and invoking the object browser choose their file and import using transferspreadsheet.
I have the Access part automated but I can't control the user's choice of Excel file. What I would like to do is try to open that Excel file prior to the transferspreadsheet and do a count of the columns to make sure they match the column count in the Access table. Its like 95 columns so if the count is the same, it almost has to be right.
Any ideas on getting the column count of an Excel spreadsheet from Access??
Thank you in advance!!
I have the Access part automated but I can't control the user's choice of Excel file. What I would like to do is try to open that Excel file prior to the transferspreadsheet and do a count of the columns to make sure they match the column count in the Access table. Its like 95 columns so if the count is the same, it almost has to be right.
Any ideas on getting the column count of an Excel spreadsheet from Access??
Thank you in advance!!