You are on page 1of 113

PROJECT REPORT ON

BANKING MANAGEMENT SYSTEM


Report submitted fulfilment of the requirements for the award of the Degree in

BACHELOR OF COMPUTER APPLICATION


BANGALORE UNIVERSITY

SUBMITTED BY:

KESHAV MURTHY K (15BRSB7016)


Under the guidance of:

Ms. ASHA J
Lecturer
Dept. of Bachelor of Computer Application

EAST POINT COLLEGE OF HIGHER EDUCATION

BIDARAHALLI, BANGALORE - 49
DECLARATION

I do hereby declare that the project work entitled “BANKING MANAGEMENT SYSTEM”
submitted to the Bangalore University in the partial fulfilment of the requirements for the
award of Degree of Bachelor of Computer Application is a record of confide and independent
project work carried out by myself under the guidance and supervision of

“MS. ASHA J”, Lecturer, Department of Bachelor of Computer Application and this report
does not form any part of any previous dissertations or reports previously submitted to this
University or any other Universities for the award of degree or diploma.

Name:

KESHAV MURTHY K (15BRSB7016)


ACKNOWLEDGEMENT

We take this opportunity to express our deep sense of gratitude to our founder Chairman
Dr. Venkatapathi S.M

We express our sincere thanks to our respected Principal, Prof. Dr. Roopa T N, Director of
East Point College of Higher Education and Prof. Chaya Devi H B, HOD of Management
Science for providing all necessary help during our project work.

We also express our sincere thanks to the Coordinator of BCA Department


Ms. Namratha K S for her valuable guidance, keen interest and helpful during the project.

We would like to thank my friends, staff and all other who have directly and indirectly helped
me in the successful completion of this project.

Date:

Place: Bangalore

Name:

KESHAV MURTHY K (15BRSB7016)


BANKING MANAGEMENT SYSTEM

DEPARTMENT OF BCA (EPCHE)


BANKING MANAGEMENT SYSTEM

SL.NO PARTICULARS PAGE NO

1 INTRODUCTION 1-3

2 INTRODUCTION TO MICROSOFT ACCESS 4 - 10

3 INTRODUCTION TO SOFTWARE 11 - 12
ENGINEERING

4 SOFTWARE REQUIREMENTS AND 13 - 14


SPECIFICATIONS

5 INTRODUCTION TO VISUAL BASIC 6.0 15 - 18

6 E – R DIAGRAMS 19 - 23

7 SOURCE CODE AND TESTING 24 - 92

8 SNAP SHOTS 93 - 104

9 CONCLUSION 105 - 106

10 BIBLIOGRAPHY 107 - 108

DEPARTMENT OF BCA (EPCHE)


BANKING MANAGEMENT SYSTEM

1
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

BANKING MANAGEMENT SYSTEM

PROJECT INTRODUCTION

This is Visual-Basics Projects on Banking Management System, which provided a lot of


facility to their user. Bank management governs various concerns associated with bank in
order to maximize profits. The concerns broadly include liquidity management, asset
management, liability management and capital management.

The objective and scope of my Project Banking Management System is to record the
details various activities of the user. It simplifies the task and reduce the paper work.
During implementation every user will be given appropriate training to suit their specific
needs. Specific support will also be provided at key points within the academic calendar.

The system is very user friendly and it is anticipated that functions of the system will be
easily accessed by administrators, academics, students and applicants.

Hence the Banking Management has been designed to remove all the deficiency from
which the present system is suffering and to ensure.

2
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Tools Used In Development

Hardware:
Processor: Intel Core i5

RAM: 1 GB

Hard Disk: 20 GB

Laptop: DELL Latitude e4310

Keypad: DELL

Mouse: DELL

Software:
Application Software:

Front End: Visual Basic 6.0

Data Base:

Back End: Microsoft Access

Operating System: Windows 7 Ultimate

3
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

4
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Introduction to Microsoft Access:

A database is a collection of data as well as programs required to manage that data. The
data is stored in a tabular format, across rows and columns, in much the same way as in
the spread sheet. The difference lies in the fact that a database Management system takes
care of complex calculations storing and other tasks that perhaps could not be performed
using a spread sheet.

Moreover most DBMS provide security for the data within the database. Complex
validations can also be taken care of by a DBMS, to ensure that entered into system is
valid.

We describe that the need for storing data within tables. In this context we briefly
outlined the evolution of the database. In this session, we deal with how to identify the
tables and the fields needed in application. We have user look at tables and related topics
such as data types and constraints. By the end of this session, we will have gone through
the steps involved in the creation of tables.

5
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Main Modules of Project:

* EMPLOYEE
 Add Employee
 Update Employee

* TRANSACTIONS
 Deposit form
 Withdrawal form

* NEW
 Account
 Fixed Deposit

* SEARCH
 Account Information
 Transactions

*SETTINGS
 Add User

* E-SOLUTIONS
 ATM Card Application

6
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Steps in designing a table


Designing a table would involve the following steps:
 Picking out the fields or the data items that would fit into each of the tables.
 Specifying the data type for each of the data items in a table.
 Providing a field size for the field, where possible.
 Enforcing constraints on the required fields.

In the session above, we already worked with identifying the tables and fields that fit into
each of this table. In the session that follow, we shall have a look at the data types, field
size and some of the constraints that can be enforced in MS Access XP.

The field name, field size, constraints and other properties comprise the “Structure” of
the table. It forms the basis on which data will be entered and maintained. This can be
considered as ‘Conceptual view’ to a table in a relational database. Visual DBMS like
MS Access provide a view called the ‘design view’ to enable users to create and modify
the structure of a table. For a person who used a non-Visual DBMS.

Data type
In different types of data items and corresponding field names have to be defined at the
time of creating the table.

The data types common to most RDBMS are:

 This data type is used to store a combination of characters and numeric data. In
some RDBMS, alphanumeric data type can be of two types. One having fixed size
and the other having a variable size.
 In MS-Access, the alphanumeric data type is referred to as the ‘text data type’
 And is of variable length. It can hold up to a maximum of 255 characters.

7
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

a) Numeric:

The numeric data type is used to store numbers. Most RDBMS have several
subcategories for the number data type. Each of these could be data types in them.
The most common among these are:

Numeric Description

Byte Stores number in the range 0 to 255; It occupies up to 2 bytes.

Integer This stores only integers. It occupies 2 bytes, that is it allows


number in the range of -32768 to 32767
Long Integer This occupies 4 bytes and stores much larger integers.

Float Stores real numbers, and provide a precision of up to 6 decimal


places.
Double Stores real number with a higher degree of precision.

b) Date/time:

This data type is common to most RDMS, and is used to store date and time and
stores time. Again, the format a date is stored differs depending on the RDBMS.

c) Boolean:

This data type is used to a Boolean value(True\False)


In MS-Access this data type is referred to as the ‘yes’ (‘True’ or ‘False’). It occupies
just one bit.

8
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

d) Memo:
Some RDBMS, like MS-Access also provide a data type for storing data that exceeds the
amount that can be stored in a ‘text’ field. As discussed earlier, a ‘text’ field in MS-
Access can store up to 255 characters. To store anything that exceeds that, a memo data
type can be used. This data type allows the user to store up to 64000 characters.

Enforcing Constraints

A ‘Constraint’ is a ‘limitation’ or ‘restriction’ that is enforced on fields for verifying data


