B
Brian Beck
I've got a combo box in a form that queries tblDistrict to get a list of all
the districts and then displays them when the user clicks on that combo box
in the form. Below that I have another combo box that should list all the
campuses that are in whichever district was selected by the user in the
first combo box.
The query run from the District combo box has 2 fields in it, the district
ID (PK) and the district name.
The query run from the Campus combo box has 3 fields in it, the campus ID
(PK), the campus name and the district ID. I thought I could simply have
the query look to see what district ID was selected in the first combo box
and then only list those campuses that matched that campus ID...but I'm
getting hung up in the execution here.
1. What criteria do I need to use so that the campus query will successfully
pull the correct campuses? I'm thinking something like
forms!IncidentReport.DistrictComboBox.Column(0), since district ID is the
first column in the DistrictComboBox, but that doesn't seem to work.
2. Is there code I need to run for either combo box based on things like
AfterUpdate and OnEnter?
I know this shouldn't be difficult, but it's really giving me fits right
now.
-Brian
the districts and then displays them when the user clicks on that combo box
in the form. Below that I have another combo box that should list all the
campuses that are in whichever district was selected by the user in the
first combo box.
The query run from the District combo box has 2 fields in it, the district
ID (PK) and the district name.
The query run from the Campus combo box has 3 fields in it, the campus ID
(PK), the campus name and the district ID. I thought I could simply have
the query look to see what district ID was selected in the first combo box
and then only list those campuses that matched that campus ID...but I'm
getting hung up in the execution here.
1. What criteria do I need to use so that the campus query will successfully
pull the correct campuses? I'm thinking something like
forms!IncidentReport.DistrictComboBox.Column(0), since district ID is the
first column in the DistrictComboBox, but that doesn't seem to work.
2. Is there code I need to run for either combo box based on things like
AfterUpdate and OnEnter?
I know this shouldn't be difficult, but it's really giving me fits right
now.
-Brian