R
Ray
I have a form with a related subform. After the form and subform have opened,
i use a command button on the form to modify the data in the subform using
append and update queries in the "on click" event. After the queries have
finished modifying the data in the subform, I requery the form and subform
while still in the "on click" event to refresh the subform data. The subform
has a textbox in its form footer that sums a column in the subform. My
problem is that the subform footer will not finish refreshing its values
until AFTER the "on click" event has finished. I need it to finish refreshing
the subform footer BEFORE the end of the "on click" event so I can use the
values in the footer to continue with more steps in the "on click" event. I
have tried requery, refresh and repaint as well as doevent to try to make the
subform footer finish updating so I can use the footer values later in the
subroutine. I have also tried to requery the subform itself and that doesnt
help either.
Any ideas as to how I can make the subform footer finish calculating its
text box values before the subroutine finishes running?
i use a command button on the form to modify the data in the subform using
append and update queries in the "on click" event. After the queries have
finished modifying the data in the subform, I requery the form and subform
while still in the "on click" event to refresh the subform data. The subform
has a textbox in its form footer that sums a column in the subform. My
problem is that the subform footer will not finish refreshing its values
until AFTER the "on click" event has finished. I need it to finish refreshing
the subform footer BEFORE the end of the "on click" event so I can use the
values in the footer to continue with more steps in the "on click" event. I
have tried requery, refresh and repaint as well as doevent to try to make the
subform footer finish updating so I can use the footer values later in the
subroutine. I have also tried to requery the subform itself and that doesnt
help either.
Any ideas as to how I can make the subform footer finish calculating its
text box values before the subroutine finishes running?