Results 1 to 3 of 3

Thread: #Error

  1. #1
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    NJ, USA
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I have a report with the query created within the report. I have several calculation fields. One of which divides the number of clients by different worker classifications. On some days there are no worker within a classification so the math is 47/0. This gives me the #Error in the field. How do I prevent this or convert to a value of 0? Thank you. Fay

  2. #2
    5 Star Lounger
    Join Date
    Aug 2004
    Location
    Connecticut, USA
    Posts
    816
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try:
    =iif([classifications]=0,0,[clients]/[classifications])

    edited to add closing parenthesis

  3. #3
    5 Star Lounger
    Join Date
    Jul 2001
    Location
    NJ, USA
    Posts
    617
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you that did the job. Fay





    Quote Originally Posted by mdbct View Post
    Try:
    =iif([classifications]=0,0,[clients]/[classifications])

    edited to add closing parenthesis

Posting Permissions

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