Results 1 to 4 of 4
  1. #1
    planner67 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    2

    How to count negative numbers in a report

    Hi all,

    I have a report looks like this:

    deviation
    -12
    8
    15
    -5
    20
    -2

    I would like to be able to count the negative numbers on the report right under the deviation field. I am trying to write an expression but it does not work. How can I count the negative numbers in the deviation field? Thanks

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    How about making an invisible control equal to =IIF([deviation]< 0,1,0)
    Then Sum() the control in the footer of the section?

  3. #3
    planner67 is offline Novice
    Windows XP Access 2003
    Join Date
    Jun 2009
    Posts
    2
    Hey, it worked. Thank you very very much. I really appreciate your help.

  4. #4
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 10 Access 2013 32bit
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    Glad I could help. Are we ready for the Solved thread toll yet?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Suming Positive Numbers Only
    By jbarrum in forum Access
    Replies: 5
    Last Post: 04-24-2009, 03:51 PM
  2. Sum Of Positive Number and Negative Number
    By maysamab in forum Reports
    Replies: 1
    Last Post: 10-20-2008, 04:06 PM
  3. Non programer needs help in decimal numbers
    By Peter O in forum Access
    Replies: 1
    Last Post: 10-07-2008, 12:29 PM
  4. Matching positive with negative amounts
    By cwert11 in forum Access
    Replies: 1
    Last Post: 09-29-2008, 12:26 AM
  5. When Week Numbers Collide!
    By Schwagr in forum Queries
    Replies: 3
    Last Post: 03-18-2006, 10:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums