Microsoft
Software
Hardware
Network
Question : Calculate Running Total in a New Field
I am trying to calculate the running sum and saving the results in a new field either in the same table or a new one.
To help explain, I've attached sample DB with the original table (tblTestData) and the desired output (Desired Output). Basically - for each change in field PARE, calculate the running sum QTY_ONHAND - REQ_QTY and store in field called Balance.
The table is sorted by PART and DUE_DATE.
I've also attached Excel file with function logic used to calculate the desired results. Looking for something similar to do in Access.
Prefer a solution using queries/macros as I am not very strong w/VBA but could manage if it is not too complicated.
Thanks.
Attachments:
Desired-Result.xlsx
(26 KB)
(File Type Details)
Excel File with logic to calculate running total
TestDB3.accdb
(13.7 MB)
(File Type Details)
Sample Access Database with data
Answer : Calculate Running Total in a New Field
This tutorial may be useful
http://www.businessobjects
.com/globa
l/pdf/dev_
zone/
VS200
5_Walkthro
ughs.pdf
mlmcc
Random Solutions
Migrating files/folders to a new domain
Is exercising in an air conditionedroom a good idea?
Schedule Task "Could not start"
changing external server name.. do I need to change anything in Outlook
Calling IE to run on second monitor in batch file log in script
How to find and replace specific string with blank using sed or any better cmd?
Help with Lucene query in Alfresco
How to access class due to 'cannot instantiate abstract class' error
IF - Then script based on file date?
loop an array in an array and insert into db