The line of code below gives me an error. I believe I get the error because the name of the excel file has a "-" in it. Is there a way I can keep the hypen in the filename?I don't want to check the file to see if it has a hypen then remove it before the transfer. Attached is the error message.
xlsName= "C:\Documents and Settings\tvail\Desktop\subcontractactuals09-02.xls"
DoCmd.TransferSpreadsheet , acSpreadsheetTypeExcel9, "ExcelImportTemp", xlsName
Thanks,
James
xlsName= "C:\Documents and Settings\tvail\Desktop\subcontractactuals09-02.xls"
DoCmd.TransferSpreadsheet , acSpreadsheetTypeExcel9, "ExcelImportTemp", xlsName
Thanks,
James