Supress Detail Band if no data
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.
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.
This discussion has been closed.
Comments
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.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com