that is being entered into a table. Every RDBMS allows the user to place some constraints
on table.

Primary Key Constraints

A ‘Primary key’ constraint is one, which ensures that the user does not enter duplicate
values in the field or set of field on which the constraint is enforced.
A ‘Primary key’ constraint when placed on a field, or combination of fields, makes that
particular field or set of fields as the ‘Primary key’.

Check Constraints

Most RDBMS automatically validate value based on a field’s data type, i.e, text value is
not allowed into a date or numeric field. Some validation rules or ‘check constraints’ that
check the entering the database.

9
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

 NOT NULL CONSTRAINT


This constraint is used to ensure that the user does not enter a ‘NULL’ value into
a field.

 DEFAULT CONSTRAINT
This constraint is used to specify a value that will be displayed and stored in a
field by default, in case the user does not enter any value.

10
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

11
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Introduction to Software Engineering


The SRS is the starting point of software activity. It is produced at the culmination of the
analysis book. The function and performance allocated to the software as a part of
description, details, functional description, detailed functional constraints description,
appropriate validation criteria and other data requirement.

Specification consists of two basic activities, they are:

 Problem analysis.
 System requirements specification.

12
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

13
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

System Requirement and Specification


The process of SRS is to bridge the communication gap between the user and the
programmers. SRS is a medium, which the client and the user needs are accurately and
unambiguously specified. In deed forms the basis for the software development.

Computer
System
Engineering

Software
Requirement
Analysis

Software
Design

Fig: Overlap of Analysis Task

14
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

15
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Introduction to VB6.0

Visual Basic is a programming language and a powerful front end tools for developing
windows applications, as the name suggests, programming with Visual Basics is
accomplished visually. Visual basic is a graphical user interface (GUI). Visual Basic is a
programming language with the inbuilt ability to create user interface quickly and easily.
While writing the program, you are able to see how your program will look during your
run time. This is the great advantage over the other programming languages. In visual
basic you have available tool box of these elements. You can create a new window called
Forms. Programmers, creates the GUI by selecting an object, setting the object properties
to define the object appearance like colour, size, images, etc., and behaviour and writes
code that responds to a particular event that occurs in the interface. These program work
on the text mode using the extended character set to give the user the feeling of a
graphical environment. Visual Basic made programming under the GUI environment
easy and fast.

Feasibility Analysis
It is highly feasible as it provides all the employee management process in an easier
method by saving the lot of time and also it provides cost effective solution.

Economic Feasibility
The system is economically acceptable as it provides a cost effective solution because,
the developer of the system take very few risks. The benefits from the system outs
number of cost.

Technical Feasibility
The system is technically acceptable as it can be used in all employee organization.
Where it automates the annual activities.

16
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Operational Feasibilities
The user who has basic knowledge can operate the software.

Cost us benefit Analysis


This software is very beneficial to its users as it is very accurate in maintaining all the
required details and it is prescriptive in nature and its benefits are so high that it outs the
cost of the project. This software is well designed in such a manner the expenditure of the
software is very less compared to its benefits.

Environment
The software is developed on VISUAL BASIC 6.0 as the front-end tool and MS-
ACCESS-XP and back end tool under the MS-WINDOWS XP platform as an operating
system.

Software specification
 The software should be in a position to maintain all the required details.
 The software should be readable, understandable and upgradeable.
 The software must work on a variety of hardware’s.

Features of software
 The software is simple yet efficient.
 The minimum configuration required is a 286 machine.
 It is user friendly.
 The software is very successful.
 Current dates, time and other details of different levels are automatically
generated by the system.

17
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

 It is because it restricts more acceptation part from the user side.


 The software itself generates most of all the acceptation part.

Design Constraints:

Hardware design constraints:


The design constraints regarding the hardware is concerned is that it cannot be run on
machine less than 150 machines and least needs 32 MB RANDOM ACCESS MEMORY
(RAM) and hard disk capacity of 20 MB for the minimum user.

Software Design Constraints:


The software design constraint is that it should particularly have MS Access XP 2000 as
back-end and visual basic 6.0 as front-end tool.

General design constraints:


The general constraints are that it is fast as windows based application any failure in VB
coding result in non-functioning of the software if any tables are corrupted in MS Access
XP will result in wrong values.

18
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

19
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

LOGIN DETAILS:

USERNAME PASSWORD

ACCESS

USER DETAILS:

CLOSE USER NEW

DELETE

20
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

CUSTOMER’S PERSONAL DETAILS:

FIRST
NAME LAST NAME
HOME
PHONE

OFFICE CUSTOMER’S OFFICE


PHONE PERSONAL DETAILS ADDRESS

E-MAIL HOME
DOB ADDRESS

WITHDRAWAL DETAILS:

AMOUNT CUSTOMER’S
DETAILS

CHEQUE WITHDRAWAL TRANSACTION


NUMBER
DETAILS DETAILS

TRANSACTION DATE

21
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

CUSTOMERS DEPOSIT DETAILS:

AMOUNT
TRANSACTION TRANSACTION
MODE DETAILS

CUSTOMERS
DEPOSIT DETAILS

CUSTOMERS TRANSACTION
DETAILS DATE

ACCOUNT DETAILS:

BALANCE
ATM CARD
ACCESS
NUMBER
MODE

ACCOUNT
DETAILS

DATE
ACCOUNT
ACCOUNT OPENED
TYPE
NUMBER

22
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

EMPLOYEE PERSONAL DETAILS:

FIRST
NAME LAST NAME
HOME
PHONE

OFFICE EMPLOYEE OFFICE


PHONE PERSONAL DETAILS ADDRESS

E-MAIL HOME
DOB ADDRESS

23
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

24
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

LOGIN FORM:
Dim rights As String
Dim pass As String
Private Sub cmdCancel_Click()
End
End Sub

Private Sub cmdOK_Click()


Dim test As String
With RS_login
login = Combo1.Text
.MoveFirst
While Not .EOF
'pass = .Fields(2)
If Combo1.List(Combo1.ListIndex) = .Fields(1) Then
rights = .Fields(3)
pass = .Fields(2)
test = Val(Text1.Text - 1)
If txtPassword.Text <> pass Then
MsgBox "Invalid Password,you have just " + test + " login trails left, input the correct
password or exit", vbInformation + vbOKOnly, "Authentication"
Text1.Text = Val(Text1.Text) - 1

If Text1.Text = "0" Then


MsgBox "Sorry, but you cant be too smart", vbCritical + vbOKOnly
End
End If
Exit Sub

25
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

ElseIf txtPassword.Text = pass Then


'If Combo2.Text = rights Then
MsgBox "A c c e s s G r a n t e d", vbOKOnly, "Authentication"
txtPassword.Text = ""
' Else: MsgBox "You do not Access Rights of this user", vbOKOnly
'Exit Sub
' End If
Me.Hide

If rights = 1 Then
user1
ElseIf rights = 2 Then
user2
ElseIf rights = 3 Then
user3
End If
main_menu.Show
Frm_welcome.Show
'Exit Sub
End If
'End If
End If
.MoveNext
Wend
End With

End Sub

Private Sub Form_Load()


Call connect

26
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

With RS_login
While Not .EOF
Combo1.AddItem .Fields(1)
.MoveNext
Wend
End With
Text1.Text = 3
End Sub

Private Sub user1()


