Hi,
I would appreciate some help.
I have a subform called DII_ContractsItems with two combo boxes, cboChapter and cboSection.
The cboChapter box displays a list of chapters from the tblChapters2011. Here is the sql for that combo box.
SELECT tblChapters2011.Chapter, tblChapters2011.CategoryID, tblChapters2011.ItemID
FROM tblChapters2011
ORDER BY tblChapters2011.Chapter;
The cboSection combo box displays a list of sections which come from the table named tblChapterSections2011. Here is the sql
SELECT tblChapterSection2011.Section, tblChapterSection2011.CategoryID, tblChapters2011.CategoryID
FROM tblChapters2011 LEFT JOIN tblChapterSection2011 ON tblChapters2011.CategoryID = tblChapterSection2011.CategoryID
ORDER BY tblChapterSection2011.Section;
I would like the cboSection list to be limited based on the selection a user picks in the cboChapter combo box. The two tables, tblChapterSection2011 and tblChapters2011 are linked by the CategoryID field.
I would greatly appreciate some help with to code this.
Kind regards,
Tess
I would appreciate some help.
I have a subform called DII_ContractsItems with two combo boxes, cboChapter and cboSection.
The cboChapter box displays a list of chapters from the tblChapters2011. Here is the sql for that combo box.
SELECT tblChapters2011.Chapter, tblChapters2011.CategoryID, tblChapters2011.ItemID
FROM tblChapters2011
ORDER BY tblChapters2011.Chapter;
The cboSection combo box displays a list of sections which come from the table named tblChapterSections2011. Here is the sql
SELECT tblChapterSection2011.Section, tblChapterSection2011.CategoryID, tblChapters2011.CategoryID
FROM tblChapters2011 LEFT JOIN tblChapterSection2011 ON tblChapters2011.CategoryID = tblChapterSection2011.CategoryID
ORDER BY tblChapterSection2011.Section;
I would like the cboSection list to be limited based on the selection a user picks in the cboChapter combo box. The two tables, tblChapterSection2011 and tblChapters2011 are linked by the CategoryID field.
I would greatly appreciate some help with to code this.
Kind regards,
Tess