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

Tricky Counting

Status
Not open for further replies.

l0knezmonstir

Technical User
Jul 18, 2002
19
US
Using Access 2000.
I need a query to do this..
Each rep has a number of schools. (treps, tschools joined on repid) Each school has an estimated quantity field. (04QTY) I need to count, for each rep, how many schools have quantities filled in. (ie john q rep has 5 filled in) I was able to pull this off, but only using a report. I then need to count how many reps have 1 school filled out, 2 filled out...up to 10 and then a greater than 10 count. I can do this in excel using dcount and the exported report that counted the number for each rep. Its rather obnoxius though.
So basically i just need something that looks like this
68 0
32 1
23 2
28 3
21 4
22 5
13 6
16 7
9 8
3 9
14 10
45 >10
Any ideas?
-Marty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top