Solved

Access 2010 Report  --  Displaywhen = 2   --- not as expected

Posted on 2012-04-07
5
678 Views
Last Modified: 2012-06-22
Hi
I am using Access 2010  ----- Report

I have designed a report with 10 fields.  Five of them have been set with the property

DisplayWhen = 2.


So, the affected fields are viewable on screen but dissappear when printing.  This is fine except that the space used by these fields still contributes to the page width.  

This results in 5 columns of visible data that are squeezed into the left side of my printed page.  The right side of the page has 5 fields that are invisible but occupy space.  This forces me to use lanscape instead of portrait printouts.

I would like those 5 invisible fields to occupy zero space at print time. I appreciate your help.
0
Comment
Question by:peispud
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 30

Expert Comment

by:hnasr
ID: 37820421
You may need 2 reports, one for screen display the other for printer.

IF more help is needed attach a sample database showing the problem.
0
 

Author Comment

by:peispud
ID: 37820551
Respecfully,   I have trouble with that.

First of all,  perhaps there is an event before printing where I could reduce the width of the hidden columns to zero (and then restore them after the print job).

I have trouble with that. It doesn't make sense to me that you that the displaywhen property is left orphaned (in a report) as this suggests.  If someone thought of this command for the screen, then I expect that the thought would have extended to printer output.
  I do appreciate your input though.  Please don't consider my disagreement  as a sign of disrespect.
0
 
LVL 40

Accepted Solution

by:
als315 earned 500 total points
ID: 37820732
I prefer 2 reports, as hnasr was suggested, but you can of course create dynamic reports. Here you can find examples:
http://bytes.com/topic/access/insights/696050-create-dynamic-report-using-vba
0
 
LVL 30

Expert Comment

by:hnasr
ID: 37821218
My second comment was not addressed.
"IF more help is needed attach a sample database showing the problem."
0
 

Author Closing Comment

by:peispud
ID: 37823616
Thanks..  

I have reconsidered my approach and listened to your advice, but you did give me a fine answer.
0

Featured Post

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.

Question has a verified solution.

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

I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

726 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