C
cunger28
I have an array set up to cycle through a DoCmd.RunSql command that dumps to
an excel file on my network. Ideally, I want it to over write the existing
file. If somebody is currently in that file however, my entire process
freezes.
Is there any way to identify if a file is open, and if it is, skip the
output for that file and move on to the next one.
Example: I have a file that outputs detail to four files.
Texas.xls
Oklahoma.xls
Arkansas.xls
Louisiana.xls
My array would output the data in the above order. If someone happens to be
in the Oklahoma.xls file, I want to skip the output for that file and move on
to Arkansas.xls.
I have the output array and everything else done. Just need to put together
an if statement that could hopefully identify any open files.
Thanks
an excel file on my network. Ideally, I want it to over write the existing
file. If somebody is currently in that file however, my entire process
freezes.
Is there any way to identify if a file is open, and if it is, skip the
output for that file and move on to the next one.
Example: I have a file that outputs detail to four files.
Texas.xls
Oklahoma.xls
Arkansas.xls
Louisiana.xls
My array would output the data in the above order. If someone happens to be
in the Oklahoma.xls file, I want to skip the output for that file and move on
to Arkansas.xls.
I have the output array and everything else done. Just need to put together
an if statement that could hopefully identify any open files.
Thanks