set report size to 'fit' via vba?

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
 
F

fredg

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
 

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

Top