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 August 15th, 2008, 03:37 PM
Authorized User
 
Join Date: Apr 2006
Posts: 22
Thanks: 0
Thanked 0 Times in 0 Posts
Default Conditionally show a footer in access report

Does anyone know if there is a way to conditionally show a footer in an Microsoft Access report.

For various reasons in my report I am trying to show a footer except for a certain instance in my data

 and because I need to show it in another part of the report I am unable to remove the data element via a change to my query.

Any help would be appreciated.

thank you.

 
Old August 21st, 2008, 10:12 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

Do you mean that you want the footer to show on, say, pages 3 and 7 because there is a certain datum element present, but you don't want the footer to show for the rest of the pages?

I would make the footer always visible, then I'd put an invisible label in the page footer.

On the On Page Header's On Format event, I'd make the label invisible again.

In the detail's section's On Format event, I'd make label visible if the condition is met. I would NOT write an ELSE statement to turn it off if the condition is not met. You want the footer to show even if the condition was met once out of X times.

When the report loads, it hits the page header instructions to hide the label. If the condition is met in the detail section, the label is turned on and will show in the page footer. On the next page, the page header turns off the label again. If the condition is not met, you won't see the label on that page... etc.



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





Similar Threads
Thread Thread Starter Forum Replies Last Post
Sum of the fields in the report footer sudagnr Crystal Reports 0 April 3rd, 2008 07:07 AM
Report footer with VBA variable Stanny Access 1 March 2nd, 2005 08:54 AM
Grouping Header/Footer in VB 6 Report Design Oyero VB How-To 1 February 18th, 2005 09:29 AM
can footer value show in header? yancyn Crystal Reports 0 August 5th, 2004 01:39 AM
Print A4 sheets of a report with Header and Footer ashu_gupta75 Classic ASP Basics 0 January 5th, 2004 07:25 AM





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