I have a database with 2 combo boxes; Category and SubCategory. I want the available choices in SubCategory, dependent on what the user selected in Category.
Example
Category
Fruit
Car
Sport
SubCategory
Apple
Orange
Nova
Mustang
Football
Baseball
If I select Fruit from Category I only want Apple and Orange as a choice from SubCategory
I have a Category table and a SubCategory table.
Category
Category ID (primary key)
Category
SubCategory
SubCategory ID (primary key)
Category ID
SubCategory
There is a one to many relationship between Category.Category ID and SubCategory.Category ID Right now in my database, in another table the full drop down appears for both fields. In the form, only the SubCategory choices show.
How do I make the SubCategory dependent on the Category?
Thanks,
Hillary
Example
Category
Fruit
Car
Sport
SubCategory
Apple
Orange
Nova
Mustang
Football
Baseball
If I select Fruit from Category I only want Apple and Orange as a choice from SubCategory
I have a Category table and a SubCategory table.
Category
Category ID (primary key)
Category
SubCategory
SubCategory ID (primary key)
Category ID
SubCategory
There is a one to many relationship between Category.Category ID and SubCategory.Category ID Right now in my database, in another table the full drop down appears for both fields. In the form, only the SubCategory choices show.
How do I make the SubCategory dependent on the Category?
Thanks,
Hillary