display the progress

  • Thread starter Thread starter Louis
  • Start date Start date
L

Louis

I tried to use label.caption to show the progress. But it
never shows up untill the processing comes to end. How can
you display a screen message to show the progress, like
running 1 step.. running 2 step, etc.

Thank you in adavance.
Louis
 
Draw a box on your form and place a label of 0 width inside the box. Set the
backcolor of the label to what you want. At each step in your code,
incrementally increase the width of the label so that when your code completes,
the width of the label will be the width of the box indicating 100% complete.
 
You need to stick the command

Repaint

after you change the label.caption

Otherwise, Access will do the more important stuff (step 1, step 2, etc)
first before refreshing the screen.

This makes sense, imagine that you had several dozen records displayed on a
form and you clicked a button to change the date on every one of them. If
Access stopped to redraw the screen every time one date changed, it would
take a long time to finish.

Bob
 
Back
Top