A
AlanW
I have referred to the website http://www.mvps.org/access/forms/frm0028.htm
in order to limit the content of Combo box “Product†after selecting the
content of Combo box “Supplierâ€. Both the field “supplier†and “ productâ€
are included in a table named “Supplierâ€
But it does not work. Could someone please help.
The code is listed below:-
Private Sub Supplier_AfterUpdate()
Dim strSQL As String
strSQL =â€Selectâ€& Me!Supplier
strSQL = strSQL & “Supplier!Supplierâ€
Me!Product.RowSourceType =†Table/Queryâ€
Me!Product.RowSource = strSQL
End Sub
in order to limit the content of Combo box “Product†after selecting the
content of Combo box “Supplierâ€. Both the field “supplier†and “ productâ€
are included in a table named “Supplierâ€
But it does not work. Could someone please help.
The code is listed below:-
Private Sub Supplier_AfterUpdate()
Dim strSQL As String
strSQL =â€Selectâ€& Me!Supplier
strSQL = strSQL & “Supplier!Supplierâ€
Me!Product.RowSourceType =†Table/Queryâ€
Me!Product.RowSource = strSQL
End Sub