S
steve o
I have a form and a subform. Within the form I have a combo box
(cboSelCat) to select Categories.
Within the subform I have a combo box (cboSC) that uses a query based
on the catid from cboSelCat in the mailform to give me the
subcategories.
I use the following query in the record source of cboSC:
SELECT SubCategory.subcatid, SubCategory.SubCategory FROM SubCategory
WHERE SubCategory.catid=Forms!frmDataInput!cboSelCat;
It dynamically populates okay. (ie. if I select Fruits in sboSelCat,
then cboSC gives me choices of Apples, Oranges, etc.
The subform is in data sheet view so I have a list of records. So
there is one cboSC for each one of my records in the subform.
The problem is if I select Apples for one subform record, then ever
other subform record then switches to Apples.
I originally had the cboSC query above in the After_Update for the
subform. I also tried it on OnCurrent. But they all give me the same
results.
I've done lots of google searching for the answer, but I can't find
it.
Any ideas?
Thanks,
Steve
(cboSelCat) to select Categories.
Within the subform I have a combo box (cboSC) that uses a query based
on the catid from cboSelCat in the mailform to give me the
subcategories.
I use the following query in the record source of cboSC:
SELECT SubCategory.subcatid, SubCategory.SubCategory FROM SubCategory
WHERE SubCategory.catid=Forms!frmDataInput!cboSelCat;
It dynamically populates okay. (ie. if I select Fruits in sboSelCat,
then cboSC gives me choices of Apples, Oranges, etc.
The subform is in data sheet view so I have a list of records. So
there is one cboSC for each one of my records in the subform.
The problem is if I select Apples for one subform record, then ever
other subform record then switches to Apples.
I originally had the cboSC query above in the After_Update for the
subform. I also tried it on OnCurrent. But they all give me the same
results.
I've done lots of google searching for the answer, but I can't find
it.
Any ideas?
Thanks,
Steve