Solved

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

Posted on 2010-11-30
10
604 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
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

896 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

11 Experts available now in Live!

Get 1:1 Help Now