Setting Report's Zoom on open

smig

Registered User.
Local time
Tomorrow, 00:35
Joined
Nov 25, 2009
Messages
2,209
How can I set the report's Zoom on open, and set the window size to match the report's zoom?
 
Hi. You could try something like:
Code:
DoCmd.RunCommand acCmdZoom200
 
Hi. You could try something like:
Code:
DoCmd.RunCommand acCmdZoom200
Thanks, but what about the window size ?
 
Not working :(
I tried Report's Open, Load, Activate events
"Not working" as in, are you getting an error message? If so, what does it say? Otherwise, can you post a sample db to demonstrate what you want to do? Thanks.
 
"Not working" as in, are you getting an error message? If so, what does it say? Otherwise, can you post a sample db to demonstrate what you want to do? Thanks.
Sorry

error 2046 - The command or action 'Zoom200%' isn't available now
 
Sorry

error 2046 - The command or action 'Zoom200%' isn't available now
Hmm, I just tried the following on a form button and it worked for me.
Code:
Private Sub Command0_Click()

DoCmd.OpenReport "Report2", acViewPreview
DoCmd.RunCommand acCmdZoom200

End Sub
Is that what you did?
 
Hmm, I just tried the following on a form button and it worked for me.
Code:
Private Sub Command0_Click()

DoCmd.OpenReport "Report2", acViewPreview
DoCmd.RunCommand acCmdZoom200

End Sub
Is that what you did?
No, I tried the Report's Open, OnLoad... events

This is even makes it easier for me as I don't have to change the reports, only the commands open them :)

Thanks
 
what is the exact difference between:
acViewNormal
acViewPreview
acViewReport
 
what is the exact difference between:
acViewNormal
acViewPreview
acViewReport

Hi. Normal sends the report directly to the printer. Preview displays the report before printing. And Report displays it in Layout view.
 

Users who are viewing this thread

Back
Top Bottom