473,469 Members | 1,542 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

wana build bank statement in Acces

2 New Member
hi friends
i am the new member of this forum. i need help in MS Access.
i want to prepare accounts of my company so i want to prepare the record of my bank statement but the problem is that i could not calculate the balance of my table. i have six columns

1 ID
2 Transaction Date
3 Particulars
4 Debit
5 Credit
6 Balance


i want this that when i entered the value in debit or credit then the value in balance will be automatically updated. And automatically add or subtract from the previous balance and show the current balance.

kindly helpme what formula should i use to calculate the balance kindly reply me soon

THANKS IN ADVANCE
Sep 5 '06 #1
3 5063
MMcCarthy
14,534 Recognized Expert Moderator MVP
In form design view go to the textbox control holding Debit Value. Open the properties and in the After Update event build the following code:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Debit_AfterUpdate()
  2. Me.Balance = Me.Credit - Me.Debit
  3. End Sub
  4.  
Do the same on the Credit textbox:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Credit_AfterUpdate()
  2. Me.Balance = Me.Credit - Me.Debit
  3. End Sub
  4.  
hi friends
i am the new member of this forum. i need help in MS Access.
i want to prepare accounts of my company so i want to prepare the record of my bank statement but the problem is that i could not calculate the balance of my table. i have six columns

1 ID
2 Transaction Date
3 Particulars
4 Debit
5 Credit
6 Balance

i want this that when i entered the value in debit or credit then the value in balance will be automatically updated. And automatically add or subtract from the previous balance and show the current balance.

kindly helpme what formula should i use to calculate the balance kindly reply me soon

THANKS IN ADVANCE
Sep 5 '06 #2
ali ammad
2 New Member
well MR. mmccarthy i still have problem Please tell me in detail it shows me the error that the

"MS access cannot find the macro 'Private Sub Debit_AfterUpdate() Me.' "
this macro does not exist or the macro is new and has not been saved.


Plz help and if you can build the Ms Access file then plz attach a file which can calculate the bank statement . HELP

thanking you in advance
Sep 7 '06 #3
MMcCarthy
14,534 Recognized Expert Moderator MVP
Ali I just used this as an example. Go to the control (textbox) on the form that holds the debit value. Go to Properties, events and in the After_Update event put [Event Procedure]. Click on the button with dots to the right and the VBA editor will open. The private sub and End Sub lines will be there just put the code in the middle.



well MR. mmccarthy i still have problem Please tell me in detail it shows me the error that the

"MS access cannot find the macro 'Private Sub Debit_AfterUpdate() Me.' "
this macro does not exist or the macro is new and has not been saved.

Plz help and if you can build the Ms Access file then plz attach a file which can calculate the bank statement . HELP

thanking you in advance
Sep 7 '06 #4

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

Similar topics

2
by: Stefan Reiter | last post by:
Hi, I am trying to validate bank numbers ( the number that identifies a bank) and bank account numbers. Is there a certain algorithm or do you know any generell rules like how long the...
10
by: Douglas Buchanan | last post by:
I am using the following code instead of a very lengthly select case statement. (I have a lot of lookup tables in a settings form that are selected from a ListBox. The data adapters are given a...
1
by: TTD_hck | last post by:
Hello, I need suggestions for the following. I have a acces 97 database and with a script command in acces 97, I can e-mail a file via outllok. I do this with the folowing command in Acces 97:...
6
by: Thapliyal, Deepak | last post by:
Hi, Assume I have a bank app.. When customer withdraws $10 from his accouint I have to do following --> update account_summary table --> update account detail_table Requirement: either...
0
by: malcolm | last post by:
Bank Charges Refunded Free help to recover your bank or credit card charges from www.bankchargesrefunded.co.uk Its your money and its better in your pocket!
6
by: chsadaki | last post by:
Hello I have a problem in retrieving a row form a table that I created in mysql db. I insert these values in the table 'Bell',password('123'). But the problem is in my php application I cant...
8
by: joakim.hove | last post by:
Hello, is it possible in python to include another python source file into the current namespace, i.e.completely analogous to the #include statement in C. Regards Joakim
3
by: alexquisi | last post by:
Hi, I am newbie in optimization techniques and I need a little of help. I want to take adventage of the open bank and open row policy available in the processor (it can keep 4 banks open per...
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. ...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.