Programmatically Close a Report

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!
 
F

Fons Ponsioen

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
 
Top