Counting number of records from a table

puthenveetil

Registered User.
Local time
Today, 08:34
Joined
Aug 9, 2004
Messages
94
Hi all,

Is there any option to count the number or records relating to
a specific field. Here is the details..The db is for a school and there is a tables for
class and students. I am using a form to enter students details. I had created a
relationship with these two tables. i am using a query to get the details regarding a specific
class like classname, class teacher like that.. Is there any way to calculate the number of students in that specific class.

now i am using the query as follows

SELECT Class.*
FROM Class
WHERE (((Class.ClassID)=[Forms]![Class]![ClassID]));

I had created the relationship with the above two tables with classid as the primary key


thanks in advance

Thanks
 
create a total query and use the count function in the Total row of your query.
 
maxmangion said:
create a total query and use the count function in the Total row of your query.

thanks max,

can u please tell me how to do that...


thanks
 
in your query click on the Σ to make the Total row visible, then click on the drop down arrow (on your total row) of the field in question and select count.
 
maxmangion said:
in your query click on the Σ to make the Total row visible, then click on the drop down arrow (on your total row) of the field in question and select count.


hi max,

thanks for the reply...you are life saver


Thanks :D
 

Users who are viewing this thread

Back
Top Bottom