Hi,
I am working on creating a listbox dependant on combobox. I followed an example but I can't get it to work. My listbox is call "ListBuilding" and the combobox is ListCode
I am working on creating a listbox dependant on combobox. I followed an example but I can't get it to work. My listbox is call "ListBuilding" and the combobox is ListCode
Code:
Private Sub ListCode_AfterUpdate()
Dim strSource As String
strSource = "SELECT Building_no " & _
"FROM UNIQUE TABLE " & _
"WHERE Organization = '" & Me.ListCode & "' ORDER BY Building_no"
Me.ListBuilding.RowSource = strSource
Me.ListBuilding = vbNullString
End Sub