Home Subreports

Not printing the Detail band if no data in ANY of the subreports

edited May 2003 in Subreports
D7 RB7 Interbase

I have 4 sub reports attached to the Detail band. The queries for each have
to have SkipWhenNoRecords set to false as there may be data on one of the
other sub reports.

My question is how can I check the record count of the sub reports and if
they ALL have no records stop the detail band from printing.

TIA

Rhonda Ridge

Comments

  • edited May 2003
    I think you should set SkipWhenNoRecords to true on all the subreports. It
    should work such that when SkipWhenNoRecords is true and there is at least
    one subreport with data, then the master should print the detail. Only when
    all 4 subreports have no data will the SkipWhenNoRecords have an effect.
    This is how it should work. Do you have a report where it doesn't do this?


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.