Preview Fits

  • Thread starter Thread starter Scott C
  • Start date Start date
Scott,

Yes. The below should work for you. You'll just need to replace
"YourReport" with your actual report name and put this code in the event
procedure that you use to open your report, like a button click event.

DoCmd.OpenReport "YourReport", acPreview
DoCmd.Maximize
DoCmd.RunCommand acCmdFitToWindow
 
Thanks!

That's just what I needed.

Scott
-----Original Message-----
Scott,

Yes. The below should work for you. You'll just need to replace
"YourReport" with your actual report name and put this code in the event
procedure that you use to open your report, like a button click event.

DoCmd.OpenReport "YourReport", acPreview
DoCmd.Maximize
DoCmd.RunCommand acCmdFitToWindow





.
 
Scott said:
Is there a way to set the ,acPreview , to open in "Fit"
mode?


You have to add a line of code immediately after the
OpenReport line:

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

Back
Top