Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Feb 2003
    Posts
    129
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Counting records on report (97/sp2)

    On a report I would like to count the number of records that ="r". I am using the function =count([team]) to count the total number of team members. I want to count how many of them are red "r".
    This should be easy, but I'm stuck.

    Can anyone help?

    Thanks

    Paul

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Counting records on report (97/sp2)

    Use a text box with control source<pre>=DCount("*", "[Name_of_table]", "[Name_of_field] = 'r'")</pre>

    Of course, you must substitute the appropriate table name and field name.

    An alternative is<pre>=Abs(Sum([Name_of_field]='r'))</pre>

    with, again, the appropriate field name substituted.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •