DCOUNT, SUM, or COUNT????

G

Guest

I have a table of customers called CUST. Fields are:
CUSTOMERNUMBER
STATE
CITY
ZIP (trimmed to the first three digits)

I want to run a query that will give results showing how many customers
exist in a particular zipcode.

I would like results to be something like:

AK 112
AL 200
CA 122
etc...

Could anybody please help? Thank you so much!
 
A

Al Camp

Maciek,
Using the query design grid, create a Totals query. Thta's a regular Select query, but
with View/Totals selected from the main menu.
In the State column, use Count instead of GroupBy.
 
R

Ron2005

or leave the group by for zip and add a colum to count customer number.
(would be needed if more than one zip can be in a state.)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top