I am running this code to import an Excel sheet into a table in my database. This works fine if I set [HasFieldNames] to false. When [HasFieldNames] is set to true, I get the correct field names in the table, but don't get any data from the sheet. Has anyone heard of anything like this?
DoCmd.TransferSpreadsheet acImport, , "txlsRevenuePayback", _
"s:\Programs\Reporting\Payback Revenue Table - Master Copy.xlsx", True, "Actual Revenue By Province!A1
2000"
DoCmd.TransferSpreadsheet acImport, , "txlsRevenuePayback", _
"s:\Programs\Reporting\Payback Revenue Table - Master Copy.xlsx", True, "Actual Revenue By Province!A1
