B
BAM65Y
I'm using Access 2000 however I've had a similar problem
before using Acess 97.
I have an unbound form with 2 subforms. The first
subform has 2 linked fields to the main form. In
addition a combobox the main form is used to apply a
filter to the first subform. The oncurrent event in the
first subform sets a hidden field on the main form that
is used as the master link field for the second subform.
Another combobox on the main form is used to apply a
filter to the second subform.
When the form is opened and filters are applied to both
subforms (using the 2 combobox criteria fields on the
main form) everything works fine. If the second combobox
(which drives the filter for the second subform) is
cleared, the AfterUpdate event calls a subroutine to
update the filter for the second subform. The subroutine
will set the filter to "" and set the filteron = false
for the second subform using the following code: -
Me.frm_Test_Concerns_Subform.Form.Filter = ""
Me.frm_Test_Concerns_Subform.Form.FilterOn = false
Regardless of the order that I run these to commands (or
even if I only run one of them) not only does it set the
FilterOn property of the second subform (i.e
frm_Test_Concerns_Subform) to false, but it also
incorrectly sets the FilterOn property of the 1st subform
(called frm_Test_Stream_Phase_Factor_subform) to false
Has anyone encountered this problem before and is a
workaround or patch available?
before using Acess 97.
I have an unbound form with 2 subforms. The first
subform has 2 linked fields to the main form. In
addition a combobox the main form is used to apply a
filter to the first subform. The oncurrent event in the
first subform sets a hidden field on the main form that
is used as the master link field for the second subform.
Another combobox on the main form is used to apply a
filter to the second subform.
When the form is opened and filters are applied to both
subforms (using the 2 combobox criteria fields on the
main form) everything works fine. If the second combobox
(which drives the filter for the second subform) is
cleared, the AfterUpdate event calls a subroutine to
update the filter for the second subform. The subroutine
will set the filter to "" and set the filteron = false
for the second subform using the following code: -
Me.frm_Test_Concerns_Subform.Form.Filter = ""
Me.frm_Test_Concerns_Subform.Form.FilterOn = false
Regardless of the order that I run these to commands (or
even if I only run one of them) not only does it set the
FilterOn property of the second subform (i.e
frm_Test_Concerns_Subform) to false, but it also
incorrectly sets the FilterOn property of the 1st subform
(called frm_Test_Stream_Phase_Factor_subform) to false
Has anyone encountered this problem before and is a
workaround or patch available?