I have a Procedure event which calls other sub events. One to FTP a file, one to unzip a file, one to append the unzipped files to external tables.
These three sub procedures (FTP,Unzip,Append) are called inside of a loop which steps through a record set. Once the loop is finished 25 files will have been FTP'ed, Unziped, and Appended.
It seems like Access is not waiting for one sub procedure to finish before it calls the next one. Every time I run this loop one or two files will be skipped (not always the same files). I thought Access hands control over to the sub procedure, which executes and then hands control back to the calling procedure when it done.
Is there any way to make sure the sub procedure is finished before the calling procedure conintues?
These three sub procedures (FTP,Unzip,Append) are called inside of a loop which steps through a record set. Once the loop is finished 25 files will have been FTP'ed, Unziped, and Appended.
It seems like Access is not waiting for one sub procedure to finish before it calls the next one. Every time I run this loop one or two files will be skipped (not always the same files). I thought Access hands control over to the sub procedure, which executes and then hands control back to the calling procedure when it done.
Is there any way to make sure the sub procedure is finished before the calling procedure conintues?