G
Guest
I have occasional, but disastrous problems with subforms no longer tracking
their parent forms. If you look at the master/child relationship in design
view or through the debugger, it looks fine, but continues to misbehave. I
actually had to edit the already correct values to repair the form.
I inquired about the problem on this forum and drew the response "Yeah, that
sometimes happens". In response, I put defensive code behind the forms to
re-specify that relationship on any form change, as in the following example.
Case acSummaryTab
subSummaryTab.SourceObject = "subfrmSummaryTab"
subSummaryTab.LinkMasterFields = "PropertyID"
subSummaryTab.LinkChildFields = "PropertyID"
The problem? Each of these modifications to the form triggers execution of
the form's queries, making a slow application even slower.
There must be some way to tell Access to hold off until I am finished
meddling with the form, then do the queries just once, but I am drawing a
blank.
Suggestions?
their parent forms. If you look at the master/child relationship in design
view or through the debugger, it looks fine, but continues to misbehave. I
actually had to edit the already correct values to repair the form.
I inquired about the problem on this forum and drew the response "Yeah, that
sometimes happens". In response, I put defensive code behind the forms to
re-specify that relationship on any form change, as in the following example.
Case acSummaryTab
subSummaryTab.SourceObject = "subfrmSummaryTab"
subSummaryTab.LinkMasterFields = "PropertyID"
subSummaryTab.LinkChildFields = "PropertyID"
The problem? Each of these modifications to the form triggers execution of
the form's queries, making a slow application even slower.
There must be some way to tell Access to hold off until I am finished
meddling with the form, then do the queries just once, but I am drawing a
blank.
Suggestions?