I have two tables “tblCategories” and “tblParts” that I am using with a series of forms as listed below.
1. “frmSelectCategory” – This form has a combo box with a list of part types, and a command button. A part category is chosen from the combo box and when the command button is clicked it runs “qryClassification” and opens a new form “frmAddNewPart”.
2. The “frmAddNewPart” has two combo boxes whose contents are determined by qryClassification. It also has 15 combo boxes for choosing different part attributes whose contents are also determined by “qryClassification”.
There are two things that I am trying to accomplish with the 15 combo boxes that I am having trouble determining.
“tblParts is queried by “qryAddNewPart” to supply the attribute values to go into the combo boxes determined above.
I know this sounds confusing, let me know if you need more info, any help would be greatly appreciated.
Thanks in advance.
Paul
1. “frmSelectCategory” – This form has a combo box with a list of part types, and a command button. A part category is chosen from the combo box and when the command button is clicked it runs “qryClassification” and opens a new form “frmAddNewPart”.
2. The “frmAddNewPart” has two combo boxes whose contents are determined by qryClassification. It also has 15 combo boxes for choosing different part attributes whose contents are also determined by “qryClassification”.
There are two things that I am trying to accomplish with the 15 combo boxes that I am having trouble determining.
a. Not all part categories have 15 attributes; I would like to only have those attribute combo boxes that have caption data in “tblCategories” show up on the form.
The values to go into the combo boxes come from “qryAddNewPart” based on “tblParts”. “qryAddNewPart” also queries “tblCategories” to determine what the combo box label captions should be.
b. I would like to have the 15 combo box label captions change depending on the results of “qryAddNewPart” and as noted above only show those attributes that have caption data in them
To try to clarify a little, “tblCategories” is queried by “qryAddNewPart” if an attribute ISNotNull it should be shown on “frmAddNewPart” and the label caption should be the value in the attribute field.The values to go into the combo boxes come from “qryAddNewPart” based on “tblParts”. “qryAddNewPart” also queries “tblCategories” to determine what the combo box label captions should be.
b. I would like to have the 15 combo box label captions change depending on the results of “qryAddNewPart” and as noted above only show those attributes that have caption data in them
“tblParts is queried by “qryAddNewPart” to supply the attribute values to go into the combo boxes determined above.
I know this sounds confusing, let me know if you need more info, any help would be greatly appreciated.
Thanks in advance.
Paul