Report layout

A

Albert D. Kallal

Just go:

docmd.OpenReport "name of report",acViewPreview
docmd.Maxmimize
DoCmd.RunCommand acCmdZoom75

I don't think there is a zoom80, but 75 should be close...

Note that you can put the docmd.Maximize in the reports on-open event (all
mine do that), the zoom command has to be executed *after* the report loads,
and thus needs to follow the openreport command in code as above...
 
J

Jason

also how do I run down the left half of A4 page then resume at the top and
go down the right?
Thanks,
 
A

Albert D. Kallal

Jason said:
I get Run-time error '2046':
The command or action Zoom75%' isn't available now.

do you have any prompts in your sql code (parameters), or perhaps some type
of message box?

the report's on open event code HAS TO FINISH. Actually, likely it means the
report needs to have finished being rendered before you execute the
DoCmd.RunCommand acCmdZoom75

Post your 2-3 lines of code you using to open the report.

I suspect if you have any type of dialog prompts, or parameters, then you
need to change your approach...
 
A

Albert D. Kallal

Jason said:
also how do I run down the left half of A4 page then resume at the top and
go down the right?
Thanks,


Do you mean you want two columns of data? You have to "ensure" your layout
is LESS then 1/2 the available space, and then in page setup, you see the
options for specifying the number of rows for your data.
 
J

Jason

There's no prompts but there is a function called from the SQL that is the
form's data.
 
J

Jason

There's no prompts but there is a function called from the SQL that is the
report's data.
 
Top