A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Report layout



 
 
Thread Tools Display Modes
  #1  
Old May 3rd, 2008, 11:31 PM posted to microsoft.public.access.forms
Jason[_25_]
external usenet poster
 
Posts: 126
Default Report layout

Hi,

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

Thanks,
J.


  #2  
Old May 4th, 2008, 12:12 AM posted to microsoft.public.access.forms
Albert D. Kallal
external usenet poster
 
Posts: 2,874
Default Report layout

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...


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada



  #3  
Old May 4th, 2008, 12:22 AM posted to microsoft.public.access.forms
Jason[_25_]
external usenet poster
 
Posts: 126
Default Report layout

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

"Albert D. Kallal" wrote in message
...
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...


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada





  #4  
Old May 4th, 2008, 12:22 AM posted to microsoft.public.access.forms
Jason[_25_]
external usenet poster
 
Posts: 126
Default Report layout

also how do I run down the left half of A4 page then resume at the top and
go down the right?
Thanks,
"Albert D. Kallal" wrote in message
...
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...


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada





  #5  
Old May 4th, 2008, 12:34 AM posted to microsoft.public.access.forms
Albert D. Kallal
external usenet poster
 
Posts: 2,874
Default Report layout

Jason" wrote in message
...
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...


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada



  #6  
Old May 4th, 2008, 12:38 AM posted to microsoft.public.access.forms
Albert D. Kallal
external usenet poster
 
Posts: 2,874
Default Report layout

"Jason" wrote in message
...
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.


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada



  #7  
Old May 4th, 2008, 02:17 AM posted to microsoft.public.access.forms
Jason[_25_]
external usenet poster
 
Posts: 126
Default Report layout

There's no prompts but there is a function called from the SQL that is the
form's data.
"Albert D. Kallal" wrote in message
...
Jason" wrote in message
...
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...


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada





  #8  
Old May 4th, 2008, 03:05 AM posted to microsoft.public.access.forms
Jason[_25_]
external usenet poster
 
Posts: 126
Default Report layout

There's no prompts but there is a function called from the SQL that is the
report's data.
"Albert D. Kallal" wrote in message
...
Jason" wrote in message
...
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...


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada







 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.