main_menu.StatusBar1.Panels(1) = "User Name :- " & login
End Sub
Private Sub user2()
main_menu.StatusBar1.Panels(1) = "User Name :- " & login
main_menu.mnutrans.Enabled = False
'main_menu.mnucust.Enabled = False
main_menu.mnuset.Enabled = False
End Sub

Private Sub user3()


main_menu.StatusBar1.Panels(1) = "User Name :- " & login
main_menu.mnuemp.Enabled = False
main_menu.mnureport.Enabled = False
main_menu.mnu.Enabled = False
main_menu.mnuset.Enabled = False

End Sub

27
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

MDI MAIN FORM:


Private Sub cus_Click()
addcust.Show
End Sub

Private Sub emp_Click()


addemp.Show
End Sub

Private Sub emp2_Click()


editemp.Show
End Sub

Private Sub MDIForm_Load()


Me.StatusBar1.Panels(2) = Format(Date & " , " & Time)
End Sub

Private Sub mnua_Click()


accessctrl.Show
End Sub

Private Sub mnucu_Click()


addaccount.Show
End Sub

Private Sub mnuemploy_Click()


addacc.Show
End Sub

28
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Private Sub mnuatm_Click()


atm.Show
End Sub

Private Sub mnuemprep_Click()


frmresult.Show
End Sub

Private Sub new1_Click()


addacc.Show
End Sub

Private Sub new4_Click()


addfd.Show
End Sub

Private Sub rep_Click()


frm_result.Show
End Sub

Private Sub rep1_Click()


DataReport2.Show
End Sub

Private Sub rep2_Click()


DataReport1.Show
End Sub

29
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Private Sub rep3_Click()


frm_result.Show
End Sub

Private Sub ser1_Click()


frmsearch.Show
End Sub

Private Sub ser2_Click()


seachtrans.Show
End Sub

Private Sub tra_Click()


withdrawl.Show
End Sub

Private Sub tra1_Click()


deposit.Show
End Sub

Private Sub use_Click()


frmLogin.Show
End Sub

Private Sub use1_Click()


main_menu.Hide
frmLogin.Show
End Sub

30
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Private Sub use3_Click()


If MsgBox("Are you sure you want to quit?", vbYesNo) = vbYes Then
End
Else
Exit Sub
End If
End Sub

31
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

WITHDRAWL:

Private Sub Combo1_Click()


With RS_account
.MoveFirst
While Not .EOF
If Combo1.List(Combo1.ListIndex) = .Fields(0) Then
Text2.Text = .Fields(12)
End If
.MoveNext
Wend

End With
End Sub

Private Sub cleaall()


Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Combo1.ListIndex = -1
Text1.SetFocus
End Sub

Private Sub Command4_Click()


Min = 2000

actual = Val(Text2.Text)
dep = Val(Text3.Text)

32
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

final = actual - dep


Text4.Text = final
If Val(Text4.Text) < 1000 Then
temp = MsgBox("INSUFFICIENT BALANCE!!! and Amount Can't Be Less Than 1000",
vbCritical + vbOKOnly, "AutoBank")
Exit Sub
cleaall
End If

With RS_account
.MoveFirst
.Update
.Fields(12) = Text4.Text
.MoveNext
End With
With RS_transaction
.AddNew
.Fields(0) = Text1.Text
.Fields(1) = Combo1.Text
.Fields(2) = "Withdrawal"
.Fields(3) = Text2.Text

.Fields(4) = Text3.Text
.Fields(5) = Text5.Text
.Fields(6) = Text4.Text
.Update
End With

33
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

MsgBox "Your Account has being Debited by " & Text3.Text & ", Your final balance is
" & Text4.Text, vbInformation, "Account Deposit"

cleaall
End Sub

Private Sub Command5_Click()


cleaall
Me.Hide
End Sub

Private Sub Form_Load()


Call connect
With RS_account
While Not .EOF
Combo1.AddItem .Fields(0)
.MoveNext
Wend
End With
Text5.Text = Format(Date & Time)

34
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

DEPOSIT:
Private Sub Combo1_Click()
With RS_account
.MoveFirst
While Not .EOF
If Combo1.List(Combo1.ListIndex) = .Fields(0) Then
Text6.Text = .Fields(12)
End If
.MoveNext
Wend
End With
End Sub

Private Sub Command4_Click()


If Text3.Text = "" Then
MsgBox "Add Amount for Transaction", vbInformation
Exit Sub
Text3.SetFocus
End If
Dim actual As String

Min = 2000
actual = Val(Text6.Text)
dep = Val(Text3.Text)
final = actual + dep
Text4.Text = final
With RS_transaction

.AddNew

35
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

.Fields(0) = Text1.Text

.Fields(1) = Combo1.Text

.Fields(2) = "Deposit"
.Fields(3) = Text6.Text
.Fields(4) = Text3.Text
.Fields(5) = Text5.Text
.Fields(6) = Text4.Text
.Update
.MoveNext
With RS_account
.MoveFirst
.Update
.Fields(12) = Text4.Text
.MoveNext
End With
MsgBox "Your Account has being Credited by" & Text3.Text & ", Your final balance is
" & Text4.Text, vbInformation, "Account Deposit"
End With
clearall
End Sub

Private Sub Command5_Click()


Me.Hide
clearall
End Sub

Private Sub Form_Load()


Call connect

36
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

With RS_account
While Not .EOF
Combo1.AddItem .Fields(0)

.MoveNext

Wend
End With
Text5.Text = Format(Date & Time)
End Sub
Public Sub clearall()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text6.Text = ""
Combo1.ListIndex = -1

End Sub

Private Sub Form_Unload(Cancel As Integer)


close_connect
End Sub

37
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

ADD NEW USER:

Private Sub Combo1_Click()


Frame2.Enabled = True
If Combo1.Text = "Administrator" Then
C1.Value = 1: C2.Value = 1: C3.Value = 1: C4.Value = 1: C5.Value = 1: C6.Value = 1
ElseIf Combo1.Text = "Personnel" Then
C1.Value = 0: C2.Value = 1: C3.Value = 0: C4.Value = 1: C5.Value = 0: C6.Value = 1
ElseIf Combo1.Text = "Desk User" Then
C1.Value = 1: C2.Value = 0: C3.Value = 1: C4.Value = 0: C5.Value = 0: C6.Value = 0

End If
End Sub

Private Sub Command1_Click()


Me.Hide
clear
End Sub

Private Sub Command2_Click()


If Text3.Text <> Text4.Text Then
MsgBox "Password is in_consistent", vbOKOnly
Text3.Text = ""
Text4.Text = ""
Exit Sub
ElseIf Text3.Text = Text4.Text Then
With RS_login
.AddNew
.Fields(0) = Text1.Text

38
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

.Fields(1) = Text2.Text

.Fields(2) = Text3.Text
If Combo1.ListIndex = 0 Then
.Fields(3) = 1
ElseIf Combo1.ListIndex = 1 Then
.Fields(3) = 2
ElseIf Combo1.ListIndex = 2 Then
.Fields(3) = 3
End If
.Update

MsgBox "User created", vbOKOnly


End With
clear
End If

End Sub

Private Sub Command3_Click()


clear
End Sub

Private Sub Form_Load()


Call connect
Combo1.AddItem "Administrator"
Combo1.AddItem "Personnel"
Combo1.AddItem "Desk User"
With RS_login
Frame2.Enabled = False

39
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

