short_sweet said:
Thank you, I did the continuous-view form.
That allowed for a new entry, but it did not
keep all the "course info" on the next form.
How do I get it to keep the course information
for each new student?
"All the course info" is a bit troubling to me, indicating that you may be
storing redundant data.
I suggested the following tables:
(1) Course Table -- with information about the Courses themselves
(2) Class Table -- instances of a Course, with a Foreign Key to
Course Table, and Day/Date of Class to identify the instance
(3) Student Table -- information about the Students themselves
(4) Student-Class Table -- showing what students are enrolled in
what class, possibly needing nothing more than Foreign Keys
to the Class Table and the Student Table.
The main Form I mentioned should show, in single-form view, records from a
Query with data sources of the Class Table (about the instance of the
Course) and Course Table (descriptive information about the Course, not
editable in this form). It should contain a Subform Control containing a
continuous-forms view of records from a Query with data sources of the
Student-Class Table (to identify the students registered) and Student Table
(descriptive information about the Student, if needed, but not editable in
this form).
It's possible that if you allow selection of the Student in a Combo Box with
a Row Source including key, name, and perhaps other information from the
Student Table, you may not need to include the Student Table in the Query
for the Form embedded in the Subform Control, and just store the Student
Table key as the Foreign Key to the Student Table.
I'd suggest some code behind the scenes, to verify that you haven't already
enrolled this student in this class, or course, or in another course at the
same day/time period, too.
Larry Linson
Microsoft Access MVP
The Course information should be accessed via the Foreign key in the Class
(instance of a course) Table, which should be the table displayed in the
main form, with the student-enrolled information in the continuous forms
view Form that is displayed in the Subform Control.