I want to somehow verify that the field header names in an Excel file match those in the resulting table before performing the import via this line of code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblTEMPImportRecords", Me.FileList, True
How can I make sure they match? If they don't provide a warning message to the user and exit the sub.
I can't link to the spreadsheet because more than one will be importing. importing into a temporary table.More than one spreadsheet or more than one user ?
Open in new window
Open in new window