Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

updating a form

Status
Not open for further replies.

FacilitiesCAD

Technical User
Aug 4, 2003
39
US
I currently have a button on a form that runs some vb code that takes about 45 sec to run. Because thats a relatively long time to think your computer has frozen up, I want to change text in a text box me.text10 to different values in the code. IE me.text10 = "Starting", me.text10 = "step1 complete". These values do change but they don't show up on the form until everything is done. How do you force an update or refresh to the form or just the text box. I first used msgbox but I don't want people to have to click OK each step of the way.

Tim
 
If your code is running a query then the form will not update until after the query is done. If it is running several queries, then between each query change the text on your form then use repaint to refresh your form.

HTH,
Eric
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top