Hi,
I have a database with school information. On the reporting form, I have a dropdown combo that contains list of teachers by schools. The problem I am having is, when I select the dropdown, instead of listing individual school, it list a school five times, for an example, meaning there are five teachers at that school.
Is is possible to have my dropdown list just the school even if it has more than one teacher?
This is what I have so far: ADezii helped me with this some time ago.
I have a database with school information. On the reporting form, I have a dropdown combo that contains list of teachers by schools. The problem I am having is, when I select the dropdown, instead of listing individual school, it list a school five times, for an example, meaning there are five teachers at that school.
Is is possible to have my dropdown list just the school even if it has more than one teacher?
This is what I have so far: ADezii helped me with this some time ago.
Code:
Private Sub Command84_Click() If Me![cboSchoolCode] = "--select--" Then Exit Sub DoCmd.OpenReport "rptInServiceIndividualSchoolAndTeachersInformation", acViewReport, , "lngSchoolCode = '" & Me.cboSchoolCode & "'" cboSchoolCode = "--select--" End Sub
Comment