A
angie
i have pasted the following code in the afterUpdate event of combo1
(Manufacturer) in order to filter the records of combo2 (Part Number) and i
get no data. below is the code:
Private Sub Manufacturer_AfterUpdate()
' Update the row source of the Part_Number combo box
' when the user makes a selection in the Manufacturer
' combo box.
Me.Part_Number.RowSource = "SELECT Part_Number FROM" & _
" Suppliers_tbl WHERE Manufacturer = " &
Me.Manufacturer & _
" ORDER BY Part_Number"
Me.Part_Number = Me.Part_Number.ItemData(0)
End Sub
(Manufacturer) in order to filter the records of combo2 (Part Number) and i
get no data. below is the code:
Private Sub Manufacturer_AfterUpdate()
' Update the row source of the Part_Number combo box
' when the user makes a selection in the Manufacturer
' combo box.
Me.Part_Number.RowSource = "SELECT Part_Number FROM" & _
" Suppliers_tbl WHERE Manufacturer = " &
Me.Manufacturer & _
" ORDER BY Part_Number"
Me.Part_Number = Me.Part_Number.ItemData(0)
End Sub