A
Andrew
I have a report which lists property sales. This report has a linked
subreport that is designed to show if the property has a prior or more
recent sale.
I ran into problems using a query to first group together properties with
multiple sales (long story), now I am trying to let just the report do the
work for me.
What I need is some way to hide the subreport if it only contains the 1
record (as this will just be the original sale) but display the subreport if
it has multiple records.
I tried the following
If Me.RPDSubReport.Report.Count > 1 Then
Me.RPDSubReport.Report.Visible = True
Else
Me.RPDSubReport.Report.Visible = False
End If
in the On Format Event of the Detail Section for each sale, but it does not
seem to do anything?
Any help or a different approach would be most appreciated.
Thanks Andrew.
subreport that is designed to show if the property has a prior or more
recent sale.
I ran into problems using a query to first group together properties with
multiple sales (long story), now I am trying to let just the report do the
work for me.
What I need is some way to hide the subreport if it only contains the 1
record (as this will just be the original sale) but display the subreport if
it has multiple records.
I tried the following
If Me.RPDSubReport.Report.Count > 1 Then
Me.RPDSubReport.Report.Visible = True
Else
Me.RPDSubReport.Report.Visible = False
End If
in the On Format Event of the Detail Section for each sale, but it does not
seem to do anything?
Any help or a different approach would be most appreciated.
Thanks Andrew.