Y
Yossi
I have a form Teachers and a subform SubTeachers. I need to display data in
the sub form according to my selection in the combobox on the TEachers Form.
I have coded the following on the combo_change event
but it doesn't refresh the data in the sub form. What am I doing wrong?
<---Code starts Here ---->
Forms!Teachers!SubTeachers.Form.RecordSource = "SELECT Teachers.TeacherID,
Teachers.SchoolID, Teachers.Initials, Teachers.Surname, Teachers.Learners
FROM Teachers where SchoolID = " & ComboSchoolID.Value
Form_SubTeachers.Form.Refresh
<---Code Ends Here ---->
Thanks
the sub form according to my selection in the combobox on the TEachers Form.
I have coded the following on the combo_change event
but it doesn't refresh the data in the sub form. What am I doing wrong?
<---Code starts Here ---->
Forms!Teachers!SubTeachers.Form.RecordSource = "SELECT Teachers.TeacherID,
Teachers.SchoolID, Teachers.Initials, Teachers.Surname, Teachers.Learners
FROM Teachers where SchoolID = " & ComboSchoolID.Value
Form_SubTeachers.Form.Refresh
<---Code Ends Here ---->
Thanks