.MoveFirst
While Not .EOF
login.AddItem .Fields(1)

.MoveNext
Wend
End With
End Sub

Private Sub clear()


Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""

Combo1.ListIndex = -1
C1.Value = 0
C2.Value = 0
C3.Value = 0

C4.Value = 0
C5.Value = 0
C6.Value = 0
End Sub

Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)

End Sub

Private Sub login_Click()

40
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

With RS_login
.MoveFirst
While Not .EOF
If login.List(login.ListIndex) = .Fields(1) Then
Text1.Text = .Fields(0)

Text2.Text = .Fields(1)
Text3.Text = .Fields(2)
If .Fields(3) = 1 Then
Combo1.ListIndex = 0
ElseIf .Fields(3) = 2 Then
Combo1.ListIndex = 1
ElseIf .Fields(3) = 3 Then
Combo1.ListIndex = 2
End If
End If
.MoveNext
Wend
End With
End Sub

41
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

ADD NEW ACCOUNT:

Public Sub cleaall()


Text1.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
Text14.Text = ""
Text15.Text = ""
Text16.Text = ""
'Image1.Index = -1
'Label2.Caption = "Customer Number"
'Combo1.Clear
Combo2.ListIndex = -1
'Combo3.Clear
Combo4.ListIndex = -1
Text4.Enabled = False
Text5.Enabled = False
Text6.Enabled = False

42
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Frame1.Enabled = False
End Sub

Private Sub Command3_Click()

End Sub

Private Sub cmdadd_Click()


Dim id As String
Dim code As String
id = 10001
Tmp = 3300
Tmp = Tmp + RS_account.RecordCount + 1
code = id + "-" + CStr(Tmp)
Text1.Text = code
Frame1.Enabled = True
Frame3.Enabled = False
End Sub

Private Sub cmdexit_Click()


cleaall
Me.Hide
End Sub

Private Sub cmdsave_Click()


If MsgBox("Are You Sure?", vbYesNo + vbQuestion, "AutoBank") = vbYes Then

Call check
If check <> vbOK Then
With RS_account

43
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

.AddNew
.Fields(0) = Text1.Text
.Fields(1) = Text8.Text
.Fields(2) = Text9.Text
.Fields(3) = Text10.Text
.Fields(4) = Text11.Text
.Fields(5) = Text12.Text
.Fields(6) = Text13.Text
.Fields(7) = Text14.Text
.Fields(8) = Text16.Text
.Fields(9) = Text3.Text
.Fields(10) = Combo2.Text
.Fields(11) = Combo4.Text
.Fields(12) = Text7.Text
.Fields(13) = CommonDialog1.FileName
.Fields(14) = Text4.Text
.Fields(15) = Text5.Text
.Fields(16) = Text6.Text
.Fields(17) = Text2.Text

.Update
MsgBox "Congratulation,Your Account Number is " + Text1.Text, vbInformation,
"Account Confirmation"
cleaall

End With
End If
End If
End Sub

44
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Private Sub Combo1_Click()


End Sub

Private Sub Combo4_Click()


With Combo4
If .ListIndex = 0 Then
Frame3.Enabled = False
ElseIf .ListIndex = 1 Then
Frame3.Enabled = True
End If
End With
End Sub

Private Sub Command4_Click()


CommonDialog1.ShowOpen
Image1.Picture = LoadPicture(CommonDialog1.FileName)
cmdsave.SetFocus
End Sub

Private Sub Form_Load()


Call connect

Text2.Text = (Format(Date) & " " & " " & (Time))
Combo2.AddItem "Savings Account"
Combo2.AddItem "Current Account"

Frame1.Enabled = False
Combo4.AddItem "Personal"
Combo4.AddItem "joint"

45
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

If Combo4.ListIndex = 0 Then
Frame3.Enabled = True
ElseIf Combo4.ListIndex = 1 Then
Frame3.Enabled = True
End If

End Sub

Private Sub Option2_Click()


If Option2.Enabled = True Then
Frame3.Enabled = True
End If
End Sub

Private Sub Option1_Click()


If Option1.Enabled = True Then
Frame3.Enabled = False
End If
End Sub

Private Function check() As Integer


Dim temp As Integer
temp = 0

If Combo4.ListIndex = 1 _
And Text4.Text = "" _
And Text5.Text = "" _
And Text6.Text = "" Then

46
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

temp = MsgBox("!!! No Additional Name Found !!!", vbCritical + vbOKOnly,


"AutoBank")
End If

check = temp
End Function

Private Sub Form_Unload(Cancel As Integer)


Call close_connect
End Sub

Private Sub Frame1_DragDrop(Source As Control, X As Single, Y As Single)

End Sub

47
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

ADD EMPLYOEE:

Dim Tmp As Integer

Private Sub cmdadd_Click()


Dim id As String
Dim code As String
id = "EMP"
Tmp = 1000
Tmp = Tmp + RS_employee.RecordCount + 1
code = id + "-" + CStr(Tmp)
Text1.Text = code
Frame1.Enabled = True
Text2.SetFocus
End Sub

Private Sub cmdsave_Click()


If Frame1.Enabled = False Then
cleaall
Exit Sub
End If

temp = MsgBox("Are you sure?", vbYesNo + 32, "AutoBank")

If temp = vbYes Then

'If MsgBox("Are You Sure?", vbYesNo + vbQuestion, "AutoBank") = vbYes Then


'End If

48
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

With RS_employee
.AddNew
.Fields(0) = Text1.Text
.Fields(1) = Text2.Text
.Fields(2) = Text3.Text
.Fields(3) = Text4.Text
.Fields(4) = Text5.Text
.Fields(5) = Text6.Text
.Fields(6) = Text7.Text
.Fields(7) = Text8.Text
.Fields(8) = Text9.Text
.Fields(9) = Text11.Text
.Fields(10) = Text12.Text
.Fields(11) = CommonDialog1.FileName
Fields(12) = Text13.Text
.Update
MsgBox "Record Entered Successfully"

cleaall
End With
End If
End Sub

Private Sub Command3_Click()


Unload Me
End Sub

Private Sub Command4_Click()


CommonDialog1.ShowOpen
Image1.Picture = LoadPicture(CommonDialog1.FileName)

49
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

cmdsave.SetFocus
End Sub

Private Sub Command5_Click()


accessctrl.Show vbModal
End Sub

Private Sub Form_Load()


Frame1.Enabled = False
Call connect
End Sub

Public Function check() As Integer


Dim t As Integer
t=0
If Text2.Text = "" _
Or Text3.Text = "" _

Or Text4.Text = "" _
Or Text6.Text = "" _
Or Text9.Text = "" Then
t = MsgBox("One of the required fields is empty.Please fill it", vbOKOnly + vbCritical,
"AutoBank")
check = t
End If

If CVar(Text1.Text) > 100 Or CVar(Text1.Text) < 1 Then


t = MsgBox("The Employee ID is wrong.", vbOKOnly + vbCritical, "AutoBank")
check = t

50
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

End If
End Function

Private Sub Text2_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text2.Text = UCase(Text2.Text)
Text3.SetFocus
End If
End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text3.Text = UCase(Text3.Text)
Text4.SetFocus
End If
End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then

Text4.Text = UCase(Text4.Text)
Text5.SetFocus
End If
End Sub

Private Sub Text5_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text5.Text = UCase(Text5.Text)
Text6.SetFocus
End If

