When I put the working directory files on the server, some things ran a lot slower. A couple of buttons on the main form run a bunch of update queries and then open the form. On a standalone computer this takes maybe a second. On the server it takes maybe 5 to 8 seconds. So I created a "Please Wait" popup form.
I thought it would be neat to put a status bar on it, and I did so. I'm using the timer event to advance the bar. The open for the timer is on the "Please Wait" form and the Killtimer is on the close event. It runs fine by itself. I open the "Please Wait" form at the beginning of the code (pushbutton on the main form) that runs the queries and close it at the end. However, I have to insert sleep commands between the queries for the bar to properly grow in size. Is there a better way? Right now I'm using sleep(100) and the timer is set to 75. I've just chosen a size increment for the bar that results in it approaching max size when the queries are finished.
I know this is rather crude, and I figure there must be a better way. Any advice?
Lynn
I thought it would be neat to put a status bar on it, and I did so. I'm using the timer event to advance the bar. The open for the timer is on the "Please Wait" form and the Killtimer is on the close event. It runs fine by itself. I open the "Please Wait" form at the beginning of the code (pushbutton on the main form) that runs the queries and close it at the end. However, I have to insert sleep commands between the queries for the bar to properly grow in size. Is there a better way? Right now I'm using sleep(100) and the timer is set to 75. I've just chosen a size increment for the bar that results in it approaching max size when the queries are finished.
I know this is rather crude, and I figure there must be a better way. Any advice?
Lynn