You can try one of two things:
1: PUT DOEVENTS() just between the refresh and the DO command
or
2: Store the VALUE of the textbox to a variable before the DO command (forcing VFP to get the textbox's latest value.
By the way, test this just in case the value is in fact not getting stored into the textbox's VALUE
HTH
>Scott,
>
>ThisForm.Text1.Refresh does not work either. There has to be some way to populate the textbox before the program runs.