I'm trying to use the following code to import a file into a table. However, I'm getting the error "Run-Time Error 2391" Field F1 doesn't exist in destination table. However, when I go file, get external data, import I can successfully impor the file. Not sure why I can't do it in code. Any suggestions?
Thanks Lisa
varFileName = "c:\windows\desktop\download files to import\barnstead\abl92502l.XLS"
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel5, "tblISCLeadsABLALN", varFileName
Thanks Lisa
varFileName = "c:\windows\desktop\download files to import\barnstead\abl92502l.XLS"
DoCmd.TransferSpreadsheet acImport, acSpreadsheetTypeExcel5, "tblISCLeadsABLALN", varFileName