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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do you return a specific # of rows in a report?

Status
Not open for further replies.

lefty38

Technical User
Oct 29, 2000
12
US
I have a report that must be printed on a pre-printed form.
The grouping is by supervisor and the detail(s) are the employees.
I need to have the report page break on a maximum number of records,
Per Supervisor.
Example:
________________
Supervisor(1)
________________
employee1
employee2
employee3
...through
employee19
employee20
________________
Page Break
________________
Supervisor(1)
________________
employee21
employee22
________________
PageBreak
________________
Supervisor(2)
________________
...............
 
If you go into sorting and grouping on the report and make sure you display a footer for your supervisor group. When you right click to view the properties of that footer you can select to enter a page break after / before selection.
I suspect from your report that you want to choose after selection.

That should do it.

Eradic8or
 
oops
thanks Eradic8or,
but that won't control the number of rows retuned
in the report.
I would need the control to pagebreak at first 20 records
and then at the supv name change
I have a supervisor(s) with:
Supv 1 @ 30 employees
(would recieve 2 pages of 20 names, & 10 names)
Supv 2 @ 15 employees
(would recieve 1 page of all 15 names)
Supv 3 @ 19 employees
(would recieve 1 page of all 19 names)
(etc)




 
I'm not sure if this is what you're looking for x-) ......but if you make the supervisor heading an attribute of every page then adjust the bottom margin setting to miss the pre-printed form, when the report reaches the bottom margin level, it will automatically page break giving you a new page with the supervisor heading.
You could then add your supervior footer and force another page break after the selection.
It would take a bit of fiddling with margin settings but I have tried it and it works.

Eradic8or.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top