Background:
I have a web database in Access 2010 that is based off of the desktop product inventory database template that you can download from within Access.
I have one form to create a purchase order that pulls a list of suppliers from the 'Suppliers' table, product information from the 'Products' table and manufacturer information from the 'Manufacturers' table. What I am trying to accomplish is when adding a line item (product to purchase), you choose the supplier at the top of the main form which limits the manufacturers in the subform that the supplier has which then limits the available part numbers in the last box. I have attached a screenshot to make this more clear.
Problem:
By default in the template, you can't select a Manufacturer or anything in the subform until you choose a supplier. The fields are locked through an AfterUpdate expression in the suppliers combo box. Once I choose the supplier, the subform unlocks. I can choose any manufacturer since right now they are all from the same supplier. The problem is that the products combo box yields zero results regardless of manufacturer selection. Also, the strange thing is that if I open the subform standalone, the limiting process works just fine.
How can I make it so that the manufacturer combo box is limited by the supplier combo box, and the products combo box is limited by the manufacturer combo box?
Please let me know if I need to explain something else or if you need more information. Thanks in advance for any help!
Combo Box Details:
Supplier Combo Box: (Main Form)
Control source - 'SupplierID'
Name - 'cboSupplierID'
Row Source - 'SELECT Suppliers.ID, Suppliers.Company FROM Suppliers ORDER BY Suppliers.Company;'
After Update - Long, but can provide if needed
Manufacturer Combo Box: (Sub Form)
Control source - 'ManufacturerName'
Name - 'cboMFGID'
Row Source - 'SELECT Manufacturers.ID, Manufacturers.Company FROM Manufacturers ORDER BY Manufacturers.Company;'
After Update - Requery cboProductID
Product Combo Box: (Sub Form)
Control source - 'ProductID'
Name - 'cboProductID'
Row Source: 'SELECT Products.ID, Products.ProductName FROM Products WHERE [SupplierID]=[Forms]![PurchaseOrderDetail]![cboSupplierID] AND (((Products.ManufacturerName)=[Forms]![PurchaseOrderLineItems]![cboMFGID]))'
After Update - Long, but can provide if needed