R
RayV
I have a Macro that:
runs a function that:
runs a bat file that:
runs an ftp script that:
creates a txt file of the ftp sites directory
This runs fine except the next step in the macro is to import the text
file using TransferText. Access attempts to import the txt file
before the ftp script finishes writing it and I get:
"Microsoft Jet database engine could not find..."
I have tried:
putting a pause in the bat file - Access keeps going not wating for
the bat file to finish
putting the TransferText as the next step in the function - same error
"could not find"
having the first macro run a second macro with the TransferText - same
error
How can I make either the function or the macro wait until the file
exists or is available?
runs a function that:
runs a bat file that:
runs an ftp script that:
creates a txt file of the ftp sites directory
This runs fine except the next step in the macro is to import the text
file using TransferText. Access attempts to import the txt file
before the ftp script finishes writing it and I get:
"Microsoft Jet database engine could not find..."
I have tried:
putting a pause in the bat file - Access keeps going not wating for
the bat file to finish
putting the TransferText as the next step in the function - same error
"could not find"
having the first macro run a second macro with the TransferText - same
error
How can I make either the function or the macro wait until the file
exists or is available?