Results 1 to 3 of 3
  1. #1
    steveabni is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2014
    Location
    Chicago
    Posts
    6

    Empty Fields Calculated In Reports

    When doing calculations in the report footer, is there a way to ignore empty fields or possibly treat them as a zero value?



    I have calculated totals in a report, when there is no data to report for that column the field is empty, but if there is an empty field in one column then subsequent calculations are effected.

    =Sum([ACT]) If there is nothing to report, then this sum ends up as an empty field

    =(Sum([ACT]))/(Sum([ACT])+Sum([DCSS])+Sum([CR])+Sum([HR])+Sum([IT])+Sum([MK])+Sum([OPS])+Sum([PR])+Sum([SA])+Sum([TF])) since the previous field is empty the calculation for this field will also be empty (even though there is data in other categories to display.

    Thanks in advance for the help.

  2. #2
    steveabni is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2014
    Location
    Chicago
    Posts
    6
    I was able to figure this out, I went back and added the Nz funtion into the transform statement of my query........Thanks
    TRANSFORM Clng(Nz(Count([Root Cause Base].ID),0)) AS CountOfID

  3. #3
    rrciesla is offline Novice
    Windows 7 32bit Access 2013
    Join Date
    Dec 2014
    Posts
    9
    I had the same problem today. All I changed was report detail fields to Enabled=No and I lost the report totals. Rebooted. Report totals are back. Weird.

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

Similar Threads

  1. Having issues with calculated fields in reports
    By Neologic29 in forum Reports
    Replies: 12
    Last Post: 08-17-2013, 05:18 PM
  2. Calculated field (address), skipping empty lines
    By kelann in forum Programming
    Replies: 10
    Last Post: 11-02-2012, 03:08 PM
  3. Replies: 2
    Last Post: 04-23-2012, 10:13 PM
  4. Replies: 4
    Last Post: 11-20-2011, 01:08 PM
  5. Replies: 4
    Last Post: 06-29-2011, 06:32 AM

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