Hi, i have a report with a subreport that has a group which onFormat event forces new page in vb if this group has data. But in the main report this new page isn't counted and appears one page less than the total they are. It works if i stablish the property Force New Page to Before the section in the design view of the report, but that has the problem that i would need to set this property to none if the precedent group has no data, so it would have to be made with code.
Any way of going around it? Can this property set from another event or procedure than onFormat or onPrint events?
Thanks in advance for any help given.
Any way of going around it? Can this property set from another event or procedure than onFormat or onPrint events?
Thanks in advance for any help given.