L
Leslie Isaacs
Hello All
I have a report where the record sourse is a query that returns a single
record. Normally the report prints on two pages, because I have a pagbreak
controll half way down the detail section (this is necessary because of the
particular requirement of the report's layout). In some cases, however, the
second page is not required: this is when the value of a particular textbox
('txtFound') in the detail section is >0. In these cases only the first page
is required - without a blank second page.
I realise I could do this by setting the data source for all the '2nd-page'
controlls to be empty (null?) if the value of 'txtFound' is not >0, and then
setting the CanShrink property to Yes, but this doesn't seem to be the right
way to do it. I know also that I could put all the '2nd-page' controlls on a
separate report, but for this purpose that wouldn't work because the reports
is in fact one of many that is generated and emailed as a bach and the 2
seperate reports would get lost from each other.
So, is it possible to hide all the controls after the PageBreak IF the value
of txtFound is not >0? Perhaps by putting them all in the report footer and
hiding the section if the value of txtFound is not >0?
Hope someone can help.
Many thanks
Les
I have a report where the record sourse is a query that returns a single
record. Normally the report prints on two pages, because I have a pagbreak
controll half way down the detail section (this is necessary because of the
particular requirement of the report's layout). In some cases, however, the
second page is not required: this is when the value of a particular textbox
('txtFound') in the detail section is >0. In these cases only the first page
is required - without a blank second page.
I realise I could do this by setting the data source for all the '2nd-page'
controlls to be empty (null?) if the value of 'txtFound' is not >0, and then
setting the CanShrink property to Yes, but this doesn't seem to be the right
way to do it. I know also that I could put all the '2nd-page' controlls on a
separate report, but for this purpose that wouldn't work because the reports
is in fact one of many that is generated and emailed as a bach and the 2
seperate reports would get lost from each other.
So, is it possible to hide all the controls after the PageBreak IF the value
of txtFound is not >0? Perhaps by putting them all in the report footer and
hiding the section if the value of txtFound is not >0?
Hope someone can help.
Many thanks
Les