Hi
I have been trying tocorrect my coding with no avail. I have a combo box called 'Area' - Source: [Dept_code] which I want to use to filter in the combo box called 'Course' - Source: [Course Title], both are from the table [Annual Programme].
At the moment I get the error 'sub or function not defined' and it highlights 'Area' in the coding (I've bolded it and underlined it here).
[Private Sub Area_AfterUpdate()
Dim strSource As String
strSource = "SELECT Course_Title " & _
"FROM tblAnnual_Programme"
WHERE Dept_code = "" & Me.Area & "ORDER BY Course"
Me.Course.RowSource = strSource
Me.Course = vbNullString
End Sub]
I would be grateful if someone could tell me what I'm missing as I am at a loss at present.
Many thanks![]()