Based on the above video I changed my row source with the query builder, setting the "Totals" value of the matching field (tblCat.catID) to where and entering the name of the combo box under the "Criteria" value. The SQL statement now reads:
Code:
SELECT tblInv.itemID, tblInv.itemName FROM tblCat INNER JOIN tblInv ON tblCat.catID = tblInv.itemCat WHERE (((tblCat.catName)=[forms]![sbfrmLineItem].[cmbLineItemCat])) GROUP BY tblInv.itemID, tblInv.itemName;
In this case tblInv is a table containing data on all inventory items.
tblCat contains entries for each category.
tblCat.catID is a foreign key for tblInv.itemCat in a 1 to many relationship (one category applied to many items).
tblInv.itemID is the primary key for tblInv and is the base of the row source for the "Items" combo box (cmbLineItemID).
cmbLineItemCat is the combo box for the categories. It's row source is tblCat and it's "after update" event is set to:
Code:
Private Sub cmbLineItemCat_AfterUpdate()
Me.cmbLineItemID.Requery
End Sub
This all results in an empty combo box with no items. If I remove the "Where" value and the criteria, I see all options as expected. Clearly something in my methods has gone horribly wrong.
Jim