Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Control Report Output based on subtotal

Status
Not open for further replies.

StormcrowRahl

IS-IT--Management
Feb 13, 2006
9
US
I need to cause a page break when a group subtotal is equal to or not exceeding 20.

Setup: a parameter query is run with user input, which is where the report gets its information. Now, I can subtotal the specific column(#ofdocuments) in the report without any problem. But I need the report to page break once the running sum of the column(#ofdocuments) gets to 20 but doesn't exceed 20.

Example 1... The first 5 records all have a value of 4 in (#ofdocuments)column, only those 5 records should print on the first page of the report.

Example 2... The first 7 record's columns (#ofdocuments) have a sum of 17, and the 8th record has a value of 4 in the (#ofdocuments) column. Since this 8th record would make the running sum of the (#ofdocuments)column exceed 20, only the first 7 records should be printed on the page.

Thanks for any help.
 
Why not posting in the Access reports forum (forum703) ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top