I am creating a database to hold test cases for software my company is developing, and I need to categorize each test case.
Each category has a possible subcategory, and then another subcategory based on the previous one, creating a table stucture that looks like this:
TESTCASE (M:1) CATEGORY (1:M) SUBCAT_1 (1:M) SUBCAT_2
I have a form that shows each test case with three combo boxes to select the CATEGORY, SUBCAT_1, and SUBCAT_2. These combo boxes are cboCATEGORY, cboSUBCAT_1, and SUBCAT_2 respectively. Here are my issues:
1) Is this the correct table structure? Or should I set this up so that it looks like this:
TESTCASE (M:1) CATEGORY
TESTCASE (M:1) SUBCAT_1
TESTCASE (M:1) SUBCAT_2
The only issue I have with this table structure is that it SEEMS that the relationships are not related correctly and how would I filter cboSUBCAT_1 for the correct information based on what is selected in cboCATEGORY?
2) The first combo box for CATEGORY, cboCATEGORY shows the information in the drop down and updates correctly. I've coded cboSUBCAT_1 to requery based on the results in cboCATEGORY, however NO INFORMATION SHOWS UP?!!?
Basically, I need guidance on the correct datamodel for these categories and how to code the the combo boxes to refresh correctly.
Thank you in advance!!!
Jim Yahazim
EDS, Inc.
Each category has a possible subcategory, and then another subcategory based on the previous one, creating a table stucture that looks like this:
TESTCASE (M:1) CATEGORY (1:M) SUBCAT_1 (1:M) SUBCAT_2
I have a form that shows each test case with three combo boxes to select the CATEGORY, SUBCAT_1, and SUBCAT_2. These combo boxes are cboCATEGORY, cboSUBCAT_1, and SUBCAT_2 respectively. Here are my issues:
1) Is this the correct table structure? Or should I set this up so that it looks like this:
TESTCASE (M:1) CATEGORY
TESTCASE (M:1) SUBCAT_1
TESTCASE (M:1) SUBCAT_2
The only issue I have with this table structure is that it SEEMS that the relationships are not related correctly and how would I filter cboSUBCAT_1 for the correct information based on what is selected in cboCATEGORY?
2) The first combo box for CATEGORY, cboCATEGORY shows the information in the drop down and updates correctly. I've coded cboSUBCAT_1 to requery based on the results in cboCATEGORY, however NO INFORMATION SHOWS UP?!!?
Basically, I need guidance on the correct datamodel for these categories and how to code the the combo boxes to refresh correctly.
Thank you in advance!!!
Jim Yahazim
EDS, Inc.