Show subreport header when subreport has no data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roverturf
    New Member
    • Sep 2006
    • 1

    #1

    Show subreport header when subreport has no data

    Is there a way to show a subreport's header if the subreport has no data? On a work order report (rptWorkOrder), I have two subreports, one for parts charges (subreportParts ) and another for labor charges (subreportLabor ). Both subreports are set to can grow=yes and can shrink=no, and both are height=1". If the recordset for subreportParts is empty the subreport is not visible, leaving a 1" in my report.

    I would like to put a label under the subreportParts, make it visible if the subreportParts recordset is empty, and set subreportParts. height=lblParts .height on the parent report's on format event - but a label does not have a height property. Any suggestions?
Working...