Print this Sub-report not That One

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My main report has a group footer that has to print a sub-report. The
sub-report can be 1 of 2 that are available.

rptJoint
rptJointNone

If there are no records to be printed in the "rptJoint", the "rptJointNone"
sub-report is to be printed
Else the "rptJoint" sub-report is to be printed.

Is this possible and how?

Thanks in advance!

Dwight
 
I figured it out.

If Me.rptJoint.Report.HasData Then
Me.rptJointNone.Report.Visible = False
Me.rptJoint.Report.Visible = True
Else
Me.rptJointNone.Report.Visible = True
Me.rptJoint.Report.Visible = False
End If

Thank you!

Dwight
 
Back
Top