Updating Form Field During Execution

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a textbox field on a form in which I enter the number of times to
execute a particular loop in my program. If I enter 2000, I would like for
the field to change, maybe every 100 executions, to show how many remaining
executions there are. I am changing the value (textbox.value = xx) after
each 100 executions, but the field on the form does not refresh until all
2000 loops have been executed. Is there some way to accomplish this?
 
This is a userform?

Try changing your value:

me.textbox.value = clng(me.textbox.value) - 100
me.repaint
 
'RePaint' is what I needed - thank you!


Dave Peterson said:
This is a userform?

Try changing your value:

me.textbox.value = clng(me.textbox.value) - 100
me.repaint
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top