Part of some vba code I’m writing calls a saved import using:
DoCmd.RunSavedImportExport "import_name"
This is working quite well for me, except when the saved import does not exist. In that case it fails silently.
Is there a way to check whether the import definition exists so that I can raise an error or take other action if it doesn’t?
I’m using Access 2010 but it needs to work in 2003 as well.
Provide and error handler to resolve this issue (Access 2007 and higher):
A more general solution uses the TransferText command as follows: