Download - SYSTEM V.B
-
8/8/2019 SYSTEM V.B
1/69
Bank Management System
PROJECT
on
Bank Management System
Submitted in the partial fulfillment for the award of the degree ofBACHELOR OF BUSINESS ADMINISTRATION
Under the Supervision of: Submitted by:Mrs. Rashmi Sachin Bansal
Ranjit SamalShirish Magan
Anas-Ul-HaqBBA Vth Semester
(Morning Shift)
SESSION: 2009 - 2010TECNIA INSTITUTE OF ADVANCED STUDIES
(Approved by AICTE, Ministry of HRD, Govt. of India)Affiliated To Guru Gobind Singh Indraprastha University, Delhi
INSTITUTIONAL AREA, MADHUBAN CHOWK, ROHINI, DELHI- 110085E-Mail:[email protected], Website: www.tecniaindia.org
Fax No: 27555120, Tel: 27555121-24
1
http://www.tecniaindia.org/http://www.tecniaindia.org/ -
8/8/2019 SYSTEM V.B
2/69
Bank Management System
Acknowledgement
Preservation, Inspiration & Motivation have always played a key role in the success
of any organization. In the present world of competition & success, dissertation is like
a bridge between theoretical & practical working. Willingly, I have prepared this
dissertation. First of all I would like to thank the almighty God, who is obviously the
one who has always guided me to work on the right path of life.
I would like to thank the my faculty Mrs. Rashmi for helping me out during
the whole period in making Synopsis-to-The Major Project & correcting all the
mistakes in them.
My special thanks are due towards for their sincere advice & whole-hearted
co-operation & support.
At last, but not the least, my warmest thanks goes to my Parents, Friends & the
other college staff for their support.
Sachin BansalRanjit SamalShirish MaganAnas Ul-Haq
2
-
8/8/2019 SYSTEM V.B
3/69
Bank Management System
CERTIFICATE
This is to certify that the project titled _Bank Management
System____ ________________ _______________
___________ is a bonafied work carried out by Mr./ Ms. _Sachin
Bansal, Ranjit Samal, Shirish, Anas ____________
_________________ in partial execution of the requirement for the
award of the degree of _____B.B.A___________ ____________
____________ from I.P.__________ _______________
______________ University under the guidance and direction.
Internal guide:
3
-
8/8/2019 SYSTEM V.B
4/69
Bank Management System
INDEX
S.No. Report
1. Acknowledgement
2. Certificate
3 Introduction
4. Objective
5. Recognition Of Need
6. Feasibility Study
7. Analysis and Design
8. Coding
9. Screenshot
10. Biblography
4
-
8/8/2019 SYSTEM V.B
5/69
Bank Management System
INTRODUCTION
During the past several decades personnel function has been transformed from
a relatively obscure record keeping staff to central and top level management
function. There are many factors that have influenced this transformation like
technological advances, professionalism, and general recognition of human beings as
most important resources.
A computer based management system is designed to handle all the primary
information required to calculate monthly statements of customer account which
include monthly statement of any month. Separate database is maintained to handle all
the details required for the correct statement calculation and generation.
This project intends to introduce more user friendliness in the various
activities such as record updation, maintenance, and searching. The searching of
record has been made quite simple as all the details of the customer can be obtained
by simply keying in the identification or account number of that customer. Similarly,
record maintenance and updation can also be accomplished by using the account
number with all the details being automatically generated. These details are also being
promptly automatically updated in the master file thus keeping the record absolutely
up-to-date.
The entire information has maintained in the database or Files and whoever
wants to retrieve cant retrieve, only authorization user can retrieve the necessary
information which can be easily be accessible from the file.
5
-
8/8/2019 SYSTEM V.B
6/69
Bank Management System
Objective of the Project
A computer based management system is designed to handle all the primary
information required to calculate monthly statements of customer account which
include monthly statement of any month. Separate database is maintained to handle all
the details required for the correct statement calculation and generation.
This project intends to introduce more user friendliness in the various
activities such as record updation, maintenance, and searching. The searching of
record has been made quite simple as all the details of the customer can be obtained
by simply keying in the identification or account number of that customer. Similarly,
record maintenance and updation can also be accomplished by using the account
number with all the details being automatically generated. These details are also being
promptly automatically updated in the master file thus keeping the record absolutely
up-to-date.
The main objective of our project is providing the different typed of customers
facility, the main objective of this system is to find out the actual customer service.
Etc.
It should fulfill almost all the process requirements of any Bank.
It should be user friendly.
It should increase the productivity of bank by utilizing the
working hours more and more, with minimum manpower.
This project includes the entire upgraded feature required for the
computerization banking system. This system is very easy to use, so that any user can
use without getting pre-knowledge about this. Its very much user friendly and meet
almost all daily working process requirements. This system is completely GUI based
and can be use by mouse and as well as keyboard. This system is melded in such a
way that has got all features to upgrade without making much change in existing
components.
The entire information has maintained in the database or Files and whoever
wants to retrieve cant retrieve, only authorization user can retrieve the necessary
information which can be easily be accessible from the file.
6
-
8/8/2019 SYSTEM V.B
7/69
Bank Management System
Recognition Of Need
7
-
8/8/2019 SYSTEM V.B
8/69
Bank Management System
It has been noticed that more friendliness is required in the various activities
such as record updation, maintenance, and searching. The searching of record has
been made quite simple as all the details of the customer can be obtained by simply
keying in the identification or account number of that customer. Similarly, record
maintenance and updation can also be accomplished by using the account number
with all the details being automatically generated. These details are also being
promptly automatically updated in the master file thus keeping the record absolutely
up-to-date.
Even searching of the record needed to be made quite simple as all the details
of the customer can be obtained by simply keying in the identification or account
number of that customer. Similarly, record maintenance and updation can also be
accomplished by using the account number with all the details being automatically
generated.
These details are also being promptly automatically updated in the master file thus
keeping the record absolutely up-to-date.
Therefore a system was required in such a way that has got all features to
upgrade without making much change in existing components.
FEASIBILITY STUDY
8
-
8/8/2019 SYSTEM V.B
9/69
Bank Management System
Inconsistent as it is, try to mimic Visual Basic's own error handling scheme as
much as possible.
When you call a Visual Basic routine that can fail, what is the standard way
that the routine signals the failure to you? It probably won't be via a return value. If it
were, procedures, for one, would have trouble signaling failure. Most (but not all)
routines raise an error (an exception) when they want to signal failure. (This applies to
procedures, functions, and methods.) For example, Create Objectraises an exception
if it cannot create an objectfor whatever reason; Open does the same if it cannot
open a file for you. (Not all routines raise such exceptions. For example, the Choose
function returns Null [thus, it requires a Variantto hold its return value just in case it
ever fails]if you index into itincorrectly.) In other words, if a routine works correctly,
this fact is signaled to the caller by the absence of any error condition.
Routines such as Open work like this primarily so that they can be used more
flexibly. For example, by not handling the error internally, perhaps by prompting the
user in some way, the caller is free to handle errors in the most suitable way.
:
Information stored in file systems for Windows NT or UNIX
Indexed-sequential files
E-mail systems such as Exchange
COM and Visual Basic
As you define the functionality required by your application, look for places
where you can use pre-existing COM components instead of having to write the code
to implement a given functionality yourself. For example, you could create a function
9
-
8/8/2019 SYSTEM V.B
10/69
Bank Management System
procedure that logs a user into a server. In your corporation, you may be required to
include this procedure in every application you create. Instead of adding this code to
every program, you can implement this logon procedure in a COM component that
can be easily reused from project to project.
There are many reasons to use COM components in an application, including:
Reusability
Once you create a COM component, other developers can use it. This enables
easy access to your component's features in other applications without
requiring developers to write extensive code.
Reduced complexity
You can create a COM component to hide programming complexity from
other programmers. Other programmers need only know what information to
provide to your component, and what information to retrieve.
Easier updating
Components make it easier for you to revise and update your applications. For
example, you can create a COM component that encapsulates business rules. If
the business rules change, you update just the component, not all the
applications that use the component.
When you use COM components in a Visual Basic project, you do not have to
understand all of the mechanics involved in making these components work together.
It is more important to know how to use the component that adds the functionality youneed to your application. You can find detailed information about COM at
http://www.microsoft.com/com/default.asp.
10
http://www.microsoft.com/com/default.asphttp://www.microsoft.com/com/default.asp -
8/8/2019 SYSTEM V.B
11/69
Bank Management System
Class Modules
Class modules (.cls files) are the foundation of object-oriented programming
in Visual Basic. They are analogous to a blueprint for a house. Just as a house is built
from a blueprint, new objects are created from class modules. These new objects
include your own customized properties and methods.
A class module is similar to a standard code module (.bas file) because both
contain functionality that can be used by other modules within the application. The
difference is that a class module provides functionality in the form of an object:
Data in a standard module has program scope, which means that it exists for
the life of your program.
Class module data exists for each object that is created from the class. Each
object's data exists only for the lifetime of the object; it is created when the
object is created, and destroyed when the object is destroyed.
Variables declared as public in a standard module are visible from anywhere
in your project. Variables declared as public in a class module can only be
accessed by referencing a particular instance of a class or object.
Most commonly, class modules exist in code components. A code component
can be thought of as a container for multiple classes. For example, you could create a
"vehicles" code component that contains multiple classes; these classes can be used to
create objects such as cars, trucks, and vans. A client application uses a code
component by creating an object from one of the classes the component provides, and
invoking the object's properties, methods, and events.
Creating COM Components With Visual Basic
The greatest benefit of COM is the ability to create COM components that can
be easily implemented in many applications. A COM component is a unit of
executable code, such as an .exe, .dll, or .ocx file that follows the COM
specification for creating objects. These are created from class modules in
11
-
8/8/2019 SYSTEM V.B
12/69
Bank Management System
Visual Basic. A COM component exposes objects that can be used by other
applications. Visual Basic
12
-
8/8/2019 SYSTEM V.B
13/69
Bank Management System
TOOLS & ENVIRONMENT
The platform is the hardware and software combination that the Client/Server
runs on. While hardware systems vary widely in features and capabilities, certain
common features are needed for the operating system software.
Hardware Specifications
Hardware is a set of physical components, which performs the functions of
applying appropriate, predefined instructions. In other words, one can say that
electronic and mechanical parts of computer constitute hardware.
This package is designed on a powerful programming language Visual Basic.
It is a powerful Graphical User Interface. The backend is ACCESS, which is used to
maintain database. It can run on almost all the popular microcomputers. The
following are the minimum hardware specifications to runthis package: -
Hardware requirement:
Personal Computer: -It minimum contains P-III
processor with 128 MB RAM.
Software Requirements:
The software is a set of procedures of coded information or a
program which when fed into the computer h ardware, enables the compu ter
to perform the various tasks. Software is like a current inside the wire,
which cannot be seen but its effect can be felt.
1. Operating System:- Windows NT / 2000 / XP
2. Application Software:- Application software uses front end visual basic and
database access etc.
Editor:- Visual basic.
13
-
8/8/2019 SYSTEM V.B
14/69
Bank Management System
Analysis & Design
A complete structure of the program
Analysis
To develop software which maintains all the record of day to day -Open Account,
Close or Edit Account, Monthly Statement, Bank summary and Transaction detail
etc. All the record and information is going to be store in Microsoft AccessDatabase
Draw the following conclusion:-
The project consists of four parts mainly
1. Open Account: -
It consists of new bank account form. A consist new enquiryinformation who come to the bank for enquiry about new account (saving, current).
Then he or she fill up the new account form according to their account number
generated automatically and also generate cheui no automatically.
2. Close or Edit Account:-
It consists or provides editing and closing account form and also such
particular account information.
3. Monthly Statement: -
It consists of two sided form monthly statement of bank employee and
monthly statement of saving and current account employee.
4. Bank Summary: -
14
-
8/8/2019 SYSTEM V.B
15/69
Bank Management System
It consists of all information detail of bank employee account
transaction detail summary, recode of all branches and also record of draft and chewy.
15
-
8/8/2019 SYSTEM V.B
16/69
Bank Management System
Program Structure
The detail structure and description of table are as follows:
Table Structure and Description:
1. Accoun t: -
Account
Fieldname Field Type
Field size Constraint
Actno Number Long int Primary
Name Text 50
Address Text 50
Phone Number Double
Act type Text 20
City Text 50
Date Date/time Medium
dateChequebook Yes/no
16
-
8/8/2019 SYSTEM V.B
17/69
Bank Management System
This table is used to maintain open account details. Where employee come
from new account. Which keep all information about employee. Here act no define
primary key.
17
-
8/8/2019 SYSTEM V.B
18/69
Bank Management System
ii. Account Type: -
Account type
Fieldname Field type Field size Constraint
Type code Text 50
Type name Text 50
Int rate Number Default
This table is used for which type of account opens a employee, type of account
saving or current account and also give a account type code.
iii. Balance table: -
This table the balance of all type of account, saving or current account.
Balance table
Field
name
Field type Field size Constraint
Actno Number Default
Balance Number Long
int
18
-
8/8/2019 SYSTEM V.B
19/69
Bank Management System
iv. Cheque Table: -
Cheque table
Field name Field type Field size Constraint
Actno Number Default
No _from Number Default
No _to Number Default
This table content all account detail and if you open new account and chose
cheque option so give cheque no of your account.
v. Pass table: -
Pass table
Field name Field type Field size Constraint
Name Text 50
Pswd Text 50
vi. Tamp Table: -
Tamp table
Field name Field type Field size Constraint
Actno Number Long int
Temp type Text 50
Ckequeno Number Long int
Amount Number Long int
Date Date/time
This table show the tamp let of all account information and transaction of per day of bank.
19
-
8/8/2019 SYSTEM V.B
20/69
Bank Management System
Vii. Transaction.1 table: -
Transaction table
Field name Field type Field size Constraint
Actno Number Long int Primary
Tran type Text 50
Amount Number Long int
act Type Text 50
Chequeno Number Long int
Date Date/time Default
Time Date/time Default
This table contains all per day transaction of bank and also summarized all
money transaction updating and editing.
20
-
8/8/2019 SYSTEM V.B
21/69
Bank Management System
Data structure
Diagram (Design) :- Designing if system demonstrates the exact flow of I-P-
O cycle of the system. I-P-O cycle is Input-Process-Output cycle of the system, wherewe need to define what are input we need to take to produced the output, which is our
requirements. According to this input and output we design the processing phase.
There are lot of category define to design the system few of them are begin discus
here.
21
-
8/8/2019 SYSTEM V.B
22/69
Bank Management System
Data Flow Diagram: -
Fills enquiry Request for
Form New Account
Provide Account Type
Send
New
Account
Request.
Newcustomer EnquiryNew
Account
Control
Management
22
-
8/8/2019 SYSTEM V.B
23/69
Bank Management System
Provide Account Number / Cheque Number
Account Details
CODING
Account
Process
23
-
8/8/2019 SYSTEM V.B
24/69
Bank Management System
_____________________________________________________________________
24
-
8/8/2019 SYSTEM V.B
25/69
Bank Management System
Component: Flash form
Form Name: Frmflase.frm
Code: ---
___________________________________________________________________________________
___
Private Sub Form_Click()
Unload Me
LoginForm.Show 1
'Form6.Show
End Sub
Private Sub Form_Load()
Timer1.Interval = 3000
End Sub
Private Sub Timer1_Timer()
Unload Me
LoginForm.Show 1
'Form6.Show
End Sub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~
Login Form:--
25
-
8/8/2019 SYSTEM V.B
26/69
Bank Management System
___________________________________________________________________________________
_
Component : Login form
Form Name :FrmLogin
Code :--
Dim rs As New ADODB.Recordset
Private Sub CancelButton_Click()
Unload Me
End Sub
Private Sub Form_Load()
rs.ActiveConnection = cn
26
-
8/8/2019 SYSTEM V.B
27/69
Bank Management System
If rs.State = 1 Then rs.Close
rs.CursorLocation = adUseClient
rs.CursorType = adOpenKeyset
rs.LockType = adLockOptimistic
rs.Open "select * from Pass"
rs.MoveFirst
While Not rs.EOF = True
Combo1.AddItem rs(0)
rs.MoveNext
Wend
Combo1.ListIndex = 0
End Sub
Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)
End Sub
Private Sub OkButton_Click()
If rs.State = 1 Then rs.Close
rs.Open "select pswd from pass where name = '" & Combo1.Text & "'"
If rs!pswd = Text1.Text Then
Me.Caption = "Password Success"
GoTo 1
Else
Me.Caption = "Invalid Password"
Text1.Text = " "
Text1.SetFocus
Exit Sub
End If
1:
Call ShowForm
End Sub
27
-
8/8/2019 SYSTEM V.B
28/69
Bank Management System
Private Sub ShowForm()
If Combo1.Text = "Employee" Then
Unload Me
Form1.Show
Form1.BnkButton.Enabled = False
ElseIf Combo1.Text = "Guest" Then
Unload Me
Form1.Show
Form1.AcButton.Enabled = False
Form1.BnkButton.Enabled = False
Form1.TrButton.Enabled = False
Form1.AcClButton.Enabled = False
ElseIf Combo1.Text = "Manager" Then
Unload Me
Permission = 1 'For Account Permission Clos account
Form1.Show
End If
End Sub
28
-
8/8/2019 SYSTEM V.B
29/69
Bank Management System
Main Form:--
___________________________________________________________________________________
_
Component : Main form
Form Name frmMain
29
-
8/8/2019 SYSTEM V.B
30/69
Bank Management System
Coding :---
___________________________________________________________________________________
___
Private Sub AcButton_Click()
'Unload Me
Form2.Top = 3000
Form2.Left = 4000
Form2.Show
End Sub
Private Sub AcClButton_Click()
'Unload Me
Form3.Top = 3000
Form3.Left = 4000
Form3.Show
End Sub
Private Sub BackButton_Click()
'Unload Me
LoginForm.Top = 3000
LoginForm.Left = 4000
LoginForm.Show
End Sub
Private Sub BnkButton_Click()
'Unload Me
Form5.Top = 3000
Form5.Left = 4000
Form5.Show
End Sub
30
-
8/8/2019 SYSTEM V.B
31/69
Bank Management System
Private Sub ExButton_Click()
Unload Me
End Sub
Private Sub Picture1_Click()
End Sub
Private Sub StmtButton_Click()
'Unload Me
Form6.Top = 3000
Form6.Left = 4000
Form6.Show
End Sub
Private Sub TrButton_Click()
'Unload Me
Form4.Top = 3000
Form4.Left = 4000
Form4.Show
End Sub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~
Open Account Form:--
31
-
8/8/2019 SYSTEM V.B
32/69
Bank Management System
___________________________________________________________________________________
___
Component : Open Account Form
Form name Frmopen
Coding :-
___________________________________________________________________________________
___
Dim rs As New ADODB.Recordset
Dim MaxNo As Long
32
-
8/8/2019 SYSTEM V.B
33/69
Bank Management System
Dim a As Integer
Private Sub Check1_Click()
End Sub
Private Sub Command1_Click()
Dim sstr, s As String
Dim rst As New ADODB.Recordset
rst.Open "Select max(actno) from Account", cn, adOpenKeyset, adLockOptimistic,
cmdtext
a = rst(0) + 1
If CheckField = True Then
s = Text1.Text
If Check1.Value = 1 Then
sstr = "insert into account "
sstr = sstr + "values(" & a & ",'" & Text1.Text & "', '" & Text3.Text & "', "
sstr = sstr + " " & Text2.Text & " ,'" & Combo1.Text & "' ,'" & Text6.Text
& "','" & Date & "',YES)"
cn.Execute sstr
MsgBox "Account Created " & "Account Number = " & a, vbInformation, a
Call UpdateCheque
MsgBox "Ur Cheque No is from " & MaxNo & " To " & MaxNo + 10,
vbInformation
StatusBar1.Panels(2).Text = "Cheque No " & MaxNo & " - " & MaxNo +
10
ElseIf Check1.Value = 0 Then
sstr = "insert into account "
sstr = sstr + "values(" & a & ",'" & Text1.Text & "', '" & Text3.Text & "', "
sstr = sstr + " " & Text2.Text & " ,'" & Combo1.Text & "' ,'" & Text6.Text
& "','" & Date & "',NO)"
cn.Execute sstr
MsgBox "Account Created " & "Account Number = " & a, vbInformation, a
33
-
8/8/2019 SYSTEM V.B
34/69
Bank Management System
StatusBar1.Panels(2).Text = "Cheque Book Not Issued"
End If
Call AddDeposite
StatusBar1.Panels(1).Text = "Hello " & s & " " & a
Call ClearField
End If
rst.Close
End Sub
Private Sub AddDeposite()
Dim s As String
s = "insert into BalanceTable values "
s = s + "(" & a & "," & Text5.Text & ")"
cn.Execute s
End Sub
Private Function CheckField() As Boolean
If Text1.Text = "" Then
MsgBox " Enter Name Please "
Text1.SetFocus
CheckField = False
ElseIf Text3.Text = "" Then
MsgBox " Enter Address please "
Text3.SetFocus
CheckField = False
ElseIf Text5.Text = "" Then
MsgBox "Balance Should deposite"
Text5.SetFocus
CheckField = False
ElseIf Check1.Value = 1 Then
If Not Val(Text5.Text) >= 1500 Then
MsgBox "Minimum Balance Should be 1500"
CheckField = False
34
-
8/8/2019 SYSTEM V.B
35/69
Bank Management System
Else
CheckField = True
End If
ElseIf Check1.Value = 0 Then
If Not Val(Text5.Text) >= 500 Then
MsgBox "Minimum Balance Should be 500"
CheckField = False
Else
CheckField = True
End If
Else
CheckField = True
End If
End Function
Private Sub Command2_Click()
Call ClearField
End Sub
Sub ClearField()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text5.Text = ""
Me.Text6.Text = ""
Check1.Value = 0
End Sub
Private Sub Command3_Click()
Unload Me
'Form1.Show 1
End Sub
Private Sub Command4_Click()
Unload Me
35
-
8/8/2019 SYSTEM V.B
36/69
Bank Management System
End Sub
Private Sub UpdateCheque()
Dim rst As New ADODB.Recordset
rst.CursorLocation = adUseClient
rst.Open "select max(NoTo) from cheque", cn, adOpenKeyset, adLockOptimistic
If rst.RecordCount > 0 Then
If Not rst.EOF Then
MaxNo = Val(rst.Fields(0)) + 1
Else
MaxNo = 1234
End If
Else
MaxNo = 1234
End If
cn.Execute "insert into cheque(Actno,NoForm,NoTo)values(" & a & "," & MaxNo
& "," & MaxNo + 10 & ")"
rst.Close
End Sub
Private Sub Form_Load()
Text4.Caption = Date$
Label6.Caption = Time()
If rs.State = 1 Then rs.Close
rs.Open "select * from AccountType", cn, adOpenKeyset, adLockOptimistic,
cmdtext
rs.MoveFirst
While Not rs.EOF
Combo1.AddItem rs(1)
rs.MoveNext
Wend
Combo1.ListIndex = 0
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
36
-
8/8/2019 SYSTEM V.B
37/69
Bank Management System
If Chr(KeyAscii) Like "[0-9]" Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Text5_KeyPress(KeyAscii As Integer)
If Chr(KeyAscii) Like "[0-9]" Or KeyAscii = 8 Then
Else
KeyAscii = 0
End If
End Sub
Private Sub Timer1_Timer()
Label6.Caption = Time()
End Sub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~
Edit Or Delete Account Form:--
37
-
8/8/2019 SYSTEM V.B
38/69
Bank Management System
___________________________________________________________________________________
__
Component : Edit and close Account Form
Form Name : frmEditAct
Coding :-
___________________________________________________________________________________
___
Dim rs As New ADODB.Recordset
'----------------------------------------
'Close account form to close account
38
-
8/8/2019 SYSTEM V.B
39/69
-
8/8/2019 SYSTEM V.B
40/69
Bank Management System
MsgBox "Account Close "
rs.Requery
End If
Else
MsgBox "U dont have Permission to Close Account ", vbInformation, "Close
Account"
End If
End Sub
Private Sub CmdFirst_Click()
If rs.RecordCount > 0 Then
rs.MoveFirst
End If
If rs.BOF Then
MsgBox "You Are Onto The First Record"
Else
Call FillRecord(rs)
End If
End Sub
Private Sub CmdLast_Click()
If rs.RecordCount > 0 Then
rs.MoveLast
End If
If rs.EOF = True Then
MsgBox "You Are Onto The Last Record"
Else
rs.MoveLast
Call FillRecord(rs)
Exit Sub
End If
End Sub
40
-
8/8/2019 SYSTEM V.B
41/69
-
8/8/2019 SYSTEM V.B
42/69
Bank Management System
Private Sub CmdUpdate_Click()
Dim stmt As String
stmt = "update Account set nam = '" & Text1.Text & "' , "
stmt = stmt + " address = '" & Text4.Text & "' ,"
stmt = stmt + " phone = " & Text2.Text & " , "
stmt = stmt + " Actype = '" & Text3.Text & "' where "
stmt = stmt + "actno = " & Combo1.Text & " "
cn.Execute stmt
MsgBox "Update Succeed ", vbInformation, "Saving Record"
rs.Requery
End Sub
Private Sub Combo1_Click()
' This is for navigate through combo box
Dim rs1 As New ADODB.Recordset
If rs1.State = 1 Then rs.Close
rs1.Open "select * from Account where actno= " & Combo1.Text & " ", cn,
adOpenKeyset, adLockOptimistic, adCmdText
If rs1.RecordCount > 0 Then
Call FillRecord(rs1)
End If
rs1.Close
End Sub
Private Sub Command1_Click() 'Issue Cheque book
Dim stmt As String
Dim rst As New ADODB.Recordset
If Check1.Value = 0 Then
If rst.State = 1 Then rst.Close
rst.Open "select max(noto) from Cheque", cn, adOpenKeyset, adLockOptimistic,
cmdtext
Dim MaxNo As Long
If rst.RecordCount > 0 Then
42
-
8/8/2019 SYSTEM V.B
43/69
Bank Management System
MaxNo = rst(0)
MaxNo = MaxNo + 1
stmt = "insert into Cheque values ("
stmt = stmt + "" & Combo1.Text & ", " & MaxNo & "," & MaxNo + 10 & ")"
cn.Execute stmt
' This is to update in the account master table
stmt = "update account set ChequeBook = YES where "
stmt = stmt + "actno = " & Combo1.Text & ""
cn.Execute stmt
MsgBox "Cheque book created form " & MaxNo & " To " & MaxNo + 10
StatusBar1.Panels(1).Text = "Cheque book created form " &
MaxNo & " To " & MaxNo + 10
rs.Requery
'This is to move record to the first position
If rs.RecordCount > 0 Then
rs.MoveFirst
End If
If rs.BOF Then
MsgBox "You Are Onto The First Record"
Else
Call FillRecord(rs)
End If
End If
Else
Dim ch As String
ch = MsgBox("Cheque Already Issued if cheque last then click yes", vbYesNo)
If ch = vbYes Then
stmt = "delete from Cheque where actno = " & Combo1.Text & ""
cn.Execute stmt
If rst.State = 1 Then rst.Close
rst.Open "select max(NoTo) from Cheque", cn, adOpenKeyset,
adLockOptimistic, cmdtext
If rst.RecordCount > 0 Then
43
-
8/8/2019 SYSTEM V.B
44/69
Bank Management System
'Dim MaxNo As Long
MaxNo = rst(0)
MaxNo = MaxNo + 1
stmt = "insert into Cheque values ("
stmt = stmt + "" & Combo1.Text & ", " & MaxNo & "," & MaxNo + 10 & ")"
cn.Execute stmt
'This is to update in the acccount master table
stmt = "update account set ChequeBook = YES where "
stmt = stmt + "actno = " & Combo1.Text & ""
cn.Execute stmt
MsgBox "Cheque book created form " & MaxNo & " To " & MaxNo + 10
StatusBar1.Panels(1).Text = "Cheque book created form " & MaxNo & " To "
& MaxNo + 10
rs.Requery
'This is to move record to the first position
If rs.RecordCount > 0 Then
rs.MoveFirst
End If
If rs.BOF Then
MsgBox "You Are Onto The First Record"
Else
Call FillRecord(rs)
End If
End If
End If
End If
End Sub
Private Sub Form_Load()
rs.ActiveConnection = cn
If rs.State = 1 Then rs.Close
rs.CursorLocation = adUseClient
44
-
8/8/2019 SYSTEM V.B
45/69
Bank Management System
rs.CursorType = adOpenKeyset
rs.LockType = adLockOptimistic
rs.Open "select * from Account order by actno"
If Not rs.BOF Then rs.MoveFirst
While Not rs.EOF
Combo1.AddItem rs!actno
rs.MoveNext
Wend
If Not rs.BOF Then rs.MoveFirst
If rs.RecordCount > 0 Then
Call FillRecord(rs)
End If
End Sub
'************************************************
'Fill Record in the Form Controls
Private Sub FillRecord(rs As ADODB.Recordset)
Dim i As Integer
Dim a
Dim rsB As New ADODB.Recordset
If rs.RecordCount > 0 Then
For i = 0 To Combo1.ListCount - 1
If Combo1.List(i) = Trim(rs!actno) Then
Combo1.ListIndex = i
Exit For
End If
Next
End If
a = rs!actno
Text1.Text = rs!Nam
Text2.Text = rs!phone
Text3.Text = rs!actype
Text4.Text = rs!address
45
-
8/8/2019 SYSTEM V.B
46/69
Bank Management System
Text6.Text = rs!Date
'Fill in the check box
If rs!ChequeBook = True Then
Check1.Value = 1
Else
Check1.Value = 0
End If
'To get the balance from Balance Table
If rsB.State = 1 Then rsB.Close
rsB.Open "select * from BalanceTable where actno = " & a & "", cn,
adOpenKeyset, adLockOptimistic, cmdtext
Text5.Text = rsB!balance
End Sub
Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)
End Sub
Amount Transaction Form:--
46
-
8/8/2019 SYSTEM V.B
47/69
Bank Management System
47
-
8/8/2019 SYSTEM V.B
48/69
Bank Management System
_____________________________________________________________________
__
Component :Amount Transaction form
Form Name : frmtran
Code :-
Dim rs As New ADODB.Recordset
Dim a As Boolean 'To check the balance is greater or less
Private Sub Combo2_Click()
If Combo2.ListIndex = 0 Then
'withdraw
Combo3.Clear
Combo3.AddItem "Cheque"
Combo3.AddItem "Withdrawl"
Combo3.ListIndex = 0
ElseIf Combo2.ListIndex = 1 Then
'Deposit
Combo3.Clear
Combo3.AddItem "Draft"
Combo3.AddItem "Cash"
Combo3.AddItem "Cheque"Combo3.ListIndex = 0
End If
End Sub
Private Sub Combo3_Click()
If Combo3.Text = "Cheque" Or Combo3.Text = "Draft" Then
Text2.Enabled = True
48
-
8/8/2019 SYSTEM V.B
49/69
Bank Management System
Else
Text2.Enabled = False
End If
End Sub
'This procedure is to check that the cheque number
'Which is entered is correct or not
Private Function CheqTest() As Boolean
If Not Combo2.Text = "Deposite" Then
Dim rst As New ADODB.Recordset
rst.ActiveConnection = cn
If rst.State = 1 Then rst.Close
rst.CursorLocation = adUseClient
rst.CursorType = adOpenKeyset
rst.LockType = adLockOptimistic
rst.Open "select * from account where actno = " & Combo1.Text & ""
If rst!ChequeBook = True Then
If Not Text2.Text = "" Then
If rst.State = 1 Then rst.Close
rst.Open "select * from Cheque where actno = " & Combo1.Text & " "
If rst.RecordCount > 0 Then
If Text2.Text >= rst(1) And Text2.Text
-
8/8/2019 SYSTEM V.B
50/69
Bank Management System
CheqTest = False
Exit Function
End If
Else
CheqTest = True
End If
Else
CheqTest = True
End If
End Function
'This is the submit button command button that is
'To submit the transaction in the transaction table
'After checking the appropriate field
Private Sub Command1_Click()
Dim sstr As String
If Not Text1.Text = "" Or Val(Text1.Text) < 100 Then
If Text2.Text = "" Then
Text2.Text = 0
End If
sstr = "Insert into Transaction1 values("
sstr = sstr + " " & Combo1.Text & ",'" & Combo2.Text & "',"
sstr = sstr + "" & Text1.Text & ",'" & Combo3.Text & "'"
sstr = sstr + "," & Text2.Text & ",'" & Date & "','" & Time & "')"
If CheqTest = True Then
Call UpdateMoney
If a = True Then
cn.Execute sstr
StatusBar1.Panels(1).Text = "Money " & Combo2.Text & " Success"
MsgBox "Money " & Combo2.Text & " Success"
End If
a = False
End If
50
-
8/8/2019 SYSTEM V.B
51/69
Bank Management System
Call ClearField
Else
MsgBox "please Enter Lease 100 Transaction Amount ", vbInformation
End If
End Sub
'This is to Update the balance in database
Private Sub UpdateMoney()
Dim rst As New ADODB.Recordset
Dim stmt As String
Dim d As Long
If rst.State = 1 Then rst.Close
rst.Open "select * from BalanceTable where actno = " & Combo1.Text & "", cn,
adOpenKeyset, adLockOptimistic, cmdtext
If Combo2.Text = "Deposite" Then
d = rst!balance + Val(Text1.Text)
stmt = "update BalanceTable set balance = " & d & ""
stmt = stmt + " where actno = " & Combo1.Text & ""
cn.Execute stmt
a = True
ElseIf Combo2.Text = "Withdraw" Then
If rst!balance > Val(Text1.Text) Then
d = rst!balance - Val(Text1.Text)
stmt = "update BalanceTable set balance = " & d & ""
stmt = stmt + " where actno = " & Combo1.Text & ""
cn.Execute stmt
a = True
Else
MsgBox "U dont have money to Transact U have only " & rst!balance
a = False
End If
End If
End Sub
51
-
8/8/2019 SYSTEM V.B
52/69
Bank Management System
Private Sub Command2_Click()
Unload Me
'Form1.Show 1
End Sub
Private Sub ClearField()
Text1.Text = ""
Text2.Text = ""
Combo1.ListIndex = 0
Combo2.ListIndex = 0
Combo3.ListIndex = 0
End Sub
Private Sub Command3_Click()
Call ClearField
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Form_Load()
Timer1.Interval = 1000
Label3.Caption = Time
Label2.Caption = Date
rs.ActiveConnection = cn
If rs.State = 1 Then rs.Close
rs.CursorLocation = adUseClient
rs.CursorType = adOpenKeyset
rs.LockType = adLockOptimistic
rs.Open "select * from Account order by actno"
rs.MoveFirst
'This is to fill the account number combo
While Not rs.EOF = True
Combo1.AddItem rs!actno
52
-
8/8/2019 SYSTEM V.B
53/69
Bank Management System
rs.MoveNext
Wend
rs.Close
Combo2.AddItem "Withdraw"
Combo2.AddItem "Deposite"
Combo2.ListIndex = 0
Combo1.ListIndex = 0
Combo3.Clear
Combo3.AddItem "Cheque"
Combo3.AddItem "Withdrawl"
'rs.Close
End Sub
Private Sub Timer1_Timer()
Label3.Caption = Time
End Sub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~
Bank Summary Form:--
53
-
8/8/2019 SYSTEM V.B
54/69
Bank Management System
___________________________________________________________________________________
___
Component : Summary form
Form Name : FrmSumary
Code :-
Private Sub Command1_Click()
Unload Me
End Sub
Private Sub Command2_Click()
54
-
8/8/2019 SYSTEM V.B
55/69
Bank Management System
Unload Me
Form1.Show 1
End Sub
Private Sub Command3_Click()
SummaryRept.Refresh
DataEnvironment1.rsCommand2.Requery
SummaryRept.Show
End Sub
Private Sub DataGrid1_Click()
End Sub
Private Sub Form_Load()
Adodc1.Refresh
End Sub
Bank Summary Report :--
55
-
8/8/2019 SYSTEM V.B
56/69
Bank Management System
___________________________________________________________________________________
__
Component : Summary report form
Form Name FrmSummary
Code :-
Dim rs As New ADODB.Recordset
Private Sub DataReport_Activate()
56
-
8/8/2019 SYSTEM V.B
57/69
-
8/8/2019 SYSTEM V.B
58/69
Bank Management System
Bank Account Statement Form:--
___________________________________________________________________________________
__
Component : Account statement form
Form Name : frmStatement
Code :-
Dim stmt As String
Dim rs As New ADODB.Recordset
Private Sub Combo1_Click()
Call DeleteRecord
Call FillDBgrid
Call FillBalance
58
-
8/8/2019 SYSTEM V.B
59/69
Bank Management System
Adodc1.Refresh
DataGrid1.Refresh
End Sub
Private Sub Command1_Click()
Unload Me
'Form1.Show 1
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
DataEnvironment1.rsCommand1.Open "select * from Temptable", cn,
adOpenKeyset, adLockOptimistic, cmdtext
DataEnvironment1.rsCommand1.Requery
StatmentRept.Refresh
StatmentRept.Show
End Sub
Private Sub DataGrid1_Click()
End Sub
Private Sub Form_Load()
rs.ActiveConnection = cn
If rs.State = 1 Then rs.Close
rs.CursorLocation = adUseClient
rs.CursorType = adOpenKeyset
rs.LockType = adLockOptimistic
rs.Open "select actno from account order by actno"
If rs.RecordCount > 0 Then
rs.MoveFirst
59
-
8/8/2019 SYSTEM V.B
60/69
Bank Management System
While Not rs.EOF = True
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End If
Combo1.ListIndex = 0
Call DeleteRecord
Call FillDBgrid
Call FillBalance
Adodc1.Refresh
DataGrid1.Refresh
End Sub
Private Sub DeleteRecord()
stmt = "delete from TempTable "
cn.Execute stmt
End Sub
Private Sub FillDBgrid()
Dim rst As New ADODB.Recordset
If rst.State = 1 Then rst.Close
If Not Combo1.Text = "" Then
rst.Open "select ActNo,TranType,amount,Cheqno,date1 from transaction1
where actno = " & Combo1.Text & "", cn, adOpenKeyset, adLockOptimistic,
cmdtext
If rst.RecordCount > 0 Then
If Not rst.BOF Then rst.MoveFirst
While Not rst.EOF = True
stmt = "insert into TempTable values ( " & rst(0) & ",'" & rst(1) & "',"
& rst(2) & "," & rst(3) & "," & rst(4) & ")"
cn.Execute stmt
Adodc1.Refresh
DoEvents
DataGrid1.Refresh
rst.MoveNext
60
-
8/8/2019 SYSTEM V.B
61/69
Bank Management System
Wend
End If
Else
StatusBar1.Panels(0).Text = "Not Any Transaction Made"
End If
Call FillBalance
End Sub
Private Sub FillBalance()
Dim rsq As New ADODB.Recordset
If rsq.State = 1 Then rsq.Close
rsq.Open "select Balance from BalanceTable where actno = " & Combo1.Text & "
", cn, adOpenKeyset, adLockOptimistic, cmdtext
Text1.Text = rsq(0)
End Sub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~
61
-
8/8/2019 SYSTEM V.B
62/69
Bank Management System
Bank Account Statement Report:--
______________________________________________________________________
Component : Statement report form
Form Name : FrmStetement
Code:-
62
-
8/8/2019 SYSTEM V.B
63/69
Bank Management System
Private Sub DataReport_Error(ByVal JobType As
MSDataReportLib.AsyncTypeConstants, ByVal Cookie As Long, ByVal ErrObj As
MSDataReportLib.RptError, ShowError As Boolean)
On Error Resume Next
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
'DataEnvironment1.rsCommand1.Open "select * from Temptable", cn,
adOpenKeyset, adLockOptimistic, cmdtext
DataEnvironment1.rsCommand1.Requery
StatmentRept.Refresh
End Sub
Private Sub DataReport_Initialize()
On Error Resume Next
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
DataEnvironment1.rsCommand1.Open "select * from Temptable", cn,
adOpenKeyset, adLockOptimistic, cmdtext
DataEnvironment1.rsCommand1.Requery
StatmentRept.Refresh
End Sub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~
_____________________________________________________________________
___
63
-
8/8/2019 SYSTEM V.B
64/69
Bank Management System
Module Code:-
_____________________________________________________________________
___
Dim stmt As String
Dim rs As New ADODB.Recordset
Private Sub Combo1_Click()
Call DeleteRecord
Call FillDBgrid
Call FillBalance
Adodc1.Refresh
DataGrid1.Refresh
End Sub
Private Sub Command1_Click()
Unload Me
'Form1.Show 1
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
If DataEnvironment1.rsCommand1.State = 1 Then
DataEnvironment1.rsCommand1.Close
DataEnvironment1.rsCommand1.Open "select * from Temptable", cn,
adOpenKeyset, adLockOptimistic, cmdtext
DataEnvironment1.rsCommand1.Requery
StatmentRept.Refresh
64
-
8/8/2019 SYSTEM V.B
65/69
Bank Management System
StatmentRept.Show
End Sub
Private Sub DataGrid1_Click()
End Sub
Private Sub Form_Load()
rs.ActiveConnection = cn
If rs.State = 1 Then rs.Close
rs.CursorLocation = adUseClient
rs.CursorType = adOpenKeyset
rs.LockType = adLockOptimistic
rs.Open "select actno from account order by actno"
If rs.RecordCount > 0 Then
rs.MoveFirst
While Not rs.EOF = True
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End If
Combo1.ListIndex = 0
Call DeleteRecord
Call FillDBgrid
Call FillBalance
Adodc1.Refresh
DataGrid1.Refresh
End Sub
Private Sub DeleteRecord()
stmt = "delete from TempTable "
cn.Execute stmt
End Sub
65
-
8/8/2019 SYSTEM V.B
66/69
Bank Management System
Private Sub FillDBgrid()
Dim rst As New ADODB.Recordset
If rst.State = 1 Then rst.Close
If Not Combo1.Text = "" Then
rst.Open "select ActNo,TranType,amount,Cheqno,date1 from transaction1
where actno = " & Combo1.Text & "", cn, adOpenKeyset, adLockOptimistic,
cmdtext
If rst.RecordCount > 0 Then
If Not rst.BOF Then rst.MoveFirst
While Not rst.EOF = True
stmt = "insert into TempTable values ( " & rst(0) & ",'" & rst(1) & "',"
& rst(2) & "," & rst(3) & "," & rst(4) & ")"
cn.Execute stmt
Adodc1.Refresh
DoEvents
DataGrid1.Refresh
rst.MoveNext
Wend
End If
Else
StatusBar1.Panels(0).Text = "Not Any Transaction Made"
End If
Call FillBalance
End Sub
Private Sub FillBalance()
Dim rsq As New ADODB.Recordset
If rsq.State = 1 Then rsq.Close
rsq.Open "select Balance from BalanceTable where actno = " & Combo1.Text & "
", cn, adOpenKeyset, adLockOptimistic, cmdtext
Text1.Text = rsq(0)
66
-
8/8/2019 SYSTEM V.B
67/69
Bank Management System
End Sub
***** END OF THE PROGRAM *****
67
-
8/8/2019 SYSTEM V.B
68/69
Bank Management System
Conclusion
This project is designed to meet the requirements of a Banking System. It has been
developed in Visual Basic, keeping in mind the specifications of the system.
For designing the system we have used simple data flow diagrams.
Overall the project teaches us the essential skills like:
Using system analysis and design techniques like data flow diagram in designing
the system.
Understanding the database handling
68
-
8/8/2019 SYSTEM V.B
69/69
Bank Management System
Biblography: ----
1. Visual Basic (BT -12, Delhi)
2. Advance Microsoft Visual Basic -6.0 2nd Editions
3. Programming Microsoft Visual Basic -6
4. Mastering Visual Basic-6