Bascially I am trying to create some new Invoice Templates for a mail order system.
The top 1/3 of the page shows the account details i.e. document number, Name, address, etc.
The middle section of the page shows the invoice details, list of product codes, with prices.
The bottom section of the page shows the documents totals etc, when the details section is completed.
The only grouping that I am doing on the report is by Document number, so as to keep all the related records together. The formula you first gave me works fine if I am just creating one document, but if I enter a number range of documents (with various numbers of products), when the same group breaks on to more than one page, it does not work.
For example, I have one document which has 30 records, when using the formula you gave me and a single document number it displays 20 records on the first page and 10 records on the second page.
But, if I use the same formula when entering multiple document numbers, the same document has 14 records on the first page and 16 records on the second page.
Bascially I need to try to calculate the number of records for each group change and then use that figure to format the report.
Hope that makes sense.
Slim