G
gbruintjes
I have a complex report with numerous sub-reports and need to know how
to include a conditional page break based on the existence of a sub-
report.
Below is some code I'm trying but it gives me an error. 'Object
doesn't support this property or method'
MResults = Me![SubReport_M].HasData
Me![MpageBreak].Visible = False
If MResults = 0 Then
Me![MpageBreak].Visible = True
End If
The other block I tried is this, but same error.
Me![MpageBreak].Visible = False
If Me.[SubReport_M].[HasData] Then
Me![MpageBreak].Visible = True
End If
In the end I want the page break to only show up if the sub-report has
data and shows up in the final report.
Any help would be appreciated.
Thanks,
Gerrit
to include a conditional page break based on the existence of a sub-
report.
Below is some code I'm trying but it gives me an error. 'Object
doesn't support this property or method'
MResults = Me![SubReport_M].HasData
Me![MpageBreak].Visible = False
If MResults = 0 Then
Me![MpageBreak].Visible = True
End If
The other block I tried is this, but same error.
Me![MpageBreak].Visible = False
If Me.[SubReport_M].[HasData] Then
Me![MpageBreak].Visible = True
End If
In the end I want the page break to only show up if the sub-report has
data and shows up in the final report.
Any help would be appreciated.
Thanks,
Gerrit