>I have a form with multiple search boxes to filter on one or more different
>fields on the form. When any of the search boxes are changed, I make up an
[quoted text clipped - 7 lines]
>is poke the recordset (How can I or otherwise) at a report as its
>recordsource to produce the same data.
If the report is based on the same (unfiltered) table/query
as the subform, then, in the command button that opens the
report, use the OpenReport method's WhereCondition argument
to filter the report to the criteria in your strCriteria
string.

Signature
Marsh
MVP [MS Access]
TrevorJ - 06 Mar 2007 20:57 GMT
Thanks Marsh. Worked a treat. Moved the declaration of strCriteria to the top
of the module, had to ditch the 'Order by ....' from the end of strCriteria
for the report, and tack it back on for the Sub form.
Thanks again
Trevor
> >I have a form with multiple search boxes to filter on one or more different
> >fields on the form. When any of the search boxes are changed, I make up an
[quoted text clipped - 13 lines]
> to filter the report to the criteria in your strCriteria
> string.