Results 1 to 3 of 3
  1. #1
    arctushar@yahoo.com is offline Novice
    Windows XP Access 2010 (version 14.0)
    Join Date
    Sep 2010
    Posts
    9

    cumulative sum how

    Hellow
    I want to make a query where it shows cumulative search. How can I do that. for example
    In a stock table there is receive data as below
    • 10
    • 5
    • 16
    • 12




    Now query will show as below

    • 10
    • 15
    • 31
    • 43

    How can I do this. can anybody help me?

  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,530
    Search on "running sum". It is typically done with either a DSum() or subquery that sum all values equal to or less than the current record (based on a sorting field).
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    and to expand on Paul's...http://support.microsoft.com/kb/290136

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

Similar Threads

  1. cumulative rainfall query
    By wilkesgra in forum Queries
    Replies: 5
    Last Post: 09-29-2010, 07:27 AM
  2. Cumulative sum (columns)
    By ravens in forum Queries
    Replies: 1
    Last Post: 03-02-2010, 08:14 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