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

header on subreport

Status
Not open for further replies.

Zorro1265

Technical User
Nov 14, 2000
181
US
I have a subreport that is called from several main reports. I would like to be able to hide a header depending on which main report I am in. Preferably make the header height 0 so it wont add space to my main report. How can I do this?
 
In your subreports open event:
If Me.Parent.Name = "TheNameOfTheReportYouDontWantTheSubReportHeaderToBeShownIn" Then Me.ReportHeader.Visible = False
Else
...=True
End if
Use Select Case if you have lots and weigh if it is more advantageous to hide the header most of the time or show it most of the time. Gord
ghubbell@total.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top