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

Posted on 2012-04-07
Medium Priority
Last Modified: 2012-06-22
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.
Question by:peispud
  • 2
  • 2
LVL 31

Expert Comment

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.

Author Comment

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

Accepted Solution

als315 earned 2000 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:
LVL 31

Expert Comment

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

Author Closing Comment

ID: 37823616

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

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
Windows Explorer let you handle zip folders nearly as any other folder: Copy, move, change, and delete, etc. In VBA you can also handle normal files and folders, but zip folders takes a little more - and that you'll find here.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

600 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