51
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

End Sub

Private Sub Text6_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text6.Text = Val(Text6.Text)
Text12.SetFocus
End If
End Sub

Private Sub Text12_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then
Text12.Text = UCase(Text12.Text)
Text7.SetFocus
End If
End Sub

Private Sub Text7_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
If Val(Text7.Text) < 10000 Then

Text7.SetFocus

SendKeys "{Home}+{End}"
End If
Text7.Text = Val(Text7.Text)
Text8.SetFocus
End If
End Sub

52
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Private Sub Text8_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
If Val(Text8.Text) < 10000 Then
Text8.SetFocus
SendKeys "{Home}+{End}"
End If
Text8.Text = Val(Text8.Text)
Text13.SetFocus
End If
End Sub
Private Sub Text13_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then

If Val(Text13.Text) < 10000 Then


Text8.SetFocus
SendKeys "{Home}+{End}"
End If
Text13.Text = Val(Text13.Text)
Text11.SetFocus
End If
End Sub

Private Sub Text11_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text9.SetFocus
End If
End Sub

Private Sub Text9_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then

53
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Text9.Text = UCase(Text9.Text)
Command4.SetFocus
End If
End Sub

Public Sub cleaall()


Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""

Text9.Text = ""
'Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
Text13.Text = ""
Image1.Picture = LoadPicture("")

Frame1.Enabled = False
cmdadd.SetFocus
End Sub

54
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

FIXED DEPOSIT:

Dim FdNoGen As Integer


Dim term As Integer
Dim maturitydate As Date
Dim MaturityValue As Double

Private Sub Check1_Click()


If Check1.Value = 1 Then
Text4.Enabled = True
Text5.Enabled = True
Text6.Enabled = True
Label4.Enabled = True
Label5.Enabled = True
Label6.Enabled = True
Text4.SetFocus
ElseIf Check1.Value = 0 Then
Text4.Enabled = False
Text5.Enabled = False
Text6.Enabled = False
Label4.Enabled = False
Label5.Enabled = False
Label6.Enabled = False
Command2.SetFocus
End If

'Text7.Text = Round(MaturVal(Term), 2)
End Sub

55
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Private Sub Combo1_Click()

With RS_customer
.MoveFirst
While Not .EOF
If Combo1.List(Combo1.ListIndex) = .Fields(0) Then
Text2.Text = .Fields(1)
If Combo1.ListIndex = Val(.Fields(0)) Then
MsgBox "Sorry!!!, You already have a Fixed Deposit Account", vbOKOnly, "Duplicate
Account"
Combo1.ListIndex = -1
Text2.Text = ""
Combo1.SetFocus
Exit Sub
End If
End If

.MoveNext
Wend
End With

End Sub

Private Sub Command1_Click()


Frame1.Enabled = True
Dim acc As String

Dim id As String
acc = 1001
id = 10000 + RS_fixdep.RecordCount + 1

56
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

With RS_fixdep
code = acc + " - " + id
Text1.Text = code
End With
End Sub

Private Sub Command2_Click()

If MsgBox("Are You Sure?", vbQuestion + vbYesNo, "AutoBank") = vbYes Then


Call check
If check <> vbOK Then
With RS_fixdep
.AddNew

.Fields(0) = Text1.Text
'.Fields(1) = Combo1.Text
.Fields(2) = UCase(Trim(Text2.Text))
.Fields(3) = Val(Text3.Text)

.Fields(5) = Date

Dim rate As Single


Select Case term
Case 90
.Fields(4) = 90
maturitydate = Date + 90
.Fields(6) = maturitydate

MaturVal = Val(Text3.Text) * (1 + ((5 / 365) / 100)) ^ 90

57
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

.Fields(7) = MaturVal
Case 6
.Fields(4) = 6
maturitydate = Date + 180
.Fields(6) = maturitydate
MaturVal = Val(Text3.Text) * (1 + ((6 / 2) / 100)) ^ 1
.Fields(7) = MaturVal
Case 1
.Fields(4) = 1
maturitydate = Date + 365
.Fields(6) = maturitydate
MaturVal = Val(Text3.Text) * (1 + (8 / 100)) ^ 1
.Fields(7) = MaturVal
Case 2
.Fields(4) = 2
maturitydate = Date + 365 + 365

.Fields(6) = Text8.Text
MaturVal = Val(Text3.Text) * (1 + (9 / 100)) ^ 2
.Fields(7) = MaturVal
End Select

.Fields(8) = Trim(UCase(Text4.Text))
.Fields(9) = Trim(UCase(Text5.Text))
.Fields(10) = Trim(UCase(Text6.Text))
.Update
MsgBox "Account created", vbOKOnly, "Fixed Deposit"
Cleaall
End With

58
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

End If
End If
End Sub

Private Sub Command3_Click()


Unload Me
End Sub

Private Sub Form_Load()


Frame1.Enabled = False
Call connect
End Sub

Private Sub Frame4_DragDrop(Source As Control, X As Single, Y As Single)

End Sub

Private Sub Option1_Click()


Check1.SetFocus
term = 90
maturitydate = Date + 90
MaturVal = (Val(Text3.Text) * (1 + ((5 / 365) / 100)) ^ 90)
Text8.Text = maturitydate
Text7.Text = MaturVal
End Sub

Private Sub Option2_Click()


Check1.SetFocus
term = 6
maturitydate = Date + 180

59
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

MaturVal = Val(Text3.Text) * (1 + ((6 / 2) / 100)) ^ 1


Text8.Text = maturitydate
Text7.Text = MaturVal
End Sub

Private Sub Option3_Click()


Check1.SetFocus

maturitydate = Date + 365


Text8.Text = maturitydate
MaturVal = Val(Text3.Text) * (1 + (8 / 100)) ^ 1
Text7.Text = MaturVal
term = 1
End Sub

Private Sub Option4_Click()


Check1.SetFocus
maturitydate = Date + 365 + 365
MaturVal = Val(Text3.Text) * (1 + (9 / 100)) ^ 2
Text8.Text = maturitydate
Text7.Text = MaturVal
term = 2
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text2.Text = UCase(Text2.Text)
Text3.SetFocus
End If
End Sub

60
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Private Sub Text3_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then

If Val(Text3.Text) < 500 Then


MsgBox "!!! Amount Can't Be Less Than 500 !!!", vbCritical + vbOKOnly, "AutoBank"

Exit Sub
End If
Text3.Text = Val(Text3.Text)
Option1.SetFocus
End If
End Sub

Private Sub Option1_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Check1.SetFocus
maturitydate = Date + 90
maturitydate = Text8.Text
term = 90
End If
End Sub

Private Sub Option2_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Check1.SetFocus
term = 6
maturitydate = Date + 180

End If
End Sub

61
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Private Sub Option3_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Check1.SetFocus
maturitydate = Date + 365
term = 1
End If
End Sub

Private Sub Option4_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Check1.SetFocus
maturitydate = Date + 365 + 365
term = 2
End If
End Sub

Private Sub cleaall()


Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""

Text8.Text = ""
Text4.Enabled = False
Text5.Enabled = False

Text6.Enabled = False

62
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Label4.Enabled = False
Label5.Enabled = False
Label6.Enabled = False
Check1.Value = 0
Option1.Value = True
Frame1.Enabled = False
Command1.SetFocus
End Sub

Private Function check() As Integer


