Pass filtered form data to a report?

G

Guest

I can code a form to filter on key data; What type of code would pass the
filtered form data to a report? (Having given up on the idea of mail merging
filtered records).
 
G

Guest

The DoCmd.OpenReport method has properties that you can use to filter reports.

When you use DoCmd.OpenReport just pass the form's filter in the 'Filter'
attribute or maybe in the 'Where' attribute...

You could probably achieve what you were trying to do with your merging.
By using references to controls on your form in the criteria of a query you
can filter the data it returns. If your merge document is based on that
query's output then it will merge with the correct records.

Steve
 

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

Top