473,407 Members | 2,314 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Account ledger running balance in a report

78
I have a standard Transactions table with debits and credit. I need a report that shows a running balance after each transaction. In Excel, this would be something like the following (B: Debits, C: Credits, D: Balance) D5=D4-B5+C5. I've seen how to do sums in reports, but not sure how to incorporate adding and subtracting at the row level. Thanks.
Jun 13 '08 #1
3 6362
Stewart Ross
2,545 Expert Mod 2GB
Not so easy, this one, as in Excel it is very natural to refer to the previous balance (D4 in your example) - but in SQL there is no concept of row position, so extracting the previous balance to form a running sum of balances is tricky.

It is a simple matter to sum a whole group, but providing a running SUM showing the changing balance for each transaction involves joining a table back to itself on the last transaction somehow, and is not one for which an easy solution comes to mind. It can be done, but there has to be some means to join the tables by 'staggering' the rows using transaction dates or identifiers to imply the order so that the current joins the previous, the previous the one before, and so on.

Do you really need this in Access? If you do, and you can't live without it, we will need the metadata (the field names, types and keys involved) for the table concerned to play with some SQL and see what happens.

-Stewart
Jun 13 '08 #2
kpfunf
78
I didn't really think about it, but I can just export the data to Excel. It isn't for something very formal, so I don't need to make a fancy report.
Jun 13 '08 #3
NeoPa
32,556 Expert Mod 16PB
Actually it should be fairly simple.

Queries don't support this facility, but TextBox controls in Access Reports have the Running Sum attribute. This typically works within a group, but if it's required to work across multiple groups then a little imagination is all that's required to make it work ;)
Jun 16 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Andreas Pauley | last post by:
Hi All, Our company is currently evaluating Python as a language for writing financial/accounting type software (among others). What libraries or packages are available in this domain for use?...
17
by: Igorati | last post by:
Hello all, I am still needing some help on this code, I have gone a bit further on it. Thank you for the help. I am trying to understand how to make the file searchable and how I am to make the...
1
by: Tom Brown | last post by:
I have a report I created which pulls all data by month by category and gives me running totals month by month. My problem is I need the ending balance running total to move down to the next line...
4
by: rehan796 | last post by:
I m at the last stage of my project but i am now struck in ledger . my complete project is in MS Access 2003 and i dont know how to make ledger by using the opening balance and subtracting the firts...
1
by: ryann18 | last post by:
Can someone please help with this modifying Account problem!?!?! Modify the Account class so that it also permits an account to be opened with just a name and an account number, assuming an...
3
by: strvariant | last post by:
I am currently working on a system that applies payments to an account. Here is an example of how the data looks Acct TransactionAmount PaymentAmount 1234 100.00 ...
2
by: cheongsiwei | last post by:
Need some helps here >.< The project i required to complete : Create a base class Bank of a bank account with member functions to allow withdrawal, deposit and calculation of balance. ...
0
by: muddasirmunir | last post by:
i want know how to make ledger by using the opening balance add debit balance to it and then subtracting the credit value from it and then show the balance as it happens in ledger. please help...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.