As part of added functionality to my database, I have a backup facility from the menu which currently copies the database to a separate location. I have added the code to compress the copy into a Winzip file, but I'm having a little difficulty.
I have a line to run Winzip (using the Shell command), then the following line deletes the old MDB file. The problem is that while winzip is loading in the background, the code jumps to the next line and deletes the MDB file before it has had a chance to be zipped up.
Are there any commands in VB to make the program halt while Winzip loads up and creates the zip file? I want it to pause until Winzip shuts down again, then carry on with the rest of the code.
Thx
I have a line to run Winzip (using the Shell command), then the following line deletes the old MDB file. The problem is that while winzip is loading in the background, the code jumps to the next line and deletes the MDB file before it has had a chance to be zipped up.
Are there any commands in VB to make the program halt while Winzip loads up and creates the zip file? I want it to pause until Winzip shuts down again, then carry on with the rest of the code.
Thx