Access 2003.
What is the VBA code that will import an excel file but will not include the field name in the Excel file. If the Access table field name is different from the field name in the Excel spreadsheet it won 't import.
/////////////////////////////////////////////////////
DoCmd.TransferSpreadsheet acImport, 8, "AccessTableName", "FileAndPathName", 0, "SheetName!StartofRange:EndofRange"
What is the VBA code that will import an excel file but will not include the field name in the Excel file. If the Access table field name is different from the field name in the Excel spreadsheet it won 't import.
/////////////////////////////////////////////////////
DoCmd.TransferSpreadsheet acImport, 8, "AccessTableName", "FileAndPathName", 0, "SheetName!StartofRange:EndofRange"