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

code equivalent of group sort expert

Status
Not open for further replies.
Mar 10, 2004
53
US
Is it possible to do a "select Top N * from mytable" where the user will be prompted for the TOP N as opposed to having them go through the group sort expert?

Thanks in advance.
 
Not sure about that, but an alternative is to create a discrete number parameter for topN, and assuming your records are sorted in descending order and topN on the summary field is set to "All", you can format sections to suppress with a formula:

groupnumber > {?topN}

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top