PC Review


Reply
Thread Tools Rate Thread

Counting Records

 
 
=?Utf-8?B?WWFq?=
Guest
Posts: n/a
 
      12th Jul 2007
Hi,
I am using Access 2003 on XP.

I wanted to know how to count the amount of records that you have based on a
certain category. My database has one table with people's information in it.
One piece of information is a category(what business type they're in (eg.
Autos, telephone) which has it's own table. When i go to that category table,
there are plus signs (+) on the left side of the records that open up when
pressed and show which people belong under that specific category. (when i
press the Auto plus button, all of the people that work in that field are
displayed)

is there a way that i could add the people up based on what category they
are in?

j
 
Reply With Quote
 
 
 
 
John W. Vinson
Guest
Posts: n/a
 
      12th Jul 2007
On Thu, 12 Jul 2007 09:16:03 -0700, Yaj <(E-Mail Removed)> wrote:

>Hi,
>I am using Access 2003 on XP.
>
>I wanted to know how to count the amount of records that you have based on a
>certain category. My database has one table with people's information in it.
>One piece of information is a category(what business type they're in (eg.
>Autos, telephone) which has it's own table. When i go to that category table,
>there are plus signs (+) on the left side of the records that open up when
>pressed and show which people belong under that specific category. (when i
>press the Auto plus button, all of the people that work in that field are
>displayed)
>
>is there a way that i could add the people up based on what category they
>are in?
>
>j


First off, DON'T interact with data in table datasheets. That's not what
they're for! Tables are "bins" to store data; to display, count, edit, etc.
records you need Queries and Forms.

To count the number of people in each category create a Query with the new
query window. Select the People table; include its primary key and the
category field. You may want to also add the category table to the query and
select the category name (the human-readable text rather than the numeric ID).

Click the Greek Sigma icon - looks like a sideways M. Leave the default Group
By on the category fields, and change it to Count on the People table key
field.

Open the query by clicking the datasheet icon on the left end of the toolbar
and you'll see a count for each category.

John W. Vinson [MVP]
 
Reply With Quote
 
=?Utf-8?B?SmVycnkgV2hpdHRsZQ==?=
Guest
Posts: n/a
 
      12th Jul 2007
Use a Totals query based on the table. Sum the People and Group By Autos.
--
Jerry Whittle, Microsoft Access MVP
Light. Strong. Cheap. Pick two. Keith Bontrager - Bicycle Builder.

"Yaj" wrote:

> Hi,
> I am using Access 2003 on XP.
>
> I wanted to know how to count the amount of records that you have based on a
> certain category. My database has one table with people's information in it.
> One piece of information is a category(what business type they're in (eg.
> Autos, telephone) which has it's own table. When i go to that category table,
> there are plus signs (+) on the left side of the records that open up when
> pressed and show which people belong under that specific category. (when i
> press the Auto plus button, all of the people that work in that field are
> displayed)
>
> is there a way that i could add the people up based on what category they
> are in?
>
> j

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting records 'prior to' other records Leslie Isaacs Microsoft Access Queries 13 16th Aug 2008 03:58 PM
Counting Records - - Microsoft Access 1 15th Aug 2005 09:57 PM
Counting Records Keith Microsoft Access Queries 6 13th Jun 2005 02:25 PM
Counting records if all associated records have a date =?Utf-8?B?RGFuaWVsIFA=?= Microsoft Access Queries 1 21st Apr 2004 04:36 PM
Re: Counting Records in SQL Ben O'Hara Microsoft Access Queries 0 4th Sep 2003 02:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:15 PM.