Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Counting number of records

Counting number of records

Counting number of records


Hope this is right forum.

1.  I have two tables. One contains 2000+ member records and one contains 60+ chapter records. I can marry the tables in a query.
2.  Each member record contains a member number and a membership expiration date (expire_dt) in the form of yyyymmdd and the chapter record contains a member number and a chapter number. I can filter current members using Left(expire_dt,4)
3.  Some of the members belong to one or more chapters.


I wish to determine the number of members in each chapter automatically without running a query 60 times.

I have considered the DCount() function in a query but I'm not sure how to implement it.

I have also considered the DCount() function in a report but I get confused about how to implement it.

Can anyone help me understand how to solve my problem?




RE: Counting number of records

"The chapter record contains a member number and a chapter number"
"60+ chapter records"
"2000+ member records"

That does not make sense to me that would mean that at most one chapter has 60 members, or 2 chapters have a total membership has a total of 60 members etc.  2000 members, but only 60 of them in a chapter.  Is that right?

Could you please post a simplified field list of these 2 tables.

In any cause I think you will wind up using a group clause in your SQL statement.

Lion Crest Software Services
Anthony L. Testi


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close