Results 1 to 4 of 4
  1. #1
    danieltaylor is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    12

    Question summation with empty fields


    there are 6 fields in my table, fields 1-5 are to be filled with numbers and i want put the sum on the 6th field... but not all fields 1-5 will be filled with data. how can i do this considering that there are empty/null fields to be added...

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Use Nz function.

    Nz(field1,0)+Nz(field2,0)+...
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    danieltaylor is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Oct 2012
    Posts
    12
    thanks for the reply...
    But i've already tried to use the Nz function on my 6th field which is a calculated field but i've got an error message that calculated field cannot contain Nz Function. How can i properly used Nz function on my field????
    Any idea??

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    Can't. Do the calculation in query or in textbox ControlSource on form or report.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

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

Similar Threads

  1. Summation of N Number of fields
    By deepanadhi in forum Queries
    Replies: 5
    Last Post: 06-07-2012, 10:48 PM
  2. Replies: 2
    Last Post: 04-23-2012, 10:13 PM
  3. Replies: 4
    Last Post: 11-20-2011, 01:08 PM
  4. Copying into empty fields until...
    By cochi30 in forum Programming
    Replies: 8
    Last Post: 06-07-2009, 07:38 AM
  5. How to get rows with empty fields as well?
    By Orabidoo in forum Queries
    Replies: 10
    Last Post: 04-24-2009, 06:08 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