spikepl
Eledittingent Beliped
- Local time
- Tomorrow, 00:30
- Joined
- Nov 3, 2010
- Messages
- 6,142
As to the prerequisites: is the entire thing a 2-semester thing? Or longer? For in the latter instance, even the first semester choices are not unlimited, but constrained by the prerequisites? Also, can a course have more than one prerequisite? IF one only, then the obvious place to plug the requirement in would be the course table. If unlimited number, then I'd probably set up a separate table :
Prerequisites
-----------
CourseID (PK)
PrerequisiteID (PK)
the .Selected property is read/write, so you can set it to True for each selected Item, and that will then display your selection.
Is each course available in both semesters?
The listbox with choices for semester 1 should display the courses available in that semester, where the reqirements for prerequisites have been fulfilled for that particular student.
For semester 2, the same, minus the choices made for semester 1.
You could requery listbox 2 each time a choice is made in listbox 1.
The query that is the record source for listbox 2, you would have to construct in the fly, and you could have an additional criterion :
SELECT ..... WHERE CourseID NOT IN (list of course IDs selected in Listbox 1, separated by "," and in parantheses) eg. WHERE CourseID NOT IN (1110, 1111) etc.
to avoid a mutiple display of a given course.
Now the additional challenge is to find the ones that are selected in Listbox 1 and are a prerequisite for the ones to be shown in Listbox 2. "We leave this exercise to the reader"
Prerequisites
-----------
CourseID (PK)
PrerequisiteID (PK)
the .Selected property is read/write, so you can set it to True for each selected Item, and that will then display your selection.
Is each course available in both semesters?
The listbox with choices for semester 1 should display the courses available in that semester, where the reqirements for prerequisites have been fulfilled for that particular student.
For semester 2, the same, minus the choices made for semester 1.
You could requery listbox 2 each time a choice is made in listbox 1.
The query that is the record source for listbox 2, you would have to construct in the fly, and you could have an additional criterion :
SELECT ..... WHERE CourseID NOT IN (list of course IDs selected in Listbox 1, separated by "," and in parantheses) eg. WHERE CourseID NOT IN (1110, 1111) etc.
to avoid a mutiple display of a given course.
Now the additional challenge is to find the ones that are selected in Listbox 1 and are a prerequisite for the ones to be shown in Listbox 2. "We leave this exercise to the reader"
