Counting Records

  • Thread starter Thread starter - -
  • Start date Start date
?

- -

Hi all
I have a table (called Contacts).
I would like to count (in a report, form, or using any other device
possible) the number of records, but insert some if statements in relation
to a field (called Contact Type).
ie I want to find out the total number of records where Contact Type =
Record Label, and display in the same form/report, count the number of
records where Contact Type = Radio.
Any suggestions?
Thanks
Matt
 
SELECT YourDataTable.[Contact Type], Count(YourDataTable.[Contact Type]) AS
[CountOfContact Type]
FROM YourDataTable
GROUP BY YourDataTable.[Contact Type];
 

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

Back
Top