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
How do I modify textboxes/labels in an asp:repeater footertemplate through javascript (client side)
TypeConverter and multiple data sources used in Property Grid with a dropdown control.
iPhone Exchange Emails
Screen lock/unlock
How to enable workstation users to install software through GPO using SBS 2008
Question about Exchange 2010 mailbox move.
Terminal Service Printers
Page size in sybase
PaperPort 12
Windows 2008 - HP LaserJet 2600n drivers aren't working