Results 1 to 4 of 4

Thread: [RESOLVED] Count(fld) help :(

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    9

    Resolved [RESOLVED] Count(fld) help :(

    I have a table that looks like this

    VB Code:
    1. |---------|----------|
    2. | received |  checked |
    3. |---------|----------|
    4.    Mr T     |     Mr M   |
    5.    Mr T     |              |
    6.    Mr T     |      Mr T  |
    7.    Mr M     |              |
    8.  ---------------------

    I need to count the number of times of received and checked.

    The problem is when i use Count(checked), It gives me value 4 (I'm assuming it also counts the empty fields ) when it should be 2.

    So my question is, what formula should I use? Or I am using Count(fld) the wrong way?

    Please help and enligthen me.. Thanks in advance.

  2. #2

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    9

    Re: Count(fld) help :(

    Please give me some quick help dudes.. thanks

  3. #3
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: Count(fld) help :(

    Count does not include a record if the field is null. I would assume your "empty fields" actually contain an empty string, thus are included in the count.

    You could use a Running Total instead. In the Evaluate section, select "Use a Formula" and write something like

    Length(Trim({Table Name.checked})) > 0

  4. #4

    Thread Starter
    New Member
    Join Date
    May 2006
    Posts
    9

    Re: Count(fld) help :(

    Thank you Mr Bruce

Posting Permissions

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



Click Here to Expand Forum to Full Width