I want to create a table where the first field is a category, the
second field is a subcategory to the first field, and the third field
is a subcategory to the second. E.g., the category table might look
like this:
Toys
Jewelry
Sporting Goods
The second field lookup table might be:
Toys Board Games
Toys Video Games
Jewelry Watches
Jewelry Rings
Sporting Goods Baseball Gloves
And the third field table might be:
Board Games Monopoly
Board Games Risk
Board Games Othello
Video Games The Sims
Video Games Madden NFL
Watches Seiko Chrono
Watches Timex Ironman
So, if the user entered [Toys], the second field would be a lookup of
[Board Games / Video Games]. Likewise, entering [Video Games] would
give a lookup of [The Sims / Madden NFL] for the third field.
What's the best way to do this? I'd like to have a Datasheet format.
I've thought of a couple designs, but my designs seemed like hacks,
with VBA queries writing to temporary scratch tables based on the
contents of the fields. I'm sure there's a more elegant approach. If
someone could pass it along it would be very much appreciated.
Thanks,
Rich