Open Report In Fit To Screen

  • Thread starter Thread starter doyle60
  • Start date Start date
D

doyle60

I want to open a report in fit to screen. The code I found on the
Internet didn't quite work for me. How is this done?

Matt
 
I want to open a report in fit to screen. The code I found on the
Internet didn't quite work for me. How is this done?

One difficulty is that the code to "fit to window" cannot be executed in the
report's own code module. You have to call it in the same code that opens the
report.

DoCmd.OpenReport "ReportName", acViewPreview
DoCmd.RunCommand acCmdFitToWindow

I would usually include...

DoCmd.Maximize

....in the Report's Open Event.
 
Thanks so much. And thanks for the explanation. I did put it in the
wrong place.

Matt
 
Back
Top