Hello all,
On a form two of my fields are comboboxes, cboTerm and cboClass.
I use this form to register students in a class. The cboTerm is for the name of the semester and its row source is a table. The cboClass contains the name of the classes and its row source is a query that is based on multiple tables (tblClass, tblTerm, tblStudents).
the tblStudent has a field called EligibilityLevel, which is a number field.
In the query that serves as the row source of cboClass, I had a criteria in the TermID field from the tblClass. The criteria was this:
Like [txtTermID] & "*"
the after update event of the cboTerm requerried the cboClass, and the cboClass only displayed the classes that are being offered in the selected term by the above criteria. This worked perfectly fine and if I navigated between the records, the value of the cboClass displayed for each record.
I decided to add another criteria based on the students' eligibility so that the cboClass only displayed the classes that are offered in the selected term and also for which the students are eligible.
I added the criteria under the EligibilityLevel field of tblClass in the query as follows
>=[txtEligibilityLevel]
This works if I am entering a new record, but when I navigate back to the records, the cboClass is blank. And therefore it throws off all my other codes, because of the blank fields.
Can someone tell me what I am doing wrong?
Thank you in advance.