L
LJG
Hi Guys,
Have in import routine that calls a number of sheets, how can I avoid an
error message if the file does not exist?
This is my code:
DoCmd.TransferSpreadsheet acImport, 8, "tblmamprospects",
"C:\database\dataimports\Prospects_User1.xls", True, ""
DoCmd.TransferSpreadsheet acImport, 8, "tblmamprospects",
"C:\database\dataimports\Prospects_User2.xls", True, ""
DoCmd.TransferSpreadsheet acImport, 8, "tblmamprospects",
"C:\database\dataimports\Prospects_User3.xls", True, "" etc
Thanks
Les
Have in import routine that calls a number of sheets, how can I avoid an
error message if the file does not exist?
This is my code:
DoCmd.TransferSpreadsheet acImport, 8, "tblmamprospects",
"C:\database\dataimports\Prospects_User1.xls", True, ""
DoCmd.TransferSpreadsheet acImport, 8, "tblmamprospects",
"C:\database\dataimports\Prospects_User2.xls", True, ""
DoCmd.TransferSpreadsheet acImport, 8, "tblmamprospects",
"C:\database\dataimports\Prospects_User3.xls", True, "" etc
Thanks
Les