Hi Kastaman!
If you could give me more information on the fields in your table and how you are counting the sales people that would help me give you a better answer. If I had to guess, it sounds to me like you want to count how many orders each sales person had(and maybe sum the order totals?). So you would need something this:
Select Count(OrderNumber) As NumberOfOrders, Sum(OrderTotal) As TotalSales, SalesmanID From Orders Group By SalesmanID
Then the second query would be:
Select (List your fields from Orders), NumberOfOrders, TotalSales From Orders Inner Join Query1 On Orders.SalesmanID = Query1.SalesmanID Order By NumberOfOrders, TotalSales
Of course you can establish the sequence and grouping(if necessary) in your report instead of in the query. Let me know if I am way off base here.
hth
Jeff Bridgham
bridgham@purdue.edu