Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms / May 2008

Tip: Looking for answers? Try searching our database.

Report layout

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jason - 03 May 2008 23:31 GMT
Hi,

How do I get the report preview to show maximized and at 80%

Thanks,
J.
Albert D. Kallal - 04 May 2008 00:12 GMT
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...

Signature

Albert D. Kallal    (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com

Jason - 04 May 2008 00:22 GMT
I get Run-time error '2046':
The command or action Zoom75%' isn't available now.

> Just go:
>
[quoted text clipped - 7 lines]
> 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...
Albert D. Kallal - 04 May 2008 00:34 GMT
>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...

Signature

Albert D. Kallal    (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com

Jason - 04 May 2008 02:17 GMT
There's no prompts but there is a function called from the SQL that is the
form's data.
> >I get Run-time error '2046':
> > The command or action Zoom75%' isn't available now.
[quoted text clipped - 10 lines]
> I suspect if you have any type of dialog prompts, or parameters, then you
> need to change your approach...
Jason - 04 May 2008 03:05 GMT
There's no prompts but there is a function called from the SQL that is the
report's data.
> > >I get Run-time error '2046':
> > > The command or action Zoom75%' isn't available now.
[quoted text clipped - 12 lines]
> > I suspect if you have any type of dialog prompts, or parameters, then you
> > need to change your approach...
Jason - 04 May 2008 00:22 GMT
also how do I run down the left half of A4 page then resume at the top and
go down the right?
Thanks,
> Just go:
>
[quoted text clipped - 7 lines]
> 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...
Albert D. Kallal - 04 May 2008 00:38 GMT
> 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.

Signature

Albert D. Kallal    (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.