G
Guest
I have three combo boxes on a form. The first (cboProgramArea) “filtersâ€
values for the second one (cboCategory) and the second one “filters†values
for the third (cboDescription). The problem I’m having is that after
selecting values on one record, and moving to another one and selecting
values on it, the values in the second combo or the third combo – or both
disappear from the previous record(s), although the selected value still
exists in the underlying table. Sometimes, the list for selection in the
third combo is not available; if you reselect in combo 2, the list may (or
may not appear.)
Here’s the set up:
Combo1 cboProgramArea Row Source:
SELECT DISTINCTROW tbl_Program_Areas.ProgramID,
tbl_Program_Areas.ProgramArea FROM tbl_Program_Areas;
Column count 2, bound column 1.
After Update Event: cboCategory.Requery
cboDescription.Requery
(I’ve also tried the requery in the After Update Event of Combo2)
Combo 2 cboCategory Row Source
SELECT DISTINCTROW tbl_Categories_Detail.ProgramID,
tbl_Categories_Detail.CategoryID, tbl_Categories_Detail.Category FROM
tbl_Categories_Detail WHERE
(((tbl_Categories_Detail.ProgramID)=forms!frm_SR_Data_Entry!cboProgramArea))
ORDER BY tbl_Categories_Detail.Category;
Combo 3 cboDescription Row Source
SELECT DISTINCTROW tbl_Descriptions_Detail.ProgramID,
tbl_Descriptions_Detail.CategoryID, tbl_Descriptions_Detail.DescriptionID,
tbl_Descriptions_Detail.Description FROM tbl_Descriptions_Detail WHERE
(((tbl_Descriptions_Detail.ProgramID)=forms!frm_SR_Data_Entry!cboProgramArea
And
(tbl_Descriptions_Detail.CategoryID)=forms!frm_SR_Data_Entry!cboCategory))
ORDER BY tbl_Descriptions_Detail.Description;
I’m also having other problems: default value of two date fields =Date() –
are filled intermittently – one new record not filled; another new record
filled. A concatenated control concatenates three of four elements – does not
concatenate at all on another record. This control is set to concatenate on
the After Update event of the third combo box noted above.
Here are my questions: 1) is there something wrong with my setup of the
cascading combo boxes? I have tried recreating the combos in a new database
and am experiencing the same issues. Do you have any suggestions?
2) Could the problem be that the form is corrupted? Or maybe my copy of
Access, since I recreated the combo boxes in a new test database and
experienced similar strange behavior. Any help will be appreciated.
values for the second one (cboCategory) and the second one “filters†values
for the third (cboDescription). The problem I’m having is that after
selecting values on one record, and moving to another one and selecting
values on it, the values in the second combo or the third combo – or both
disappear from the previous record(s), although the selected value still
exists in the underlying table. Sometimes, the list for selection in the
third combo is not available; if you reselect in combo 2, the list may (or
may not appear.)
Here’s the set up:
Combo1 cboProgramArea Row Source:
SELECT DISTINCTROW tbl_Program_Areas.ProgramID,
tbl_Program_Areas.ProgramArea FROM tbl_Program_Areas;
Column count 2, bound column 1.
After Update Event: cboCategory.Requery
cboDescription.Requery
(I’ve also tried the requery in the After Update Event of Combo2)
Combo 2 cboCategory Row Source
SELECT DISTINCTROW tbl_Categories_Detail.ProgramID,
tbl_Categories_Detail.CategoryID, tbl_Categories_Detail.Category FROM
tbl_Categories_Detail WHERE
(((tbl_Categories_Detail.ProgramID)=forms!frm_SR_Data_Entry!cboProgramArea))
ORDER BY tbl_Categories_Detail.Category;
Combo 3 cboDescription Row Source
SELECT DISTINCTROW tbl_Descriptions_Detail.ProgramID,
tbl_Descriptions_Detail.CategoryID, tbl_Descriptions_Detail.DescriptionID,
tbl_Descriptions_Detail.Description FROM tbl_Descriptions_Detail WHERE
(((tbl_Descriptions_Detail.ProgramID)=forms!frm_SR_Data_Entry!cboProgramArea
And
(tbl_Descriptions_Detail.CategoryID)=forms!frm_SR_Data_Entry!cboCategory))
ORDER BY tbl_Descriptions_Detail.Description;
I’m also having other problems: default value of two date fields =Date() –
are filled intermittently – one new record not filled; another new record
filled. A concatenated control concatenates three of four elements – does not
concatenate at all on another record. This control is set to concatenate on
the After Update event of the third combo box noted above.
Here are my questions: 1) is there something wrong with my setup of the
cascading combo boxes? I have tried recreating the combos in a new database
and am experiencing the same issues. Do you have any suggestions?
2) Could the problem be that the form is corrupted? Or maybe my copy of
Access, since I recreated the combo boxes in a new test database and
experienced similar strange behavior. Any help will be appreciated.