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

Can Limit be set for number of rows displayed in subreport

Status
Not open for further replies.

RBPM

IS-IT--Management
Jan 14, 2005
59
US
Good afternoon - Can anyone offer any insight on how to "easily" limit the number of rows displayed in a subreport?

Thanks
 
You can limit the number by grouping. Without further information as to what you are trying to do, it is hard to say.
 
Your report's record source can be something like:
SELECT TOP 3 *
FROM tblYourTable
ORDER BY YourField;

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
OK to be a little more specific about what i am trying to accomplish:

* Have a main report that includes several sub reports
* For a sub reports (within the detail section of the main report)I am trying to display just the most recent 5 records based on a number field (its in descending sequence) that is in the related table.
* The source for my sub-form is the related table that can have multiple entries (sequenced by descending number).
* I have a limited amount of space that is available for the subform and that is why I want to restrict the number of records that are displayed lets say 5.

Hope that this is clearer
 
You can create the subreport controls at their maximum height and set their can grow to no and can shrink to yes.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
thanks for the help - worked like a champ - much appreciated
 
Mackooo,
The solution apparently worked for RBPM. If it didn't work for you, it would be appropriate to describe why it didn't meet yours.

Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top