Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Skip header if no data in detail

Status
Not open for further replies.

epoh

IS-IT--Management
May 8, 2006
73
US
I am trying to create a report that will skip the header, if there is no data in the detail section.

I've looked and haven't found anything yet.
 
You can try add a control to the Group Header section:
[tt][blue]
Name: txtCountGroup
Control Source: =Count(*)
Visible: No
[/blue][/tt]
Then add code to the On Format of the section like:
Code:
Private Sub GroupHeader0_Format(Cancel As Integer, FormatCount As Integer)
    Cancel = Me.txtCountGroup = 0
End Sub


Duane
Hook'D on Access
MS Access MVP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top