Results 1 to 4 of 4
  1. #1
    is49460 is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    40

    Query with a running sum

    Hello

    I have the following table layout:

    Account Date Amount
    111 12/1/2009 20
    111 12/2/2009 30
    111 12/3/2009 40
    222 12/1/2009 30
    222 12/2/2009 40
    222 12/3/2009 50


    111 1/1/2010 100
    111 1/2/2010 200
    111 1/3/2010 300
    222 1/1/2010 300
    222 1/2/2010 400
    222 1/3/2010 500



    I need to create a query with a running sum by month, so the output would look as following:

    Account Date Running Sum (Calculations)
    111 12/1/2009 20 20
    111 12/2/2009 50 20+30
    111 12/3/2009 90 20+30+40
    222 12/1/2009 30 30
    222 12/2/2009 70 30+40
    222 12/3/2009 120 30+40+50
    111 1/1/2010 100 100
    111 1/2/2010 300 100+200
    111 1/3/2010 600 100+200+300
    222 1/1/2010 300 300
    222 1/2/2010 700 300+400
    222 1/3/2010 1200 300+400+500


    Any suggestions would be greatly appreciated, Thanks!!!

  2. #2
    RuralGuy's Avatar
    RuralGuy is offline Administrator
    Windows 7 Access 2007
    Join Date
    Mar 2007
    Location
    8300' in the Colorado Rocky Mountains
    Posts
    12,922
    A report can do this.

  3. #3
    joshynaresh is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Aug 2013
    Posts
    131
    it is imposible in query?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,931
    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. Running Sum Problem in Query and Chart
    By sandyg in forum Access
    Replies: 0
    Last Post: 12-01-2009, 01:02 PM
  2. Using running total in query to create graphs
    By maggioant in forum Queries
    Replies: 4
    Last Post: 10-02-2009, 05:58 AM
  3. Running Count Query
    By monkey2003 in forum Queries
    Replies: 0
    Last Post: 09-21-2009, 12:24 PM
  4. Running a Delete (Records) Query on Close
    By NoiCe in forum Queries
    Replies: 1
    Last Post: 07-12-2009, 06:17 PM
  5. Replies: 0
    Last Post: 06-21-2009, 01:29 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