T
TeeSee
Please help!
I have a Form/Subform[frmMainList] and [SfrmItemsListSUB]. The Form
has an unbound text bo used for lookup. The record source is as
follows.
SELECT DISTINCT tblMaterialMaster.LocalGroup FROM tblMaterialMaster;
Two of the fields on the subform are [LocalGroup] and LocalSubGroup]
The following lines open form [frmCustomerDiscountsPU]
Private Sub Form_Open(Cancel As Integer)
DoCmd.OpenForm "frmCustomerDiscountsPU", acNormal, , , acFormEdit
Forms![frmCustomerDiscountsPU]!MaterialSubGroup.Value = Forms!
[frmMainList]![SfrmItemsListSUB].Form![LocalSubGroup]
End Sub
If I understand this correctly the record source line does nothing
other than populate the unbound text box and the child parent link
brings the matching data into the subform. Why then can I not get the
[frmCustomerDiscountsPU] to show only the data that pertains to the
subgroup fields?
Please critique and suggest. Hope I have supplied enough info! Thanks.
I have a Form/Subform[frmMainList] and [SfrmItemsListSUB]. The Form
has an unbound text bo used for lookup. The record source is as
follows.
SELECT DISTINCT tblMaterialMaster.LocalGroup FROM tblMaterialMaster;
Two of the fields on the subform are [LocalGroup] and LocalSubGroup]
The following lines open form [frmCustomerDiscountsPU]
Private Sub Form_Open(Cancel As Integer)
DoCmd.OpenForm "frmCustomerDiscountsPU", acNormal, , , acFormEdit
Forms![frmCustomerDiscountsPU]!MaterialSubGroup.Value = Forms!
[frmMainList]![SfrmItemsListSUB].Form![LocalSubGroup]
End Sub
If I understand this correctly the record source line does nothing
other than populate the unbound text box and the child parent link
brings the matching data into the subform. Why then can I not get the
[frmCustomerDiscountsPU] to show only the data that pertains to the
subgroup fields?
Please critique and suggest. Hope I have supplied enough info! Thanks.