Dim temp As Integer
temp = 0
If Check1.Value = 1 _
And Text4.Text = "" _
And Text5.Text = "" _
And Text6.Text = "" Then
temp = MsgBox("!!! No Additional Name Found !!!", vbCritical + vbOKOnly,
"AutoBank")
End If
check = temp
End Function

63
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

ATM APPLICATION FORM:

Private Sub Command3_Click()


End Sub

Private Sub cmdexit_Click()


Me.Hide
End Sub

Private Sub Command1_Click()


On Error Resume Next
CommonDialog1.DialogTitle = "Backup"
CommonDialog1.Filter = "*.mdb"
CommonDialog1.FileName = "*.mdb"
CommonDialog1.ShowOpen
If Not Len(CommonDialog1.FileName) = 5 Then
Text1.Text = CommonDialog1.FileName
End If
End Sub

Private Sub Command2_Click()


On Error Resume Next
CommonDialog1.DialogTitle = "Backup"
CommonDialog1.Filter = "*.mdb"
CommonDialog1.FileName = "*.mdb"

CommonDialog1.ShowOpen
If Not Len(CommonDialog1.FileName) = 5 Then
Text2.Text = CommonDialog1.FileName

64
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

End If
End Sub

Private Sub cmdsave_Click()


If MsgBox("Are you sure?", vbYesNo) = vbYes Then

Generate
With RS_atm

'.MoveFirst
.AddNew
.Fields(0) = Text8.Text
.Fields(1) = Text9.Text
.Fields(2) = Text10.Text
.Fields(3) = Text11.Text
.Fields(4) = Text12.Text
.Fields(5) = Text13.Text
.Fields(6) = Text14.Text
.Fields(7) = Label3.Caption
.Update
MsgBox "Your ATM Card has being loaded, your ID is " & Text11.Text & " and your
Access Code is " & Text12.Text, vbOKOnly
'.MoveNext

End With
End If
End Sub

Private Sub Form_Load()


Call connect

65
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Label3.Caption = Date
End Sub

Private Sub Text10_lostfocus()


With RS_account
.MoveFirst
While Not .EOF
If Text10.Text = .Fields(0) Then
Text11.Text = .Fields(9)
'Generate

End If
.MoveNext
Wend
End With
End Sub
Private Sub Generate()
Dim id As String
Dim code As String

id = 10001
Tmp = 3300
With RS_atm
Tmp = Tmp + RS_atm.RecordCount + 2
code = CStr(Tmp)
Text12.Text = code
End With
End Sub

66
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

UPDATE EMPLOYEE:

Dim temp
Private Sub cmdadd_Click()
Dim id As String
Dim code As String
id = "CUST"
temp = 1000

temp = temp + RS_customer.RecordCount + 1


code = id + "-" + CStr(temp)
Text1.Text = code
Frame1.Enabled = True
Text2.SetFocus
End Sub

Private Sub cmdsave_Click()


t=0
If Text2.Text = "" Or Text3.Text = "" Or Text4.Text = "" Or Text5.Text = "" Or
Text6.Text = "" _
Or Text7.Text = "" Or Text8.Text = "" Or Text9.Text = "" Or Text10.Text = "" Then
t = MsgBox("One of the required fields is empty.Please fill it", vbOKOnly + vbCritical,
"AutoBank")
Text2.SetFocus

Exit Sub
End If

If Frame1.Enabled = False Then

67
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

clearall
Exit Sub
End If
If MsgBox("Are You Sure You want to save the changes?", vbYesNo + vbQuestion,
"AutoBank") = vbYes Then
End If

With RS_employee
.MoveFirst
.Update
.Fields(1) = Text2.Text
.Fields(2) = Text3.Text
.Fields(3) = Text4.Text
.Fields(4) = Text5.Text
.Fields(5) = Text6.Text
.Fields(6) = Text7.Text
.Fields(7) = Text8.Text
.Fields(8) = Text9.Text
.Fields(11) = CommonDialog1.FileName
.Fields(12) = Text10.Text
.MoveNext

MsgBox "Record Successfully Updated"


clearall
End With

End Sub

Private Sub cmdexit_Click()


Unload Me

68
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

End Sub

Private Sub Combo1_Click()


With RS_employee
.MoveFirst
While Not .EOF
If Combo1.List(Combo1.ListIndex) = .Fields(0) Then
Text2.Text = .Fields(1)
Text3.Text = .Fields(2)
Text4.Text = .Fields(3)
Text5.Text = .Fields(4)
Text6.Text = .Fields(5)
Text7.Text = .Fields(6)
Text8.Text = .Fields(7)
Text9.Text = .Fields(8)
Image1.Picture = LoadPicture(.Fields(11))
Text10.Text = .Fields(12)

End If
.MoveNext
Wend

End With
End Sub

Private Sub Command4_Click()


CommonDialog1.ShowOpen
Image1.Picture = LoadPicture(CommonDialog1.FileName)
cmdsave.SetFocus
End Sub

69
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Private Sub Form_Load()

Call connect
With RS_employee
.MoveFirst
'While Not .EOF
Combo1.AddItem .Fields(0)
.MoveNext
End With
'Frame1.Enabled = False
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)


If KeyAscii = vbKeyReturn Or KeyAscii = vbKeyTab Then
Text2.Text = UCase(Text2.Text)
Text3.SetFocus
End If
End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text3.Text = UCase(Text3.Text)
Text4.SetFocus
End If
End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text4.Text = UCase(Text4.Text)
Text5.SetFocus

70
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

End If
End Sub

Private Sub Text5_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text5.Text = UCase(Text5.Text)
Text6.SetFocus

End If
End Sub

Private Sub Text6_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text6.Text = Val(Text6.Text)
Text7.SetFocus
End If
End Sub

Private Sub Text7_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text7.Text = UCase(Text7.Text)
Text8.SetFocus
End If
End Sub

Private Sub Text8_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text8.Text = Val(Text8.Text)
Text9.SetFocus
End If

71
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

End Sub

Private Sub Text9_KeyPress(KeyAscii As Integer)

If KeyAscii = 13 Then
Text9.Text = Val(Text9.Text)
Text10.SetFocus
End If
End Sub

Private Sub Text10_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Text10.Text = Val(Text10.Text)
Text11.SetFocus
End If
End Sub

Private Sub Text11_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Command4.SetFocus
End If
End Sub

Public Sub clearall()


'Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""

72
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
'Text11.Text = ""
Image1.Picture = LoadPicture("")
Frame1.Enabled = False
cmdadd.SetFocus
End Sub

73
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

WELCOME PAGE:

'Const HWND_TOPMOST = -1
'Const HWND_NOTOPMOST = -2
'Const SWP_NOSIZE = &H1
'Const SWP_NOMOVE = &H2
'Const SWP_NOACTIVATE = &H10
'Const SWP_SHOWWINDOW = &H40

Private Declare Sub SetWindowPos Lib "User32" (ByVal hWnd As Long, ByVal
hWndInsertAfter As Long, ByVal X As Long, ByVal Y As Long, ByVal cx As Long,
ByVal cy As Long, ByVal wFlags As Long)
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Dim i As Integer
Private Sub popup()
On Error Resume Next
Picture1.Visible = True
i = Me.Height
Me.Height = 0
While Me.Height < i
Me.Height = Me.Height + 2
Me.Top = Me.Top - 2
DoEvents
Wend
End Sub

