G
Guest
Hi. I posted this yesterday but have had no replies. Sorry to be impatient.
What I want to do is limit the records shown in a combo dropdown, based on
field values shown in a main and subform. I would have thought this had been
done before. Can anyone help please? If its impossible, please let me know.
Thanks, JohnB
Original post:
Hi. Im using Access 2002 on XP
I have a main form with a subform and a combo on the subform. The main
form, subform and combo are fed from a queries. The main form has a text
field txtSubject bound to field Subject in tblStudents and the subform has a
field txtSchoolID, bound to autonumber field SchoolID in tblSchools. The
combos query includes both of these fields.
Is it possible to include something in the combos query criteria, for the
Subject and SchoolID fields, such that the combo list shows only those
records that have the same Subject value as that being shown on the main form
record and the same SchoolID as that shown in the subform record?
So, if the main form shows Maths in the Subject field and the subform shows
334 as the SchoolID, then the combo dropdown list shows only those records
that have Maths as the Subject and 334 as the SchoolID.
Thanks for any help, JohnB
What I want to do is limit the records shown in a combo dropdown, based on
field values shown in a main and subform. I would have thought this had been
done before. Can anyone help please? If its impossible, please let me know.
Thanks, JohnB
Original post:
Hi. Im using Access 2002 on XP
I have a main form with a subform and a combo on the subform. The main
form, subform and combo are fed from a queries. The main form has a text
field txtSubject bound to field Subject in tblStudents and the subform has a
field txtSchoolID, bound to autonumber field SchoolID in tblSchools. The
combos query includes both of these fields.
Is it possible to include something in the combos query criteria, for the
Subject and SchoolID fields, such that the combo list shows only those
records that have the same Subject value as that being shown on the main form
record and the same SchoolID as that shown in the subform record?
So, if the main form shows Maths in the Subject field and the subform shows
334 as the SchoolID, then the combo dropdown list shows only those records
that have Maths as the Subject and 334 as the SchoolID.
Thanks for any help, JohnB