Counting Duplicate Records

  • Thread starter Thread starter Novix
  • Start date Start date
N

Novix

Guest
Newbie to access here. I'm working on a homework assignment and I'm totally stumped on how to work a query. I'm supposed to design a query that counts the number of counties in a state and display that number. The table has a autonumber PK, name of the county, and the state(this is what is duplicated). I've been trying to figure out how to count the number of times the state is repeated but the book for the class is horrible.
 
Can you have a different county but the same state name?

Col
 
Yes, the table looks kind of like this.

Record County State
1 abc Alaska
2 abd Alaska
3 abe Alaska
4 abf Alabama
5 abg Alabama

Except it has every county for every state in the US.
 
Take a look at the crosstab query and see where that takes you.
 
Since this is a homework assignment, I won't just give you the answer, but point you in the direction. Look up Totals query in Access Help. It will do what you are looking for.
 

Users who are viewing this thread

Back
Top Bottom