D
Doug
I have a report which contains info for and is sorted by SampleNumber
and BottleType. There is a header and footer for each sort section.
There are occasions when one sample on an order with many samples is
cancelled. On those occasions, for that sample only I'd like to hide
the BottleType header, data, and footer and simply print a line that
says "This sample has been cancelled because of [Reason]."
I've been trying to work with the "Visible" properties for the header,
footer, etc. setting them to False if the query returns a Not IsNull
for the [Reason] field. The problem is that it's an all or none
situation. If there is one cancelled sample, the headers, footers,
etc. are hidden for ALL of the samples on the entire report.
It seems I need a loop to check the first record for a reason and set
the properties accordingly, then check the next record, set the
properties, then check the next record, etc...
Am I approaching this the right way? Is there a better way to do this
or do I just need to get the code right?
Any help would be greatly appreciated.
Thanks.
Doug
and BottleType. There is a header and footer for each sort section.
There are occasions when one sample on an order with many samples is
cancelled. On those occasions, for that sample only I'd like to hide
the BottleType header, data, and footer and simply print a line that
says "This sample has been cancelled because of [Reason]."
I've been trying to work with the "Visible" properties for the header,
footer, etc. setting them to False if the query returns a Not IsNull
for the [Reason] field. The problem is that it's an all or none
situation. If there is one cancelled sample, the headers, footers,
etc. are hidden for ALL of the samples on the entire report.
It seems I need a loop to check the first record for a reason and set
the properties accordingly, then check the next record, set the
properties, then check the next record, etc...
Am I approaching this the right way? Is there a better way to do this
or do I just need to get the code right?
Any help would be greatly appreciated.
Thanks.
Doug