Solved

In Access 2007, how can I get my reports to Preview as a full screen image?

Posted on 2010-11-30
10
601 Views
Last Modified: 2012-06-27
In my adopted Access 2007 database, the reports will preview off of the viewable screen in a tiny box that you cannot enlarge unless you use the maximize button for the forms that generate the report.  If you are using the multi-window button, you will not easily find the report and you will not be able to preview the actual report, just a corner of it.  How can I make the report previews ALWAYS show in the Maximized size while allowing the forms to be multi-windowed?  
This is a database that has been in use and under reconstruction since Access 2.0 (1993-4)
0
Comment
Question by:PorterConsultingLLC
  • 5
  • 3
  • 2
10 Comments
 

Author Comment

by:PorterConsultingLLC
ID: 34239925
I have been working with Access since 2.0, in 1993-4, and have never seen this behaviour.  I am hoping one of you knows how to put a line o code into the VBA to tell the report to always preview as a full screen.  Any ideas?
0
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 34239948
In your code that opens the report, after the DoCmd.Open report do:

DoCmd.Maximize

or alternatively:

DoCmd.RunCommand acCmdZoomxx  

  where XX is the factor, or the box (just start to type it and you'll get intellisense support onthe available options)
.

  Then in your forms OnActivate event, do:

 DoCmd.Restore

JimD.
0
 

Author Comment

by:PorterConsultingLLC
ID: 34240083
thank you SOOOO much!  I've been going nuts with this and your solution is easy and it WORKS.  Again, Thank you!

Laura
0
 
LVL 57
ID: 34240099
Laura,

  Quite welcome.  Glad to be of help.

JimD.
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34241996
Also note that Explicitly Opening the Report in Print Preview will do this by default.
So instead of forcing this with code, set it once (Set the Default View property of the report to "Print Preview")

(The issue here is that the default View in Access 2007 is Report View, not Print Preview.)

;-)

JeffCoachman
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34242028
also note that if the report is opened in Print preview, the report will dynamically resize to always fit 100% in the window size.
0
 

Author Closing Comment

by:PorterConsultingLLC
ID: 34242202
Fast and easy solution to a nagging problem.  Because this database was originally created in Access 2.0 and reworked and upgraded for the past 15+ years it is full of code that we would not have to work with today.  This solution simply cut across all of the hassle and gave a simple solution.
0
 

Author Comment

by:PorterConsultingLLC
ID: 34242249
Yes, Jeff, the issue IS that this is setup to open in Report View, however, to change it at this point would be a major hassle.  All sorts of buttons and code that are interdependent and written in layers of modules and queries would have to be modified.  We have several of these and they are a pain, but if the code is not cleaned up after each upgrade in Access we end up having to deal with this kind of nightmare.  Thanks for your responses.  I really do appreciate them!
Laura
0
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 34242351
OK,

Just remember that a lot or Report code you may have (on format events, ...etc) will NOT run in Report View...
You will also not see Page numbers/ page breaks, and graphics may not display properly.

In other words, Print preview is designed to display the Report exactly as it will be printed.
Report view is designed to let you view the report quickly and provide for "Interaction"

0
 

Author Comment

by:PorterConsultingLLC
ID: 34247975
Thank you for that heads-up.  This sort of decision was made long before I came to where I am currently working, though.  I will let folks here know of the pitfalls you are describing.

Again, thank you!

Laura
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now