Results 1 to 3 of 3
  1. #1
    CalvT is offline Novice
    Windows 7 64bit Access 2013
    Join Date
    Jan 2013
    Posts
    1

    Running Totals in Access Query

    I have the following query set up:

    SELECT Days.DMY, Sum(GVA12.IMPORTE) AS SumOfIMPORTE, GVA12.COD_VENDED


    FROM Days LEFT JOIN GVA12 ON Days.DMY = GVA12.FECHA_EMIS
    GROUP BY Days.DMY, GVA12.COD_VENDED;

    And it gives the following result:

    Click image for larger version. 

Name:	Snip2.GIF 
Views:	21 
Size:	20.4 KB 
ID:	10612

    I want to add a running total in a fourth column, that will not omit the blank columns. So it would start 0,1000,3000,3000,3000,3000,4000 etc.

    Thanks

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870

  3. #3
    A S MANN is offline Advanced System Analyst
    Windows XP Access 2007
    Join Date
    Oct 2010
    Location
    India
    Posts
    164
    A VBA code and a macro which run in a loop will solve this problem.
    In row 1 Let Dim X As Integer
    X = X + SumOfIMPORTE
    By macro go to Start
    X = SumOfIMPORTE
    Go to Second Row
    X = X + SumOfIMPORTE

    Continue till end You can also show X value in a new field
    You can thought more to reach to solution

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

Similar Threads

  1. Replies: 3
    Last Post: 10-11-2012, 10:12 AM
  2. Replies: 1
    Last Post: 06-09-2012, 05:27 PM
  3. running or sub total using sql query in access
    By learning_graccess in forum Access
    Replies: 4
    Last Post: 10-15-2011, 05:40 AM
  4. Create Running Totals
    By dascooper in forum Access
    Replies: 9
    Last Post: 04-05-2011, 09:22 PM
  5. Select query for running totals
    By asawadude in forum Queries
    Replies: 2
    Last Post: 10-07-2010, 03:41 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