Hi,
I've been all over the internet trying to find an answer to this question and am hoping someone here has one.
I have 2 combo boxes, cboCatID and cboSubCatID
The values are based off of queries, qryCategory and qrySubCategory which are pulling values from underlying tables tblCategory and tblSubCategory.
I can create the boxes so that they are cascading, but my problem is a little more involved.
In the Category table, I have multiple categories, only some of which have a subcategory. The ones that have a subcategory, have multiple subcategories
What I want to do in my form is for the user to choose a category from cboCatID. I want access to then look at that choice and if it is a category that has a subcategory to populate the cboSubCatID with only the subcategories relevant to that Category. If the user chooses a Category with no subcategories, then I want the subcategory box to show "NONE" and have the user unable to change it, unless they change cboCatID.
I have a different set of cascading combo boxes based off of queries elsewhere in the DB and they work perfectly, but I have no idea how to alter the query or the code to get the modified Category/subcategoy boxes to work. I don't even know how to ask the question to even get the answer I'm looking for. I'm just learning VBA and some of the advanced functions of Access so please make the explanations as simple as possible.
Thanks in advance for any help.
I've been all over the internet trying to find an answer to this question and am hoping someone here has one.
I have 2 combo boxes, cboCatID and cboSubCatID
The values are based off of queries, qryCategory and qrySubCategory which are pulling values from underlying tables tblCategory and tblSubCategory.
I can create the boxes so that they are cascading, but my problem is a little more involved.
In the Category table, I have multiple categories, only some of which have a subcategory. The ones that have a subcategory, have multiple subcategories
What I want to do in my form is for the user to choose a category from cboCatID. I want access to then look at that choice and if it is a category that has a subcategory to populate the cboSubCatID with only the subcategories relevant to that Category. If the user chooses a Category with no subcategories, then I want the subcategory box to show "NONE" and have the user unable to change it, unless they change cboCatID.
I have a different set of cascading combo boxes based off of queries elsewhere in the DB and they work perfectly, but I have no idea how to alter the query or the code to get the modified Category/subcategoy boxes to work. I don't even know how to ask the question to even get the answer I'm looking for. I'm just learning VBA and some of the advanced functions of Access so please make the explanations as simple as possible.
Thanks in advance for any help.