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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.