Yep: looks like Activate it too early to execute the zoom.
Try issuing the command immedately after the OpenReport action, i.e.:
DoCmd.OpenReport ("rptA5SendOut"), acViewPreview
RunCommand acCmdZoom150
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Mike" <re******@hotmail.com> wrote in message
news:40********@dnews.tpgi.com.au...
I have just tried this and got the following message....
Run-time error '2046'
The command or action 'Zoom150% isn't available now
I am running Office 2003 would this make a difference? Do I need any
particular library to be referenced?
Thanks
Mike
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:40**********************@freenews.iinet.net.a u... In the Activate event of the report:
RunCommand acCmdZoom150
Activate fires for preview, but not for print.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"Mike" <re******@hotmail.com> wrote in message
news:40********@dnews.tpgi.com.au... Is there a way for force access to view reports in a magnified view on
opening of the report from VBA?
I am using the following code to open the report
DoCmd.OpenReport ("rptA5SendOut"), acViewPreview
And I would like the report to be viewed at 150% when opened.
Mike