D
Dave
I have a subform that is linked to the parent form through an ID field.
This subform contains a combobox that I want to filter based on the current
value of the control source for a combobox (cbo) in the _parent_ form.
For example, the parent form contains a cbo with a current id of 7. There
are multiple related records showing on the subform, each with a cbo that
displays a value. But when the user clicks on the cbo, it should list only
records where the id value is 7.
The syntax for the row source of the subform cbo should look something like
this:
SELECT id, field
FROM table
WHERE OtherFieldID=ParentFormName.Form.cboOtherField.value;
However, this reference is not recognized. What is the proper syntax to
reference the ID of the cbo in the parent form?
Thanks
Dave
This subform contains a combobox that I want to filter based on the current
value of the control source for a combobox (cbo) in the _parent_ form.
For example, the parent form contains a cbo with a current id of 7. There
are multiple related records showing on the subform, each with a cbo that
displays a value. But when the user clicks on the cbo, it should list only
records where the id value is 7.
The syntax for the row source of the subform cbo should look something like
this:
SELECT id, field
FROM table
WHERE OtherFieldID=ParentFormName.Form.cboOtherField.value;
However, this reference is not recognized. What is the proper syntax to
reference the ID of the cbo in the parent form?
Thanks
Dave