DoCmd.OpenReport acViewPreview

G

Guest

hey all,
i have a form with a button on it that opens my report in preview mode. Is
there a way to open with 100% Zoomed and and certain window size/or
maximized? Right now, by default it opens in Fit view and the window it too
narrow.

thanks,
rodchar
 
F

fredg

hey all,
i have a form with a button on it that opens my report in preview mode. Is
there a way to open with 100% Zoomed and and certain window size/or
maximized? Right now, by default it opens in Fit view and the window it too
narrow.

thanks,
rodchar

If you open the report using an event (like the click event of a
command button):

DoCmd.OpenReport "ReportName",acViewPreview
DoCmd.Maximize
DoCmd.RunCommand acCmdZoom100
 

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