Posted 18 August 2019, 10:02 pm EST
Hello,
In my detail section of my rpx I have a subreport that has labels in its report header. The subreport sometimes does not have any rows for a given main detail but I then get just the subreport header labels.
I am manually filtering and setting the subreport.datasource in my main detail format…
dr3 = _dt3.Select("LoanNo = " + Me.txtLoanNo.Value.ToString)
subrpt3.DataSource = dr3
me.subrprtLoanLinkedFDs.Report = subrpt3
If dr3.Length > 0 Then
me.subrprtLoanLinkedFDs.Visible = TRUE
Else
me.subrprtLoanLinkedFDs.Height = 0
me.subrprtLoanLinkedFDs.Visible = FALSE
End If
Is there any way that I can hide the header labels or the whole subreport for that particular main detail?
If I take out the subreport header label the subreport shrinks nicely, you just don’t know what you are looking at.
I tried hiding the subreport in the main detail format event but then I don’t get any subreports for those main detail that are supposed to have subreports.
I hope this is clear.
Thanks
Brian