I have a report that I group by the unique key for the recordsource to add a few extra header sections to the report. Largely this is done to use keep together and force new page in preferred ways. It is a long report height-wise.
In some cases I need to hide the detail section. Noteworthy is that the section is set with Can Grow and Can Shrink set to true. Also using EITHER a force new page Before the detail section OR using an After section on the header before the detail section is causing an extra page that is blank except for the page footer. By changing the background color of the detail section it does not look like this page is the detail section nor the previous section as the line I added for testing at the bottom of the section is not on the blank page.
Most of the controls are unbound and set programmatically on the Report header's format event. Additionally, the below code runs to hide the controls in the detail section... obviously in this case blHideSection is true.
Everything in the detail section is not visible, so everything should collapse and seems to except that there seems to be a phantom page left over.
I am hoping something jumps out at someone. I am not even having ideas of anything to try or research at the moment.
In some cases I need to hide the detail section. Noteworthy is that the section is set with Can Grow and Can Shrink set to true. Also using EITHER a force new page Before the detail section OR using an After section on the header before the detail section is causing an extra page that is blank except for the page footer. By changing the background color of the detail section it does not look like this page is the detail section nor the previous section as the line I added for testing at the bottom of the section is not on the blank page.
Most of the controls are unbound and set programmatically on the Report header's format event. Additionally, the below code runs to hide the controls in the detail section... obviously in this case blHideSection is true.
Code:
If blHideSection Then
'Hide all controls in Detail section
For Each ctl In Me.Section(acDetail).Controls
ctl.Visible = False
Next ctl
End if
Everything in the detail section is not visible, so everything should collapse and seems to except that there seems to be a phantom page left over.
I am hoping something jumps out at someone. I am not even having ideas of anything to try or research at the moment.