Query Count

Elysyn

New Member
Joined
Dec 11, 2003
Messages
23
Hello,
I have been working on this problem for several hours now, and have searched all my references at hand to find the solution to what seems to be an extremely simple problem. I have seen several postings regarding counting in this forum, but none seem to match quite what I am looking for. I am working in Access 2002, and I am trying to run a query on a column that will contain only 1 of 3 values (1,2,or 3).

I need to get a count of each separate value. This seems to be a really basic request. I should be able to set the total to Count and put the value I want it to count in Criteria, right? The data type is a number in the table. Am I just being exceptionally dense, or is this actually harder than it intuitively seems it should be?

Thank you in advance for your help!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Create a new query. Add the field you want to count. Add that field again. Now click on the Totals icon to add the Total row that says "Group By". Change the "Group By" total on the second field to count.

Now the query will show the total for each number. If you wish to limit it to one, add criteria to the first field.
 
Upvote 0
Thank you.

That wasn't so hard now, was it? :) Now, I'm going to go play and see if I can get my date parameters to work with it and the people the numbers belong to... I might be back!

Thanks again!
 
Upvote 0

Forum statistics

Threads
1,221,614
Messages
6,160,839
Members
451,673
Latest member
wella86

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top