>I am trying to print an "accumulate" or "insert" code on the pages for use with a mail folding/inserting machine. The last page of a set of pages for a given ID would have the "insert" code, while the other pages of the set would have the "accumulate" code.
>
>The page numbers are irrelevant and I don't need to remember them.
>
>I hope this clarifies the situation.
>
>Dave
Dave,
If the accumulate and insert code that you are printing can be located in the footer band, give this a try (It's just theory, but I think it should work) ...
Create a memory variable in the program that runs the report. Create two UDFs as well. The first UDF should set the memory variable to the Accumulate Code. The second UDF should set the memory variable to the Insert Code.
In the Group Band that breaks on the ID, call the first UDF in the "On Entry" expression of the band to set the memory variable to the Accumulate code. Call the second UDF in the "On Exit" expression of the band to set the memory variable to the Insert code. In the Footer band, print the memory variable.
Cathy