rubbernilly
Programmer
Hello all. This is my first foray into this community, but hopefully someone can help with this problem.
I have a subform object gets its SourceObject property set programatically and dynamically. The source object is always a query.
With the subform control displaying a query, the user can still choose to filter the data s/he is looking at. They can choose the "Filter By Selection" or the "Filter By Form" buttons.
When I print the report or export the dataset, I want it to match what they are looking at, right down to any extra criteria that they might have included in their filter. I know that if I used a Form as the SourceObject, then I could use the language:
strFilter = me.subForm.Form.Filter
But this does not work when the SourceObject is a Query.
So my question is...Is there a way to capture the Filter being applied to a query through the Filter by Selection/Form options?
Please help. I have posted this in three other forums and the one, single response I have gotten has been from someone who did not understand the question.
Thanks,
Tim
I have a subform object gets its SourceObject property set programatically and dynamically. The source object is always a query.
With the subform control displaying a query, the user can still choose to filter the data s/he is looking at. They can choose the "Filter By Selection" or the "Filter By Form" buttons.
When I print the report or export the dataset, I want it to match what they are looking at, right down to any extra criteria that they might have included in their filter. I know that if I used a Form as the SourceObject, then I could use the language:
strFilter = me.subForm.Form.Filter
But this does not work when the SourceObject is a Query.
So my question is...Is there a way to capture the Filter being applied to a query through the Filter by Selection/Form options?
Please help. I have posted this in three other forums and the one, single response I have gotten has been from someone who did not understand the question.
Thanks,
Tim