G
Guest
I'm trying to create a form in which there are 3 combo boxes. In the first
one (cboMain), the user chooses a issue (such as Merchandise). Then the
choices in the 2nd combo box (cboSub) reflect only the choices that are
related to Merchandise (such as Size). The 3rd combo box (cboDetail) should
reflect the choices available in for that sub-issue (such as 14/16).
With my limited self-taught knowledge of Access and a lot of web searching,
I was able to get the 2nd box to display the correct choices based on the
choice in the 2st box. However, when I repeated the process, the 3rd box
continues to offer no choices (just a blank line).
I have 3 tables (tblMainItems, tblSubItems, and tblDetail), each of which
have Primary Keys set for each choice listed. The table fields are:
tblMainItems: MainID (primary key), MainName
tblSubItems: SubID (primary key), SubName, MainID
tblDetail: DetailID (primary key), DetailName, SubID, MainID
I have made relationships between all the fields of the same names in the
different tables. I don't know if that makes a difference, but it didn't fix
the problem.
The RowSource for cboSub (the one that is operating properly) is:
SELECT DISTINCTROW [tblSubItems].[SubID], [tblSubItems].[SubName],
[tblSubItems].[MainID] FROM tblSubItems WHERE
((([tblSubItems].[MainID])=[forms]![frmCustomerIssuesLog]![cboMain])) ORDER
BY [tblSubItems].[SubName];
The RowSource for cboDetails (the one that is blank) is:
SELECT DISTINCTROW tblDetail.DetailID, tblDetail.DetailName, tblDetail.SubID
FROM tblDetail WHERE
(((tblDetail.SubID)=[Forms]![frmCustomerIssuesLog]![cboSub])) ORDER BY
tblDetail.DetailName;
I'm hoping someone can decipher my inexperienced explanation and help me set
up the 3rd combo box. Thanks!
one (cboMain), the user chooses a issue (such as Merchandise). Then the
choices in the 2nd combo box (cboSub) reflect only the choices that are
related to Merchandise (such as Size). The 3rd combo box (cboDetail) should
reflect the choices available in for that sub-issue (such as 14/16).
With my limited self-taught knowledge of Access and a lot of web searching,
I was able to get the 2nd box to display the correct choices based on the
choice in the 2st box. However, when I repeated the process, the 3rd box
continues to offer no choices (just a blank line).
I have 3 tables (tblMainItems, tblSubItems, and tblDetail), each of which
have Primary Keys set for each choice listed. The table fields are:
tblMainItems: MainID (primary key), MainName
tblSubItems: SubID (primary key), SubName, MainID
tblDetail: DetailID (primary key), DetailName, SubID, MainID
I have made relationships between all the fields of the same names in the
different tables. I don't know if that makes a difference, but it didn't fix
the problem.
The RowSource for cboSub (the one that is operating properly) is:
SELECT DISTINCTROW [tblSubItems].[SubID], [tblSubItems].[SubName],
[tblSubItems].[MainID] FROM tblSubItems WHERE
((([tblSubItems].[MainID])=[forms]![frmCustomerIssuesLog]![cboMain])) ORDER
BY [tblSubItems].[SubName];
The RowSource for cboDetails (the one that is blank) is:
SELECT DISTINCTROW tblDetail.DetailID, tblDetail.DetailName, tblDetail.SubID
FROM tblDetail WHERE
(((tblDetail.SubID)=[Forms]![frmCustomerIssuesLog]![cboSub])) ORDER BY
tblDetail.DetailName;
I'm hoping someone can decipher my inexperienced explanation and help me set
up the 3rd combo box. Thanks!