G
Guest
I am trying to automate a file import. Most of the time, the code below
works great. However, there are occassions when another user will have this
file open. Generally, it is only opened for several minutes or less.
However, this situation causes the macro to throw an error message.
vLoc = "V:\Invoices\Cost Center List.csv"
DoCmd.TransferText acImportDelim, "Cost Center Specification", "Cost
Center", vFileName, False
What I would like to do is create some loop that will allow the macro to
keep trying to import the file until it is successfully imported. I really
don't need to see the error messages at all. I would like this situation to
be transparent to the end user.
Any suggestions or code to get me started would be greatly appreciated.
Thanks for the help........
works great. However, there are occassions when another user will have this
file open. Generally, it is only opened for several minutes or less.
However, this situation causes the macro to throw an error message.
vLoc = "V:\Invoices\Cost Center List.csv"
DoCmd.TransferText acImportDelim, "Cost Center Specification", "Cost
Center", vFileName, False
What I would like to do is create some loop that will allow the macro to
keep trying to import the file until it is successfully imported. I really
don't need to see the error messages at all. I would like this situation to
be transparent to the end user.
Any suggestions or code to get me started would be greatly appreciated.
Thanks for the help........