I know someone has answered this question before but i couldn't find a good answer. I have a subreport linked in the footer of a group, so there are about 5 different instance of just one subreport. I want to hide only the instances where that subreport is null. Microsoft help has the code below to hide a subreport when there is no data. However, this hides all subreport instances in each footer when in fact there is data since the first instance has no data. Is there a way to use a for each statement here to cycle through each instance of the subreports or is there another way to accomplish this? Thanks.
Code:Me!rptsubReason.Visible = Me!rptsubReason.Report.HasData