Results 1 to 3 of 3
  1. #1
    caniread is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Sep 2015
    Posts
    86

    Sum only certain rows

    I have a form that has a sub form on it. I would like to know if there is a way to sum a control but avoid summing a certain record if a field is null? Hopefully that makes sense.



    The reason is I always auto fill one field with the previous entry but then that gets summed and I do not want it to until the whole entry is complete.

  2. #2
    andy49's Avatar
    andy49 is offline VIP
    Windows 10 Access 2007
    Join Date
    Nov 2016
    Location
    London
    Posts
    1,051
    Sort of sum (controla,controlb and if controlc isnotnull then controld)
    ??


    Sent from my iPhone using Tapatalk

  3. #3
    Micron is offline Very Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    in a textbox, =DSum("myField", "tblMyTable", "SomeOtherField IS NOT NULL"
    or create a query that returns the total for the records where SomeOtherField IS NOT NULL ?
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

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

Similar Threads

  1. Show % of current rows in total rows.
    By redbull in forum Programming
    Replies: 8
    Last Post: 03-29-2016, 09:26 AM
  2. Replies: 22
    Last Post: 12-20-2015, 02:46 AM
  3. Replies: 4
    Last Post: 02-25-2014, 01:09 AM
  4. Replies: 0
    Last Post: 02-09-2012, 05:43 PM
  5. Replies: 2
    Last Post: 08-28-2011, 06:06 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