Showing results for 
Search instead for 
Do you mean 

Hide a report section based on data

Copper Contributor
Posts: 53
Country: USA

Hide a report section based on data

Can a subreport set visible to false for an item on the main report section?



if chResult="Field Changed" Then Section1.Visible=False

This line would be in a history subreport. I'd want it to hide section1 of the main report. However it doesn't seem like a subreport can control visibility of any item on the main report. I'm guessing I don't know the proper name for the main report object.


Just trying to make it hide a label I've tried:





None of those seem to have an effect. I did rename Section 1 Header on the main report to Section1Header thinking it couldn't/shouldn't contain spaces in a variable name. Since the report comes with spaces, I'd wager that I'm way off on the objects real name.


Any insight?



Marshall Hayes
ACT! Certified Consultant
Hayes Consulting LLC