Bank Statement

How can i do random balance in ms access? as like attached file
Bank-Statement.xlsx
Mizanur RahmanExicutive AdminAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NerdsOfTechTechnology ScientistCommented:
I assume you meant running balance?

First, you would import the records into a table. Let's call it `account` for these purposes.

I would normalize the transaction to (`Deposite`-`Withdraw`) and obtain the ultimate amount being debited or credited to the account (in query).

You would have to accumulate such transaction history from the beginning or track the balance (such as a daily balance table)

To find the balance of a given date you would use the date as the limiting factor.

Assuming you have no balance tracking table in place you would take the sum of all  (`Deposite`-`Withdraw`) transactions up to a certain date (for this example let's say we want the balance up to 1/6/18):


SQL View:

 SELECT SUM(TransAmt), acctNum
 FROM (
  SELECT  (a.`Deposite` - a.`Withdraw`) as TransAmt
  FROM account a
  WHERE 
  a.`date` <= #1/6/2018#
  AND a.acctNum = '0981234556'
 ) t1
 GROUP BY acctNum

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.