A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional Group Footer



 
 
Thread Tools Display Modes
  #1  
Old February 22nd, 2005, 04:19 PM
landeye
external usenet poster
 
Posts: n/a
Default Conditional Group Footer

I want to design a report/subreport that displays the group footer only if
there is more than one record in the group. I have had success setting
variables to count records in the group and then setting an OnFormat event
for the group footer, but I have naming problems when I try to insert the
resulting report as a subreport in another report. Is there a simple built-in
function to hide the group footer when there is only one record in the group?
  #2  
Old February 22nd, 2005, 06:39 PM
Mauricio Silva
external usenet poster
 
Posts: n/a
Default


Since you have managed to count the records, you could put on Detail_Print

GroupFooter1.Visible = ([TextCount] 1)

Change:
- GroupFooter1 for the name of the footer section
- TextCount for the name of your TextBox with the counter of rows


"landeye" wrote:

I want to design a report/subreport that displays the group footer only if
there is more than one record in the group. I have had success setting
variables to count records in the group and then setting an OnFormat event
for the group footer, but I have naming problems when I try to insert the
resulting report as a subreport in another report. Is there a simple built-in
function to hide the group footer when there is only one record in the group?

  #3  
Old March 2nd, 2005, 06:09 PM
landeye
external usenet poster
 
Posts: n/a
Default

Works for me. Thanks!

"landeye" wrote:

I want to design a report/subreport that displays the group footer only if
there is more than one record in the group. I have had success setting
variables to count records in the group and then setting an OnFormat event
for the group footer, but I have naming problems when I try to insert the
resulting report as a subreport in another report. Is there a simple built-in
function to hide the group footer when there is only one record in the group?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hide group footer based on field value Paul Kraemer Setting Up & Running Reports 1 January 31st, 2005 09:13 PM
Hide group footer based on field value Paul Kraemer via AccessMonster.com Setting Up & Running Reports 0 January 31st, 2005 07:04 PM
Help my group footer is psychotic!!! Jen Setting Up & Running Reports 2 June 8th, 2004 04:11 PM


All times are GMT +1. The time now is 05:12 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.