The data I have in my spreadsheet does not have a first row with the names of the fields. When I run this, it gives me a run-time error 2391 "Field F1 does not exist in table "testing"".
How do I make it accept the default names of the fields? When I manually added in the field names, and changed the HasFieldNames to True, it worked...Unfortunately, the data that comes to me does not have field names.
DoCmd.TransferSpreadsheet acImport, 8, "testing", _
"C:\Excel_StockLedger_Conversion.xls", False, "'TempHolding'!a:h"
How do I make it accept the default names of the fields? When I manually added in the field names, and changed the HasFieldNames to True, it worked...Unfortunately, the data that comes to me does not have field names.
DoCmd.TransferSpreadsheet acImport, 8, "testing", _
"C:\Excel_StockLedger_Conversion.xls", False, "'TempHolding'!a:h"