print report from a filtered form

  • Thread starter Thread starter Octavee Uhl
  • Start date Start date
O

Octavee Uhl

I have the folowing problem.

I want to use a form to filter my data and than print a
report with exactly this filter by clicking on a
commandbutton. how do I tell ms access to do just that?
 
Use the following OnClick code:

DoCmd.OpenReport "Filter by Form Report Name", acViewPreview, ,
Me.Filter

Of course you can substitute acViewPrint to go directly to the printer.

Con Giacomini
 

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

Back
Top