B
Bob Richardson
I'm trying to design a Student table that will use a lookup to a Class
table. Classes are provided ONLY for people in certain grades, e.g. Class
101 is only given to grade 9, class 221 is only given to grade 10, etc.
Class Table: Grade, ClassCode
9 101
9 103
9 110
10 101
10 201
10 221
etc.
Each Student can choose 2 classes, so I want a lookup table in two different
fields that will only show, in a drop down list, those classes that are
available to the grade that the student is in.
Student Table: StudentID, Grade, Class1, Class2
I tried the following, with no success:
This is the Row Source of the LookUp tab for Student.Class1
SELECT Class.ClassCode FROM Class WHERE Grade=Class.Grade ORDER BY
ClassCode;
table. Classes are provided ONLY for people in certain grades, e.g. Class
101 is only given to grade 9, class 221 is only given to grade 10, etc.
Class Table: Grade, ClassCode
9 101
9 103
9 110
10 101
10 201
10 221
etc.
Each Student can choose 2 classes, so I want a lookup table in two different
fields that will only show, in a drop down list, those classes that are
available to the grade that the student is in.
Student Table: StudentID, Grade, Class1, Class2
I tried the following, with no success:
This is the Row Source of the LookUp tab for Student.Class1
SELECT Class.ClassCode FROM Class WHERE Grade=Class.Grade ORDER BY
ClassCode;