G
Guest
I want to use code to import an Excel spreadsheet into an Access table. I
can currently import the file manually (clicking) into an existing table or
into a new table with no errors.
But when I use this code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblSCR",
myFileName, Yes
I get this error:
Field 'F1' doesn't exist in destination table 'tblSCR'.
This doesn't make any sense. I am trying to import the same file into the
same table and it doesn't complain when I am doing all the clicking!
Can anyone help with this?
Thank you, Judy
can currently import the file manually (clicking) into an existing table or
into a new table with no errors.
But when I use this code:
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel9, "tblSCR",
myFileName, Yes
I get this error:
Field 'F1' doesn't exist in destination table 'tblSCR'.
This doesn't make any sense. I am trying to import the same file into the
same table and it doesn't complain when I am doing all the clicking!
Can anyone help with this?
Thank you, Judy