I am working with a program to automate Word to create documents from Access. When the user is in access and says "Create Letter" (by way of a command button), I need a popup screen to say "Please wait..creating document name???".
Then in the background it should go to word (quietly in the background) and create the document. It does do all of this, but the issue I am having is with the popup screen.
If I don't set DoEvents, then it just draws the frame and leaves the inside of it transparent.
If I use the DoEvents, it displays the screen only the first time, and then shows word opening and closing and doing all the commands that I have set up in the background. I don't want the user to see all the Word activity.
Using a sleep API is not helpful either as you have to program the amount of sleep time. How would I set this when the speed will vary from machine to machine?
My question....any suggestions how I can get my "please wait" popup screen to appear, and only that screen, that will provide the user with visual updates as to the progress in the background?
Perhaps there is a way to use sleep, but I am unfamiliar with it (other than reading it through the forums here).
If anyone has any suggestions, I am all ears!
Then in the background it should go to word (quietly in the background) and create the document. It does do all of this, but the issue I am having is with the popup screen.
If I don't set DoEvents, then it just draws the frame and leaves the inside of it transparent.
If I use the DoEvents, it displays the screen only the first time, and then shows word opening and closing and doing all the commands that I have set up in the background. I don't want the user to see all the Word activity.
Using a sleep API is not helpful either as you have to program the amount of sleep time. How would I set this when the speed will vary from machine to machine?
My question....any suggestions how I can get my "please wait" popup screen to appear, and only that screen, that will provide the user with visual updates as to the progress in the background?
Perhaps there is a way to use sleep, but I am unfamiliar with it (other than reading it through the forums here).
If anyone has any suggestions, I am all ears!