Linked Combo Boxes (1 Viewer)

D

D B Lawson

Guest
I have two combo boxes in my form. One linked to a table of subjects, the other linked to a table of subsets of each subject. The two tables have a one to many relationship (subjects to subsets)and are linked by the subject ID number. Once a subject has been selected from the first combo box on the form, I only want the subsets relevant to the selected subject to show in the second combo box. How can I do this?
 

Travis

Registered User.
Local time
Today, 00:19
Joined
Dec 17, 1999
Messages
1,332
on the afterupdate of the first field, change the rowsource of the second field like this.

Me.[SecondField].Rowsource="Select * from
where ID=" & me.[FirstField]

me.[secondfield].requery
 

Users who are viewing this thread

Top Bottom