T
T Ray Humphrey
I have a subform on an Access XP form that is loaded dynamically based on a
selection in a TreeView. One level of node in the TreeView loads an Account
into the subform, the other loads a Contract (these are different forms
showing data from different tables).
I am currently setting the RecordSource property when I need to switch
levels. I then typically set the Filter property of the form in the subform
so that I can hide unwanted record in the underlying table.
My problem is that I am getting two flurries of events, the first when I set
the RecordSource, and the next when I set the Filter. As these forms
themselves have a few levels of subforms, there is way too much going on to
be firing these events twice.
As I was searching for answers to this question in this forum, it occurred
to me that I might better use something like "SELECT * FROM Contracts WHERE
...." for my RecordSource and forgo setting the Filter. Is this a recommended
practice? It seems as if it would prevent the second set of events firing.
Are there any disadvantages to this? Is there a better way?
Thanks in advance,
ray humphrey
selection in a TreeView. One level of node in the TreeView loads an Account
into the subform, the other loads a Contract (these are different forms
showing data from different tables).
I am currently setting the RecordSource property when I need to switch
levels. I then typically set the Filter property of the form in the subform
so that I can hide unwanted record in the underlying table.
My problem is that I am getting two flurries of events, the first when I set
the RecordSource, and the next when I set the Filter. As these forms
themselves have a few levels of subforms, there is way too much going on to
be firing these events twice.
As I was searching for answers to this question in this forum, it occurred
to me that I might better use something like "SELECT * FROM Contracts WHERE
...." for my RecordSource and forgo setting the Filter. Is this a recommended
practice? It seems as if it would prevent the second set of events firing.
Are there any disadvantages to this? Is there a better way?
Thanks in advance,
ray humphrey