Say for example I have the following table to hold category information:
Code:
CategoryNo Description
[Long Int, Key Field] [Text]
00 00 00 (Unknown/Undefined)
01 00 00 Pet Food
01 01 00 Dog Food
01 01 01 Dry Dog Food
01 01 02 Moist Dog Food
01 02 00 Fish Food
01 02 01 Fish Flakes, Goldfish
02 00 00 Animal
02 01 00 Dog
02 01 01 Beagle
02 01 02 Terrier
02 02 00 Cat
02 02 01 Calico
02 03 00 Fish
02 03 01 Goldfish
I already have a query that adds the metadata to break the long int down into 'Main,' 'Sub,' and 'Sub-Sub' fields (So that 'Terrier' has the metadata of Main=2, Sub=1, SubSub=2) and flags for 'IsMain', 'IsSub', and 'IsSubSub' set up.
What I would like to do is have a form where I can select from a drop-down list from the Main category, then from another drop-down list select the Sub category from within the Main, and then the Sub-Sub category from within the Sub.
I can get the Main category drop-down list to work right, and it provides the integer I can use to 'rebuild' that part of the category number for searching the item list for matching categories. However, I cannot get the Sub or Sub-Sub dropdowns to work properly, they always show ALL items of that level, not filtering to just the sub categories that fall under the selected main category.
How can I set this up so it will work? It is aggravating and unproductive to have to scroll past all the pet food or all the fish when I need to select a calico cat for the collection list.