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
 

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

Similar Threads

Setting Zoom Level 2
Default Report Screen Size 2
View Size? 7
Scaling Report Size 1
preview at 100%? 2
Auto Size Text on Report 1
On Open - Size 2
Make a text box fit the value inside 4

Back
Top