G
Guest
I have a form with 2 subforms. On the main form the user can select from a
series of combo/drop down boxes to filter the information displayed in the
subform. When the user selects an item from the combo/drop down box, the
afterupdate event creates the SQL string to filter.
Me.subfrmA.Form.FilterOn = True
Me.SubfrmA.Filter = SqlStr
Me.subfrmB.Form.FilterOn = True
Me.SubfrmB.Filter = SqlStr
This works great. The problem is when the user deselects all the criteria,
hence there is no filter. The following is the code that gets executed:
Me.subfrmA.Form.FilterOn = False
Me.SubfrmA.Filter = ""
Me.subfrmB.Form.FilterOn = False
Me.SubfrmB.Filter = ""
The subfrmA requeries in the Main form correctly, subfrmB does not refresh
in the Main Form. SubfrmB does not change at all. I have tried the adding
one or more of the following lines:
me.subfrmB.requery
me.subfrmB.form.requery
me.requery
me.subfrmB.form.recordset.requery
Nothing is working. This is frustrating because of the fact that one
Subform refreshes and the second does not. As far as know, I am using the
exact same method for both.
Does anybody have any ideas. Thank you for your help.
--
Roger Maniccia
emdeon
26 Century Blvd
Nashville, Tenn
615-886-9031
series of combo/drop down boxes to filter the information displayed in the
subform. When the user selects an item from the combo/drop down box, the
afterupdate event creates the SQL string to filter.
Me.subfrmA.Form.FilterOn = True
Me.SubfrmA.Filter = SqlStr
Me.subfrmB.Form.FilterOn = True
Me.SubfrmB.Filter = SqlStr
This works great. The problem is when the user deselects all the criteria,
hence there is no filter. The following is the code that gets executed:
Me.subfrmA.Form.FilterOn = False
Me.SubfrmA.Filter = ""
Me.subfrmB.Form.FilterOn = False
Me.SubfrmB.Filter = ""
The subfrmA requeries in the Main form correctly, subfrmB does not refresh
in the Main Form. SubfrmB does not change at all. I have tried the adding
one or more of the following lines:
me.subfrmB.requery
me.subfrmB.form.requery
me.requery
me.subfrmB.form.recordset.requery
Nothing is working. This is frustrating because of the fact that one
Subform refreshes and the second does not. As far as know, I am using the
exact same method for both.
Does anybody have any ideas. Thank you for your help.
--
Roger Maniccia
emdeon
26 Century Blvd
Nashville, Tenn
615-886-9031