Filter report based on filter on form

  • Thread starter Thread starter Henrootje
  • Start date Start date
H

Henrootje

How can I easily copy the filter on a form to a report???

TIA Henro
 
You can access the Form's Filter String using:

Forms!YourForn.Filter

and you can use this in the "WhereCondition" argument of your OpenReport
method (provided that all Fields referred in the Form's Filter are also in
the Report's RecordSource).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top