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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need code to wait until form refreshes

Status
Not open for further replies.

spliterman

Programmer
Mar 22, 2005
45
0
0
US
I have a text box on a continuous form which is a calculation based on a field. I have an SQL statement that updates a record in a table with the data in this calculation field. In order to get the correct calculation, the form needs refreshed so I have the me.refresh before the SQL update statement. The problem is that the SQL Update statement begins before the form completely refreshes so I need a way for the code to wait until the form refreshes to continue.
 
You may consider the DoEvents function.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top