Results 1 to 6 of 6
  1. #1
    memario1214 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    6

    Records will not sum together?


    I have some values in one of my tables and I need the sum of them in a report. This total needs to be a column. The fields are named 4 in, 6 in, 7 in, 9 in, 11 in. Not quite sure why they just will not add together in a report or even a query. Very simple thing. Most of the time I am getting blank cells. If I try it in a report I get 0's. Any help?

  2. #2
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    Question: are the fields mutually exclusive. So say the 6 in field has data are the rest of the fields in that record null?

  3. #3
    memario1214 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    6
    Most of the time no. I need to sum the values in the 6,9,etc fields. Sometimes only one will have a value but more often than not that's not the case

  4. #4
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    The Nulls are probably the use. My recommendation is that you either default numeric fields to 0 so there are no nulls or use the "total:Sum(IIF(isnull(numericfield),0,numericfield ))" in your query.

  5. #5
    RayMilhon is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    Aug 2011
    Location
    Southern California
    Posts
    1,085
    that should have been issue not use in the first sentence.

  6. #6
    memario1214 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2012
    Posts
    6
    EDIT: Nevermind. I just pulled a NO DUH! Thanks

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

Similar Threads

  1. Access 2007 - Creating New Records Based on Existing Records
    By GeorgeAugustinePhillips in forum Forms
    Replies: 9
    Last Post: 10-05-2011, 05:58 PM
  2. Replies: 12
    Last Post: 08-30-2011, 03:36 PM
  3. Replies: 3
    Last Post: 07-10-2011, 05:37 AM
  4. Replies: 10
    Last Post: 01-10-2011, 07:52 PM
  5. Replies: 7
    Last Post: 10-20-2010, 04: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