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

  • Thread starter Evan_Robitaille via AccessMonster.com
  • Start date
E

Evan_Robitaille via AccessMonster.com

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
 
M

Marshall Barton

Evan_Robitaille via AccessMonster.com said:
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top