B
Ben Fidge
This will probably be really simple, but I'm trying to
knock up a simple knowledge base application using Access
2000, taking advantage of the in-built Forms and
Reporting.
I have two tables, Categories and Sub-Categories, that
have a one-to-many relationship. For each Category there
could be many Sub-Categories.
I have a Form for adding new Articles to the database and
want to provide a Categories combo, which filters a Sub-
Categories combo according to the Category selected.
I added the follwoing code the the main Category's
OnChange event handler, but it doesn't work:
"cboSubCategory.RowSource = "select UKeyMainCategory,
Description from SubCategories where UKeyMainCategory = "
+ cboMainCategory.ItemData(1)"
Can anyone point out where I'm going werong, or provide a
better method?
Thanks
Ben
knock up a simple knowledge base application using Access
2000, taking advantage of the in-built Forms and
Reporting.
I have two tables, Categories and Sub-Categories, that
have a one-to-many relationship. For each Category there
could be many Sub-Categories.
I have a Form for adding new Articles to the database and
want to provide a Categories combo, which filters a Sub-
Categories combo according to the Category selected.
I added the follwoing code the the main Category's
OnChange event handler, but it doesn't work:
"cboSubCategory.RowSource = "select UKeyMainCategory,
Description from SubCategories where UKeyMainCategory = "
+ cboMainCategory.ItemData(1)"
Can anyone point out where I'm going werong, or provide a
better method?
Thanks
Ben