New to Access, should be a simple question to answer

jyantiss

New Member
Joined
Feb 18, 2004
Messages
43
Hello,

This is my first Access project, I'm trying build a Budget and I'm working on an account database that has your basic fields... Date, Check Number, Deposit Amount, Payment Amount, To, For, etc...

My problem is that I need a field, I would assume in a query, that would allow me to take the Deposit Amounts - the Payment Amounts to give me an Account Balance. I can do this by summing the two categories in one query and then subtracting them in another, but what I really want is for the balance to change for each line of data.

If it was in excel, I would just write =A2-B2+C1 (in C2) and copy it down where column A = Deposits and B = Payments and C = Account Balance.

Is there a way to do this in Access?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
What you should probably do is combine the two fields Deposit Amount and Payment Amount into the same field with +/- indicating whether it is a Deposit/Payment.

Then you could use a query to sum the new 'Payment' Field to give you the Account Balance.

That should work if you only want the final Account Balance but would not give you a Running Balance.
 
Upvote 0
Norie's approach will work, but if you want to keep Credits and Debits separate, do this:
In a query, go to the first blank field and enter this expression --

ClosingBalance:[OpeningBalance]+[Deposits]-[Withdrawals]
This creates a calculated field with the name ClosingBalance
Adjust to suit your field names.
Denis
 
Upvote 0

Forum statistics

Threads
1,221,808
Messages
6,162,097
Members
451,742
Latest member
JuanMark10

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top