Norman,
When the user presses the print button, you can execute code similar to the following. You simply put the field lcCopy on the report where you want it to print. You can have another button that calls a print preview, you need to set lcCopy to some value (such as "Preview") there also.
lcCopy = "Original"
report form invoice to print noconsole
lcCopy = "Copy 1"
report form invoice to print noconsole
lcCopy = "Copy 2"
report form invoice to print noconsole
>Hi all, I need to control the amount of copies printer for an invoice, but have not figured this out. I have a normal report to print an invoice, the first time I print it It should tell its original, the second time "copy 1" the third "copy 2" etc.
>
>The source of the report is a SQL query that joins master and detail of the invoice, does anyone has done this before. What is the best approach. Note that I need to increment the index on the copy only if printed, this means that if I see the report in preview (screen) it should not affect that counting.
>
>Thanks
>
>Norman
Steve Gibson