Pauline123
Registered User.
- Local time
- Today, 08:55
- Joined
- Apr 1, 2013
- Messages
- 69
Hi, hope you can help. I have a suppliers table and a products table. Two forms, Stock form with combobox to list Suppliers and a sub form with combobox that lists Products.
I want to select a supplier from the Stock form and then the combobox in the subform to only list products directly sold by the Supplier.
Have dabbled in SQL as follows:
SELECT Products.ProductID, Products.ProductName
FROM Suppliers INNER JOIN Products ON Suppliers.SupplierID = Products.SupplierID
WHERE ((Stocksubform.SupplierID=Stock.SupplierID))
ORDER BY Products.ProductName;
But this has not produced anything close to what I need.
Can someone help.
Many thanks Pauline
I want to select a supplier from the Stock form and then the combobox in the subform to only list products directly sold by the Supplier.
Have dabbled in SQL as follows:
SELECT Products.ProductID, Products.ProductName
FROM Suppliers INNER JOIN Products ON Suppliers.SupplierID = Products.SupplierID
WHERE ((Stocksubform.SupplierID=Stock.SupplierID))
ORDER BY Products.ProductName;
But this has not produced anything close to what I need.
Can someone help.
Many thanks Pauline