N
Naz
Hi all
I have a form that has 1 bound and 1 unbound combo box on it, and one subform.
I want the subform to display according to what is selected in the either
combo box 1 or 2. The main form and subform do have corresponding fields of
same data type.
I've tried to add the following code to the After Update event of the combo
boxes.
Private Sub choice1_AfterUpdate()
Me!subform_data1.LinkMasterFields = choice1 'the name of the combo box 1
or 2
Me!subform_data2.LinkChildFields = type2 'name of the field on the
subform
End Sub
But it doesn't work....can anyone help me out.
All help is appreciated
I have a form that has 1 bound and 1 unbound combo box on it, and one subform.
I want the subform to display according to what is selected in the either
combo box 1 or 2. The main form and subform do have corresponding fields of
same data type.
I've tried to add the following code to the After Update event of the combo
boxes.
Private Sub choice1_AfterUpdate()
Me!subform_data1.LinkMasterFields = choice1 'the name of the combo box 1
or 2
Me!subform_data2.LinkChildFields = type2 'name of the field on the
subform
End Sub
But it doesn't work....can anyone help me out.
All help is appreciated