74
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Private Sub popdown()


On Error Resume Next
i = Me.Height

While Me.Height > 500


Me.Height = Me.Height - 2
Me.Top = Me.Top + 2
DoEvents
Wend
End Sub
Private Sub Form_Activate()
On Error Resume Next
mdi_start.Enabled = False
lbl_user.Caption = login
lbl_time.Caption = "Login at:" & Format$(Now, "hh:mm:ss AM/PM")
lbl_day.Caption = "Today:" & Format$(Date, "dd-MMM-yy")
Call popup
'SetWindowPos Me.hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOACTIVATE Or
SWP_SHOWWINDOW Or SWP_NOMOVE Or SWP_NOSIZE
'Sleep welcometime 'Wait for 1 Seconds
'Call popdown
main_menu.Enabled = True
'Unload Me
End Sub

Private Sub Form_KeyPress(KeyAscii As Integer)


Unload Me
End Sub

75
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Private Sub Form_Load()


On Error Resume Next
Me.Left = Screen.Width - (Me.Width + 50)
Me.Top = Screen.Height - 450 '450 assumed height for taskbar
Picture1.Visible = False
End Sub

Private Sub lbl_day_Click()


End Sub

Private Sub lbl_time_Click()


End Sub

76
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

ACCOUNT INFORMATION:

Option Explicit
Dim StrSql As String

Public Sub Findnumber()


' record variables
Dim mark As Variant
Dim count As Integer

Call connect
count = 0
With RS_account
.Find "acc_number LIKE '" & txtName.Text & "%'"
Do While Not .EOF
'continue if last find succeeded
lstGuestName.AddItem RS_account!acc_number
'count the last title found
count = count + 1
' note current position
mark = .Bookmark
Find "acc_number LIKE '" & txtName.Text & "%'", 1, adSearchForward, mark
' above code skips current record to avoid finding the same row repeatedly;

' last arg (bookmark) is redundant because Find searches from current position
Loop
If count = 0 Then
MsgBox "No Match Found", vbOKOnly + vbInformation, "Information"
txtName.SetFocus

77
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Else
lblcount.Caption = "Total Matches found " & count
End If
' clean up
RS_account.Close
End With
' cnn.Close
Set RS_account = Nothing
Set cnn = Nothing

End Sub
Public Sub Findname()

' record variables


Dim mark As Variant
Dim count As Integer
Call connect
count = 0
With RS_account

.Find "acc_name LIKE '" & txtName.Text & "%'"


Do While Not .EOF
'continue if last find succeeded
lstGuestName.AddItem RS_account!acc_name
'count the last title found
count = count + 1
' note current position
mark = .Bookmark
.Find "acc_name LIKE '" & txtName.Text & "%'", 1, adSearchForward, mark

78
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

' above code skips current record to avoid finding the same row repeatedly;

' last arg (bookmark) is redundant because Find searches from current position

Loop
If count = 0 Then
MsgBox "No Match Found", vbOKOnly + vbInformation, "Information"
txtName.SetFocus
Else
lblcount.Caption = "Total Matches found " & count
End If
' clean up
RS_account.Close
End With
' cnn.Close

Set RS_account = Nothing


Set cnn = Nothing

End Sub

Private Sub cmdCancel_Click()


Unload Me
End Sub

Private Sub cmdGo_Click()


lstGuestName.clear
fraDetails.Visible = False
If Combo1.ListIndex = -1 Then
MsgBox "Select a Search Criteria", vbOKOnly + vbCritical, "Error"

79
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

End If

If txtName.Text = "" Then

MsgBox "Enter the name", vbOKOnly + vbCritical, "Error"


txtName.SetFocus
Exit Sub
End If
If Combo1.ListIndex = 0 Then
Findname
ElseIf Combo1.ListIndex = 1 Then
Findnumber
End If

End Sub

Private Sub Form_Load()


fraDetails.Visible = False

Call connect
lstGuestName.clear
Combo1.AddItem "Account Name"
Combo1.AddItem "Account number"
End Sub

Private Sub lstGuestName_Click()

Call connect
If Combo1.ListIndex = 0 Then
With RS_account

80
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

.MoveFirst
While Not .EOF
If lstGuestName.List(lstGuestName.ListIndex) = .Fields(9) Then

Text1.Text = .Fields(0)

Text2.Text = .Fields(9)
Text3.Text = .Fields(10)
Text4.Text = .Fields(11)
Text5.Text = .Fields(12)
Text6.Text = .Fields(17)

' Image1.Picture = LoadPicture(.Fields(13))

End If
.MoveNext
Wend

fraDetails.Visible = True

End With
ElseIf Combo1.ListIndex = 1 Then
With RS_account
.MoveFirst
While Not .EOF
If lstGuestName.List(lstGuestName.ListIndex) = .Fields(0) Then
Text1.Text = .Fields(0)
Text2.Text = .Fields(9)
Text3.Text = .Fields(10)
Text4.Text = .Fields(11)

81
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Text5.Text = .Fields(12)
Text6.Text = .Fields(17)
' Image1.Picture = LoadPicture(.Fields(13))
End If
.MoveNext

Wend

fraDetails.Visible = True

End With
End If
End Sub

82
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

TRANSACTION LOG DETAILS:

Option Explicit
Dim StrSql As String

Public Sub Findname()


' record variables
Dim mark As Variant
Dim count As Integer

Call connect

count = 0
RS_Name.Find "acc_no LIKE '" & txtName.Text & "%'"
Do While Not RS_transaction.EOF
'continue if last find succeeded
lstGuestName.AddItem RS_transaction!acc_no
'count the last title found
'count = count + 1
' note current position
mark = RS_transaction.Bookmark

RS_Name.Find "acc_name LIKE '" & txtName.Text & "%'", 1, adSearchForward, mark
' above code skips current record to avoid finding the same row repeatedly;
' last arg (bookmark) is redundant because Find searches from current position

Loop
If count = 0 Then
MsgBox "No Match Found", vbOKOnly + vbInformation, "Information"

83
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

txtName.SetFocus

Else
lblcount.Caption = "Total Matches found " & count
End If
' clean up
RS_transaction.Close
' cnn.Close
Set RS_transaction = Nothing
Set cnn = Nothing

End Sub
Public Sub Findnumber()

' record variables


Dim mark As Variant
Dim count As Integer
Call connect
count = 0
With RS_transaction

.Find "acc_no LIKE '" & txtName.Text & "%'"


Do While Not .EOF
'continue if last find succeeded
lstGuestName.AddItem RS_transaction!date1
'count the last title found
count = count + 1
' note current position

mark = .Bookmark

84
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

.Find "acc_no LIKE '" & txtName.Text & "%'", 1, adSearchForward, mark
' above code skips current record to avoid finding the same row repeatedly;
' last arg (bookmark) is redundant because Find searches from current position

Loop
If count = 0 Then
MsgBox "No Match Found", vbOKOnly + vbInformation, "Information"
txtName.SetFocus
Else
lblcount.Caption = "Total Number of Transaction made on your Account is " & count
End If
' clean up
RS_transaction.Close
End With
'cnn.Close
Set RS_transaction = Nothing
Set cnn = Nothing

End Sub

Private Sub cmdCancel_Click()


Unload Me
End Sub

Private Sub cmdGo_Click()


