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

Top Value in Query

Status
Not open for further replies.

RonCT

Technical User
Dec 11, 2003
37
0
0
US
Is there a way to get back multiple results when using the Top Vaule property in a query? I am trying to get back the top 10 products sold for all salespeople in my table. The Top Value property works but it only returns the top 10 products for one salesperson. I am querying off a main table that has many products for each salesperson. I would like to get the top 10 for each sales person in descending order. Thanks!
 
Use the TOP 10 predicate in a subquery for each sales person.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Thanks PH! Can you give me more detail on how to creaate the subquery with the Top 10 predicate?
 
I was trying something different by adding a rank and an ID field to my queries.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top