Results 1 to 3 of 3
  1. #1
    TINMAN is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    68

    Running Total


    I have a calculated field in a Microsoft Access Query (qry-Report01B) called DimensionInches that calculates the dimension in inches from fields for feet, inches, fraction numerator, and fraction denominator.

    I would like to create another field called RT (for Running Total) just to the right of the DimensionInches field (column) in the query which would give a running total column for the dimension field. I tried creating a calculated field RT using the Dsum function but it wouldn't give me the desired results.

    RTSum(“[DimensionInches]”,”qry-Report01B”)


    DimensionInches RT

    1.00000 6.00000
    3.00000 6.00000
    2.00000 6.00000

    This Dsum function is giving me a total of all records in the query.

    I would like to result for RT to be 1.00000, 4.00000, 6.00000

    Any suggestions for a novice Access user.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Easiest method is to build a report and use textbox RunningSum property.

    For a query, review https://docs.microsoft.com/en-us/off...g-totals-query
    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.

  3. #3
    TINMAN is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Mar 2019
    Posts
    68
    Thank you for your response I have created a report using the textbox RunningSum property which gave me the correct results.

    I have also created a running total field in the query using the DSUM function which gives me the correct running total.

    However, when I tried to use a parameter query to limit the results to a certain group of records I get an error message. Now I will have to try and figure out a way around this issue, again thanks for your help.

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

Similar Threads

  1. Need A Running Total
    By ztirffritz in forum Queries
    Replies: 7
    Last Post: 12-14-2018, 03:19 PM
  2. Help with running total
    By sconnors in forum Database Design
    Replies: 17
    Last Post: 07-18-2017, 10:26 AM
  3. Replies: 6
    Last Post: 09-14-2015, 06:05 PM
  4. Running total
    By edwardcga in forum Reports
    Replies: 1
    Last Post: 11-28-2013, 12:04 PM
  5. Running total
    By lololthis in forum Queries
    Replies: 5
    Last Post: 06-21-2011, 04:14 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