Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Leave a blank field out of access report

Posted on 2011-09-09
8
Medium Priority
?
362 Views
Last Modified: 2012-08-13
I have an access report that I use to print address labels - it pulls data from a table that has the usual "Address1" "address2"  "City" etc - often there is no data in the "address2" field.
When the labels print this leaves a blank line between "Address1" and "City". I want to be able to leave out the "address2" field when it is blank and have the fields below move up to fill the blank space - any advice on how to do this?
0
Comment
Question by:Jedeye
[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
  • 4
  • 3
8 Comments
 
LVL 7

Expert Comment

by:XLITS
ID: 36509637
It's been a while since I've done this but I think on the detail part of the report i you choose properties there should be "can shrink" and "can grow" properties.  If you set both of these to yes I believe that will do what you want.
0
 

Author Comment

by:Jedeye
ID: 36509687
XLITS - I tried this and it doesn't seem to make any difference
0
 
LVL 120

Accepted Solution

by:
Rey Obrero (Capricorn1) earned 1500 total points
ID: 36510061
you need to use some codes with the can shrink property, see this link

How to eliminate white space in reports with CanShrink and code in Access
http://support.microsoft.com/?kbid=299011
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Closing Comment

by:Jedeye
ID: 36510242
Not exactly what I was looking for - and providing a link is hardly worth 500 points - but it will do the job
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36510272
.. then, you should have not accepted the comment.
0
 

Author Comment

by:Jedeye
ID: 36510416
I will know in future
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 36510498
i also remember those...
0
 

Author Comment

by:Jedeye
ID: 36510587
capricorn1: -
Just so I am not misunderstood - I do thank you for the solution - it worked for me (with some tweeking because I had to translate it into an SQL query) - my comment on the shortness of your contribution was not meant as an insult - also - I accepted the answer because it worked  and I want to move on - I am not familiar with the protocol for not accepting an answer - I meant exactly what I said  - "I will know in future" - by this I mean I will look up the protocol and apply it in future.
Sorry if I caused annoyance
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
It’s the first day of March, the weather is starting to warm up and the excitement of the upcoming St. Patrick’s Day holiday can be felt throughout the world.
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

604 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