A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » New Users
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Select Top Values within each group



 
 
Thread Tools Display Modes
  #1  
Old August 4th, 2009, 07:13 PM posted to microsoft.public.access.gettingstarted
KrispyData
external usenet poster
 
Posts: 78
Default Select Top Values within each group

I am using Access 2007. I would like to create a query that returns top 50
customers for each Sales Rep. I tried creating a total query, sorted the
sales in descending order and used the "Return" tool in the Design tab. The
results are only the top 50 for the entire sales force, not each sales
representative. Is there a way to do this?
  #2  
Old August 4th, 2009, 08:35 PM posted to microsoft.public.access.gettingstarted
John Spencer
external usenet poster
 
Posts: 7,815
Default Select Top Values within each group

Check out the following and see if that helps.

http://allenbrowne.com/subquery-01.html#TopN

John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County

KrispyData wrote:
I am using Access 2007. I would like to create a query that returns top 50
customers for each Sales Rep. I tried creating a total query, sorted the
sales in descending order and used the "Return" tool in the Design tab. The
results are only the top 50 for the entire sales force, not each sales
representative. Is there a way to do this?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:05 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.