Hi Ive done a quick search to find out about making a page break visible depending on whether a sub report has any data in it. I need different sub reports on different pages, i have put the page break after each sub report, the problem is if the report has no data it just shows a blank page.
Ive been flitting with this code in both the onopen and detail onformat
Me.pbSick.Visible = False
If Me![rptReview].Report.HasData Then
Me.pbSick.Visible
Else
Me.pbSick.Visible = False
End If
the code stumbles over on the .report.hasdata, i have also tried me.rptreview.report.hasdata then
Can anyone see what my problem is? thanks
Ive been flitting with this code in both the onopen and detail onformat
Me.pbSick.Visible = False
If Me![rptReview].Report.HasData Then
Me.pbSick.Visible
Else
Me.pbSick.Visible = False
End If
the code stumbles over on the .report.hasdata, i have also tried me.rptreview.report.hasdata then
Can anyone see what my problem is? thanks