Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 16th, 2003, 02:36 AM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Not to print a field which has no value

I created a report in MS Access 2000. For each data record to be displayed, it has two reporting lines. The second line is for "Comment" field only. I don't want to display, subsequently not print, the comment line if the comment field is empty. How can I do it? Any help is greatly appreciated.

 
Old October 16th, 2003, 07:23 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,151
Thanks: 2
Thanked 14 Times in 14 Posts
Send a message via ICQ to SerranoG Send a message via AIM to SerranoG
Default

Have you tried setting the comment field's CAN GROW and CAN SHRINK properties to YES? This will allow the field to become as big as it needs be (can grow) and also shrink down to nothing if it's empty (can shrink).

You can also put something on the report's On Format event in the detail section that says if the comment field is null then its VISIBLE property = FALSE, else it's TRUE.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division
 
Old October 28th, 2003, 07:20 PM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default


Thank you. The answer you provided works.

Bill.



Quote:
quote:Originally posted by SerranoG
 Have you tried setting the comment field's CAN GROW and CAN SHRINK properties to YES? This will allow the field to become as big as it needs be (can grow) and also shrink down to nothing if it's empty (can shrink).

You can also put something on the report's On Format event in the detail section that says if the comment field is null then its VISIBLE property = FALSE, else it's TRUE.


Greg Serrano
Michigan Dept. of Environmental Quality, Air Quality Division





Similar Threads
Thread Thread Starter Forum Replies Last Post
Textbox problem print preview vs. print jenisageek Access 5 May 2nd, 2008 12:54 PM
print the hidden page without the print dialog box kayzem Classic ASP Basics 0 April 21st, 2005 11:31 PM
Print and print preview file on the website withou appleLover General .NET 0 February 19th, 2005 02:24 AM
Macro to print to different print objects mikericc Access 1 April 21st, 2004 10:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.