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  

Condition Group Footer to be visible based on number of records in detail sectio



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2009, 08:56 PM posted to microsoft.public.access.reports
Evan_Robitaille via AccessMonster.com
external usenet poster
 
Posts: 3
Default Condition Group Footer to be visible based on number of records in detail sectio

I have a report grouped by customer number with account info in the detail
section. I want a subreport in the group footer to be visible if the number
of accounts in the detail section is 1.

Thanks,
ER

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ports/200904/1

  #2  
Old April 30th, 2009, 10:31 PM posted to microsoft.public.access.reports
Marshall Barton
external usenet poster
 
Posts: 5,361
Default Condition Group Footer to be visible based on number of records in detail sectio

Evan_Robitaille via AccessMonster.com wrote:

I have a report grouped by customer number with account info in the detail
section. I want a subreport in the group footer to be visible if the number
of accounts in the detail section is 1.



Add a text box named txtDtlCnt with expression =Count(*)
to the group footer.

Then the footer's Format event can use code like:

Me.subreportcontrol.Visible = (txtDtlCnt 1)

If you want to hide the entire footer section, use the
section's name instead of the subreport control's name.

--
Marsh
MVP [MS Access]
 




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


All times are GMT +1. The time now is 04:18 PM.


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