Fit to Window

  • Thread starter Thread starter Ashley
  • Start date Start date
A

Ashley

Could I have the report to open in the "fit to window"?
Anyone know how to write a command on report open?

Thanks
 
Could I have the report to open in the "fit to window"?
Anyone know how to write a command on report open?

Thanks

If you open the report from an event on a form, use:

DoCmd.OpenReport "ReportName", acViewPreview
DoCmd.RunCommand acCmdFitToWindow
 
-----Original Message-----


If you open the report from an event on a form, use:

DoCmd.OpenReport "ReportName", acViewPreview
DoCmd.RunCommand acCmdFitToWindow
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.
.
I got Run-Time Error '2046':
This command or action 'FitToWindow' isn't available now.

How can I fit this error?
 
This command or action 'FitToWindow' isn't available now.

How can I fit this error?

I don't know?
Where did you place it?
It belongs in a Form's Command button click event.
(The button you click to open the report in preview.)
 
Back
Top