I am importing an Excel spreadsheet into Access using the following, which works, but the resulting table doesn't have the records in the same order as the original spreadsheet and there is no field to sort on.
So, is there any way to make it so the rows stay in the same order in the Access table as they were in the spreadsheet?
Code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel12Xml, "tblImportmain", _
FilePath, _
True, SheetPath
So, is there any way to make it so the rows stay in the same order in the Access table as they were in the spreadsheet?