Y
Yblitzka
Greetings to all!
I have a database with a large form in it, and a number of pages inside a
tab control. Because this form is rather hefty, the original developer
decided to hide it when we click the close button, so it loads faster the
next time and it remembers which page we're on. We don't plan to change that.
The problem I'm having is that I have added a subform to one of the pages,
and for some records on the main form, the subform does not have any records
yet (new table). My subform has a function (called subformUpdate) that will
add the appropriate records if necessary, set a couple of values if
necessary, and requery.
I call this function in the tabcontrol change event and in the main form
open event, and it in the subform's open event.
The only scenario not covered now is when someone re-opens the form and that
page is already active. The form becomes visible, with the new data, and I'm
already on my page, so the form open and tabchange events don't fire. What
event can I use in the main form, tab control, page, or subform to make sure
that in this scenario, the subform's "subformupdate" is called?
I'd like to avoid "on current" events if possible - they run too often and I
don't want to bog this thing down.
Any ideas, anyone?
Thank you for your time!
I have a database with a large form in it, and a number of pages inside a
tab control. Because this form is rather hefty, the original developer
decided to hide it when we click the close button, so it loads faster the
next time and it remembers which page we're on. We don't plan to change that.
The problem I'm having is that I have added a subform to one of the pages,
and for some records on the main form, the subform does not have any records
yet (new table). My subform has a function (called subformUpdate) that will
add the appropriate records if necessary, set a couple of values if
necessary, and requery.
I call this function in the tabcontrol change event and in the main form
open event, and it in the subform's open event.
The only scenario not covered now is when someone re-opens the form and that
page is already active. The form becomes visible, with the new data, and I'm
already on my page, so the form open and tabchange events don't fire. What
event can I use in the main form, tab control, page, or subform to make sure
that in this scenario, the subform's "subformupdate" is called?
I'd like to avoid "on current" events if possible - they run too often and I
don't want to bog this thing down.
Any ideas, anyone?
Thank you for your time!