I have a child form that has a combo box whose underlying query needs
to be filtered by a value from a combo box on the parent form.
I have succeeded in doing this by putting the following SQL in the
rowsource of the combobox:
SELECT tblForms.idForm s, tblForms.FormNu mber, tblForms.FormNa me,
tblForms.idCust omers FROM tblForms ORDER BY tblForms.FormNu mber;
Then I adding the following to the GotFocus event of the combo box and
the Current event of the form:
cboidForms.RowS ource = "qryDesignOrder DropDown"
cboidForms.Requ ery
This works but is real kludgy. Whenever I change parent records, it has
a noticeable delay while it requeries for each record in the child
form.
Surely there's a better way to have a child form's combobox query be
filtered based on a value from a combobox on the parent form.
to be filtered by a value from a combo box on the parent form.
I have succeeded in doing this by putting the following SQL in the
rowsource of the combobox:
SELECT tblForms.idForm s, tblForms.FormNu mber, tblForms.FormNa me,
tblForms.idCust omers FROM tblForms ORDER BY tblForms.FormNu mber;
Then I adding the following to the GotFocus event of the combo box and
the Current event of the form:
cboidForms.RowS ource = "qryDesignOrder DropDown"
cboidForms.Requ ery
This works but is real kludgy. Whenever I change parent records, it has
a noticeable delay while it requeries for each record in the child
form.
Surely there's a better way to have a child form's combobox query be
filtered based on a value from a combobox on the parent form.
Comment