Results 1 to 6 of 6
  1. #1
    bannonymous is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    3

    Summing fields in Access 2010 reports

    In a report I want to total 'Quoted Material' and 'Add-On Material' for multiple records. When a record does not have a value in both these fields the total is incorrect. I do not want my report filled with a lot of unnecessary zeros. How do I tell the report to regard the null field as being equal to zero?

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Nz(FieldName, 0)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    bannonymous is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    3
    Thank you for your suggestion. I apologize for my ignorance, but I am not sure exactly what you mean. I went into the report design and changed the command to =sum([Quoted Material,0]+[Add-On Material,0]) but got an error message. Ditto with trying to put the ',0' in the fields used to get the summation.

    What is Nz? Do I enter the full 'Nz(FieldName, 0)'? Where do I enter this change?

    Thank you very much for your time and assistance.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Did you look in Help? Nz() is a function that replaces Null values. Try

    =sum(Nz([Quoted Material],0)+Nz([Add-On Material],0))
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    bannonymous is offline Novice
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jul 2013
    Posts
    3
    You are marvelous! Thank you!!

    Yes, I did look in the Help function, but sometimes you don't know enough to know where to look.

  6. #6
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Happy to help, and welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 0
    Last Post: 02-07-2012, 04:38 AM
  2. Replies: 2
    Last Post: 05-20-2011, 10:18 AM
  3. Summing reports
    By tarhim47 in forum Reports
    Replies: 0
    Last Post: 03-30-2011, 11:07 AM
  4. 2010 Access reports
    By wthoffman in forum Reports
    Replies: 3
    Last Post: 10-12-2010, 09:36 AM
  5. Summing totals in reports
    By Harley Guy in forum Reports
    Replies: 4
    Last Post: 04-06-2010, 08:53 AM

Tags for this Thread

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