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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access Reports Omit Group Headers 1

Status
Not open for further replies.

rschneeg

IS-IT--Management
Nov 3, 2004
15
US
I have 3 levels of group headers in my report. How do I eliminate printing them if there is no data for these levels?
 
rschneeg
You can put code on the Group Header
Code:
If IsNull(YourTextBoxInTheHeader) Then
Me.YourTextBoxInTheHeader.Visible = False
Else
Me.YourTextBoxInTheHeader.Visible = True
End If

Tom
 
The other thing you could do would be to put code on the Activate event for the report.

Code:
Private Sub Report_Activate()
If IsNull(YourTextBoxInHeader) Then
Me.YourGroupHeader.Visible = False
Else
Me.YourGroupHeader.Visible = True
End If
End Sub

Tom
 
I tried a little of each and got it to work on multiple levels of group headers.
Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top