lstGuestName.clear
fraDetails.Visible = False
If txtName.Text = "" Then
MsgBox "Enter the name", vbOKOnly + vbCritical, "Error"
txtName.SetFocus

85
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Exit Sub
End If
Findnumber

End Sub

Private Sub Form_Load()


fraDetails.Visible = False

Call connect
lstGuestName.clear
End Sub

Private Sub lstGuestName_Click()


Call connect
With RS_transaction
.MoveFirst
While Not .EOF
If lstGuestName.List(lstGuestName.ListIndex) = .Fields(5) Then
Text1.Text = .Fields(1)
Text2.Text = .Fields(0)
Text3.Text = .Fields(2)
Text4.Text = .Fields(3)
Text5.Text = .Fields(4)
Text6.Text = .Fields(6)
'Image1.Picture = LoadPicture(.Fields(13))

End If
.MoveNext

86
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Wend

fraDetails.Visible = True
End With
End Sub

87
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

88
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

SYSTEM IMPLEMENTATION AND TESTING:

Implementation is the stage of the project where the theoretical design is turned into a
working system. It can be considered to be the most crucial stage in achieving a
successful new system gaining. The users confidence that the new system will work and
will be effective and accurate. It is primarily concerned with the user training and
documentation. Conversion usually takes place about the same time the user is being
trained or later. Implementation simply means convening a new system design into
operations, which is the process of converting a new revised system design into an
operational one.

SYSTEM TESTING:
Software Testing is the process of executing software in a controlled manner, in order to
answer the question– Does the software behaves as specified?. Software testing is often
used in association with the terms verification and validation. Validation is the checking
or testing of items, includes software for conformance and consistency with an associated
specification. Software testing is just one kind of verification, which also uses techniques
such as reviews, analysis, inspections, and walkthroughs. Validation is the process of
checking what has been specified is What the user actually wanted.

89
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

VALIDATION: Are we doing the right job?


VERIFICATION: Are we doing the right job?

Software testing should not be confused with debugging. Debugging is the process of
analyzing and localizing bugs when software does not behave as expected. Although the
identification of bugs will be obvious from playing with the software, a methodical
approach to software testing is a much more through means for identifying bugs.
Debugging is therefore an activity which supports testing but cannot replace testing.
Other activities which are often associated with software testing are static analysis and
dynamic analysis.
Static analysis investigates the source code of software, looking for problems and
gathering metrics without actually executing the code.
Dynamic analysis looks at the behavior of the software while it is executing to provide
information such as execution traces, timing profiles and test coverage information.

Testing is the set of activity that can be planned in advanced and conduct
Systematically. Testing begins at the module level and works towards the integration of
entire computers based system. Nothing is complete without testing. As it is vital success
of system testing objectives. There are several rules that can serve as testing objectives.

The levels of Testing:


 Unit Testing
 Integration Testing
 Data Validation Testing
 Output Testing

90
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Unit Testing:

Unit testing focuses verification effort on the smallest unit of software design. The
software component on module. Using the component level design description as a guide,
important control paths are tested to uncover errors within the boundary of the module.
The relative complexity of testing and uncovered scope established for unit testing.
The Unit testing is white box oriented and step can be conducted in parallel for multiple
components. The modular interface is tested to ensure that information is properly flows
into and out of the program unit order test. The local data structure is examined to ensure
the data stored temporarily maintain its integrity during all steps in an algorithm
execution.
Boundary condition are tested to ensure that all statements in the module have been
executed atleast once. Finally, all errors handling paths are tested.

Integration Testing:

Integration testing is systematic technique for constructing the program structure while at
the same time conducting tests to uncover errors associated with interfacing. The
objective is to take unit tested components and build a program structure that has been
dictated by design. The entire program is tested as whole. Corection is difficult because
isolation of acuses is complicated by vast expanse of entire program. Once these errors
are corrected, new ones appear and the process continues in a seemingly endless loop.

Validation Testing or System Testing:

This is final step in testing. In this, the entire system was tested as a whole with all forms,
code, modules and class modules. This form of testing is popularly known as Black Box
testing or System Testing.

91
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

Black Box testing method focuses on the functional requirements of the software. That is,
Black Box testing enables the software engineer to drive sets of input conditions that will
fully exercise all functional requirements for a program.
Black Box testing attempts to find errors in the following categories: incorrect or missing
functions, interface errors, errors in data structures or external data access, performance
errors and initialization errors and termination errors.

Output Testing or User Acceptance Testing:

The system is considered is tested for user acceptance; here it should satisfy the firm’s
need. The software should keep in touch with perspective system; user at the time of
developing and making changes whenever required. This

done with respect to the following points: Input Screen Designs, Output Screen Designs,
Online message to guide the user and the like
The above testing is done taking various kinds of test data. Preparation of test data plays
a vital role in the system testing. After preparing the test data, the system under study is
tested using that test data. While testing system by which test data errors are again
uncovered and corrected by using above testing steps and corrections are also noted for
future also.

92
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

93
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

LOGIN FORM:

MDI MAIN FORM:

94
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

WELCOME BOX:

ADD EMPLOYEE:

95
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

UPDATE EMPLYOEE:

DEPOSIT:

96
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

WITHDRAWL:

NEW ACCOUNT:

97
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

FIXED DEPOSIT:

ACCOUNT INFORMATION:

98
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

TRANSACTION DETAILS:

ADD USER:

99
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

ATM CARD APPLICATIONS:

100
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

101
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

LOGIN USERS TABLE:

EMPLOYEE DATABASE:

102
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

FIXED DEPOSIT DATABASE:

ATM DATABASE:

ACCOUNT DETAILS:

103
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

DEPOSIT DATABASE:

TRANSACTION DETAILS:

104
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

105
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

In doing this project we obtained good amount of knowledge in the database


Environment in the windows operating system and thus has given us enough satisfaction

We have also acquired a good deal of knowledge and working experience in Visual Basic
6.0 as well as Microsoft Access. The synchronization of the interface between Visual
Basic 6.0 as front end and MS Access as back end was really interesting.

The report is well organized and all the technical specifications have been presented in a
good format in the report.

This project can be used as foundation for implementing the advanced concepts of
database like object oriented relational database model.

FUTURE ENHACEMENT:

In the service form we can include an option to selcet the particulars according to the
choice of the customers using the check box tool and process and genereate bill according
to the selection.

106
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

107
DEPARTMENT OF BCA (EPCHE)
BANKING MANAGEMENT SYSTEM

BOOKS:

1. Charles Hampfed (2000) ‘Visual Basic’ University of Toronto

2. Herbert Schildt (2000) ‘Visual Basic 6.0’ Tata McGraw Hill

3. John Zukowski (2000) ‘Visual Basic 6.0’ BPB Publications

4. Jamie Jaworsky ‘Visual Basic 6.0’ Techmedia

5. Stefen Denninger ‘Visual Basic 6.0’ Author’s Press

WEBSITES:

https://en.wikipedia.org/wiki/Bank

www.vbtutor.net/vbtutor.html

https://docs.microsoft.com/en-us/dotnet/visual-basic/programming-guide/language-
features/strings/validating-strings

https://www.safaribooksonline.com/library/view/programming-visual-
basic/0596000936/ch08s03.html

https://www.youtube.com/watch?v=Byt6D7M4AJU

https://www.youtube.com/watch?v=oReH2vO8Izc

108
DEPARTMENT OF BCA (EPCHE)

You might also like