Results 1 to 8 of 8
  1. #1
    geocan2006 is offline Advanced Beginner
    Windows 10 Access 2010 32bit
    Join Date
    May 2016
    Posts
    34

    Running sum in calculated table row


    Is there any way to enter an expression in a table row (calculated) to act as running sum like debit, credit, balance ( running sum)
    Thanks

  2. #2
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    If there is (and I doubt it) it would be something that no seasoned db developer would do. Calculations should only be done in forms, reports and queries, except in rare cases.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Don't think it's going out on a limb to say this is not at all possible in table. Build a report and use textbox RunningSum property. The trick is calculating a starting balance for a period. Very common topic.
    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.

  5. #5
    geocan2006 is offline Advanced Beginner
    Windows 10 Access 2010 32bit
    Join Date
    May 2016
    Posts
    34
    I consider myself more than average excel programmer however when I discover the dynamic of access I just cant stop wanting to convert my excel file with 20+ sheets and hyperlink to create reports, I have this mistrust since 20 years, whenever I enter a data I always want to see if well sums in report sheet I have created. Excel sucks when you push it's limits. I have to find a way around however I am not the only person in the planet wanting this solved. a bit disappointing by the Microsoft Access programmers set the rule limiting the capability
    Thanks

  6. #6
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    Interesting.
    I am not the only person in the planet wanting this solved. a bit disappointing by the Microsoft Access programmers set the rule limiting the capability
    If you want a database, use database software. If you want a concoction of spreadsheets to attempt to make a database, use spreadsheet software. You'll find, if you research the people wanting to convert multisheet Excel applications to database, they are challenged to deal with relational database concepts.

    Access and Excel are different products serving different environments and are built on different object models. The restrictions, that you find limiting, reflect the underlying concepts on which these different tools were designed and built. And each has a broad following.
    Last edited by orange; 06-22-2020 at 09:32 AM. Reason: spelling

  7. #7
    Micron is offline Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,423
    Agree with Orange. It seems that your disappointment is based on not understanding that they are 2 entirely different tools that may look the same on some level but are not the same. Understanding how to get what you need in and out of a db and being confident on the accuracy of that comes with knowledge and practice. Once you understand the reasons for not storing calculations at the table level you will probably be less disappointed by it.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  8. #8
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I think other database platforms such as SQLServer, MySQL, Oracle handle running sum calculation in query easier than Access. It can be done in Access, just not simply.

    Access has RunningSum property of textbox on report.

    Access also has DSum domain aggregate function which can be used on form or in query that can provide a running sum calculation.
    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. Calculated Field with Running Cummulative Total!
    By countingguru in forum Access
    Replies: 4
    Last Post: 06-22-2020, 08:36 AM
  2. Replies: 1
    Last Post: 04-09-2018, 09:29 AM
  3. Replies: 9
    Last Post: 05-30-2017, 01:19 PM
  4. Replies: 2
    Last Post: 07-13-2016, 08:23 PM
  5. Replies: 2
    Last Post: 10-24-2012, 02:53 PM

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