when using the TransferSpreadsheet method how do you tell Access to use the first row as headers for the table? Here is my current code...
Code:DoCmd.TransferSpreadsheet acImport, , "tblOvertime_Import", vFilePath & vFileName
when using the TransferSpreadsheet method how do you tell Access to use the first row as headers for the table? Here is my current code...
Code:DoCmd.TransferSpreadsheet acImport, , "tblOvertime_Import", vFilePath & vFileName
So simple....
Notice the end of the code.
Original Code:
New Code:Code:DoCmd.TransferSpreadsheet acImport, , "tblOvertime_Import", vFilePath & vFileName
Code:DoCmd.TransferSpreadsheet acImport, , "tblOvertime_Import", vFilePath & vFileName, True