I downloaded the classroom management template, and have been working on
customizing it. When I create a new class the students sub-form of the
classes form automatically fills with all of the students in the students
table. I want to make it so that I can pick some students from the students
table - how can I do that?
I don't have this template installed, but it sounds like you need to either
change the recordsource of this Subform or create a new table. This
relationship should have three tables: Classes (a list of all the classes);
Students ( a list of all students); and Enrollment, a list of which students
are enrolled in which classes. The Enrollment table should have fields for the
ClassID, the StudentID, and any information specific to this student's
enrollment in this particular class.
The Subform would be based on this Enrollment table; it sounds like it's
currently based on the Student table. On the Subform you could have a Combo
Box based on the student table, bound to the StudentID field in Enrollment.
If you could post the location from which you downloaded this template I'll
check it out - if it's as I fear, I'll have some sharp comments for Microsoft
or whoever created it; this type of many to many relationship is VERY basic
and should certainly be done correctly in any template!!
John W. Vinson [MVP]