Programmatically Close a Report

  • Thread starter Thread starter Bill Duris
  • Start date Start date
B

Bill Duris

Hello,

Is there a way display a report (without printing it) and then move to the
last page (because I'm creating a text file with the OnGroupHeader sections
and it needs to process all the data) and then close the report. Either from
within the report or from the form that calls the report.

I'd like to open the report with "DoCmd.OpenReport" so I can also send a
filter string.

Thanks!
 
Hi Bill
What about
DoCmd.OpenReport stDocName, acPreview

and than
DoCmd.OpenReport stDocName, , , LinkCriteria
for filtering
Make sure to define the LinkCriteria first.
Hope this helps.
Fons
 

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