bob fitz
AWF VIP
- Local time
- Today, 12:57
- Joined
- May 23, 2011
- Messages
- 4,806
Combo Products needs to be bound to the ProductID field.Ok...so I'm still getting a couple problems.
I've tried both @MajP and @bob fitz methods and getting the same error message when I try to tab to a new record in the subform. A message box pops up which states You cannot add or change a record because a related record is required in table 'tblproducts'. Also, I noticed when i did select a product the same product shows in the line below.
I then tried @June7 method and I am getting the error message that I tried entering text in a numeric field.
The Row Source property needs to be changed to something like:
Code:
SELECT tblProducts.ProductID, tblProducts.ProductName FROM tblCategories INNER JOIN tblProducts ON tblCategories.CategoryID = tblProducts.CategoryID WHERE (((tblCategories.CategoryID)=[Forms]![frmMaterialRequisition]![frmMaterialRequisitionDtls].[Form]![cboCategories]));