johnnybwis
Technical User
I have the subform cmbo which is limited by the selection in the mainform but I need cmbo in the subform to be limited by that subform selection. Do I need to name the form and then the subform also?
This works for my first selection.
Row Source
SELECT DISTINCTROW Products.ProductName, Products.ProductID FROM Products WHERE (((Products.CustomerID)=[Forms]![Purchase Orders]![SupplierID])) ORDER BY Products.ProductName;
This does not work for my next selection.
Row Source
SELECT DISTINCTROW Products.NumberPerUnit FROM Products WHERE (((Products.ProductName)=[Forms]![Purchase Orders Subform]![ProductName])) ORDER BY Products.NumberPerUnit;
Actually I don't need a combo box as their would only be one choice and I will need to do one more tier
This works for my first selection.
Row Source
SELECT DISTINCTROW Products.ProductName, Products.ProductID FROM Products WHERE (((Products.CustomerID)=[Forms]![Purchase Orders]![SupplierID])) ORDER BY Products.ProductName;
This does not work for my next selection.
Row Source
SELECT DISTINCTROW Products.NumberPerUnit FROM Products WHERE (((Products.ProductName)=[Forms]![Purchase Orders Subform]![ProductName])) ORDER BY Products.NumberPerUnit;
Actually I don't need a combo box as their would only be one choice and I will need to do one more tier