I have a set of cascading combo boxes. The first (IDH) is based on a query. Then, I have the following code to change the second combo box.
This works as long as I stay on the same record, but when I change records the selection in the second combo box doesn't update.
Code:
Private Sub IDH_AfterUpdate()
Dim strSource As String
strSource = "SELECT Supplier " & _
"FROM tblMaterialSuppliers " & _
"WHERE IDH = '" & Me.IDH & "' ORDER BY Supplier"
Me.Supplier.RowSource = strSource
Me.Supplier = vbNullString
End Sub
Comment