Subreport groupheader appears although there are no records tot sh

  • Thread starter Thread starter Weijland53
  • Start date Start date
W

Weijland53

In access 2007 subreport headers appear although there are no records.
This was not the case within access 2003. Now my reports look a little silly
since in my reports I sometimes have subreports containing no data. I do not
want to see their headers then.
Doe somebody no how to re create the former functionality?
 
I wasn't aware this had changed. You could try add a text box to the Header
section:
Name: txtCount
Control Source: =Count(*)
Visible: No
Then in the On Format event of the section, add code (in the module window)
of:
Cancel = (Me.txtCount=0)
 
Back
Top