G
Guest
I need to filter a subform using the parent form's combo box. The subform
has a cmb box, and in the 3rd column is the id I would like to filter with
the parent frms cmb. The parent cmb and the subform cmb.column(2) are both
from the same table. Is this possible to do, and how do you do it? I tried
the following but failed:
Me.sfrmPositionAssignment.Form.FilterOn = True
Me.sfrmPositionAssignment.Form.Filter = "ShiftID.column(0) =
PositionID.column(2)"
Me.sfrmPositionAssignment.Requery
Me.sfrmPositionAssignment.SetFocus
has a cmb box, and in the 3rd column is the id I would like to filter with
the parent frms cmb. The parent cmb and the subform cmb.column(2) are both
from the same table. Is this possible to do, and how do you do it? I tried
the following but failed:
Me.sfrmPositionAssignment.Form.FilterOn = True
Me.sfrmPositionAssignment.Form.Filter = "ShiftID.column(0) =
PositionID.column(2)"
Me.sfrmPositionAssignment.Requery
Me.sfrmPositionAssignment.SetFocus