Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Supress Detail Band if no data

edited July 2004 in General
Hello,

I have a report that pulls data from a master/detail set. The Group header
prints information from the master database whether the detail file has
relevant records or not. I would like to suppress printing the detail band
if there is no data corresponding to the particular master group record. Can
this be done?

Thanks in advance for your help.

Mark G.

Comments

  • edited July 2004
    Hi Mark,

    Inside the DetailBand.BeforePrint event you can check the value of the
    detail record and toggle the visibility of the band as you need. Be sure
    you set the visibility back to True again or none of your data will print
    after you encounter one empty record.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.