set report size to 'fit' via vba?

  • Thread starter Thread starter andy
  • Start date Start date
A

andy

I have reports that open full size by using
DoCmd.Maximize, but I what I really want is for them to
open in 'Fit'. How can this be done? Thanks in advance,
Andy
 
andy said:
I have reports that open full size by using
DoCmd.Maximize, but I what I really want is for them to
open in 'Fit'. How can this be done? Thanks in advance,
Andy

Andy,
If you open the report from a command button on a form, use:

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