C
CJ
Hi groupies
I just do not know what the deal is here. I have tried everything I could
find regarding cascading combo boxes and still mine are not working
properly.
My combos are on a continuous subform.
The first combo selects a category of products. The second combo should find
the correct products based on the category shown in the first. My problem is
that when I select a different category in the next record, the product in
the previous record disappears.
Here is the sql and code for the first combo:
SELECT tblExpCategories.lngCatID, tblExpCategories.strExpCategory
FROM tblExpCategories
ORDER BY tblExpCategories.strExpCategory;
Bound column is 1
Private Sub lngCategoryID_AfterUpdate()
strExpense = Null
strExpense.Requery
End Sub
The second combo sql is:
SELECT tblPurchaseExpenses.lngPurchaseExpID, tblPurchaseExpenses.strExpense,
tblPurchaseExpenses.lngCatID
FROM tblPurchaseExpenses
WHERE
(((tblPurchaseExpenses.lngCatID)=[Forms]![frmAppointmentPurchases]![lngCategoryID]))
ORDER BY tblPurchaseExpenses.strExpense;
Bound column is 1
I have tried everything that I can think of.....why is this such a
chore?!?!?
I just do not know what the deal is here. I have tried everything I could
find regarding cascading combo boxes and still mine are not working
properly.
My combos are on a continuous subform.
The first combo selects a category of products. The second combo should find
the correct products based on the category shown in the first. My problem is
that when I select a different category in the next record, the product in
the previous record disappears.
Here is the sql and code for the first combo:
SELECT tblExpCategories.lngCatID, tblExpCategories.strExpCategory
FROM tblExpCategories
ORDER BY tblExpCategories.strExpCategory;
Bound column is 1
Private Sub lngCategoryID_AfterUpdate()
strExpense = Null
strExpense.Requery
End Sub
The second combo sql is:
SELECT tblPurchaseExpenses.lngPurchaseExpID, tblPurchaseExpenses.strExpense,
tblPurchaseExpenses.lngCatID
FROM tblPurchaseExpenses
WHERE
(((tblPurchaseExpenses.lngCatID)=[Forms]![frmAppointmentPurchases]![lngCategoryID]))
ORDER BY tblPurchaseExpenses.strExpense;
Bound column is 1
I have tried everything that I can think of.....why is this such a
chore?!?!?