J
John Keith
My setup:
A form with buttons to run reports and other routines, containing a sub-form
that shows a detail row per site w/ a DLookup on a query that sums all of the
dollar fields to produce a Total Recipts by site for the currently selected
period (Month-Year which are unbound controls on the main form)
The Total Recipts calculation takes about 10 seconds to complete, during
which "Calculating..." shows on the status bar. If a button is clicked while
calculating, it causes my other form that needs to have the focus set on a
control (so that it will be shown on top of the main form) to loose focus and
thus get covered it up.
How can I determine when the sub-form is done calculating?
So that I can then set the necessary focus and bring it to the front, or
Enable the buttons (after the are disabled as the form 1st opens or when the
period changes - both of which trigger the calculation)
A form with buttons to run reports and other routines, containing a sub-form
that shows a detail row per site w/ a DLookup on a query that sums all of the
dollar fields to produce a Total Recipts by site for the currently selected
period (Month-Year which are unbound controls on the main form)
The Total Recipts calculation takes about 10 seconds to complete, during
which "Calculating..." shows on the status bar. If a button is clicked while
calculating, it causes my other form that needs to have the focus set on a
control (so that it will be shown on top of the main form) to loose focus and
thus get covered it up.
How can I determine when the sub-form is done calculating?
So that I can then set the necessary focus and bring it to the front, or
Enable the buttons (after the are disabled as the form 1st opens or when the
period changes - both of which trigger the calculation)