You are on page 1of 55

BANKING MANAGEMENT SYSTEM

Submitted in partial fulfilment of the requirements

For the award of the degree

Of

BACHELOR OF COMPUTER APPLICATIONS

Of

Bangalore University
By

Name of the Candidates

Prithi .N (16BUSB7039)

Sai Kumar (16BUSB7043)

November 2018

DEPARTMENT OF COMPUTER APPLICATIONS

SSMRV College

BENGALURU - 560041
Rashtreeya Shikshana Samithi Trust
SSMRV College
4th T Block Jayanagar, Bangalore-560041.

Department of Computer Applications


CERTIFICATE
This is to certify that this project entitled “BANKING MANAGEMENT SYSTEM” is
a bonafide work done by PRITHI.N (16BUSB7039), SAI KUMAR (16BUSB7042)
submitted to Bangalore University, Bengaluru for the award of Bachelor of Computer
Applications during the academic year 2018-19.

Internal Project Guide Head of the Department.

Submitted for the Viva-Voce Examination held on ____________


Abstract

Requirements definition and management is recognised as a necessary step in the delivery


of successful system and software projects, discipline is also required by standards,
regulations, and equality improvement initiatives. Creating and managing requirements
is a challenge of IT, systems and product development projects or indeed for any activity
where we have to manage a contractual relationship. Organization need to effectively
define and manage requirements to ensure they are meeting needs of the customer, while
providing compliance and staying on the schedule and within budget.

Banking activities are considered to be the life blood of the national economy. Without
banking services trading in business activities cannot be carried n smoothly. Banks are
the distributers and protectors of liquid capital which is of vital significance to a
developing country. Efficient administration of banking system helps in the economic
growth of the nation. Banking is useful to trade and commerce.

The BANKING MANAGEMENT SYSTEM undertaken as project is based on relevant


technologies. The main aim of this project is to develop software for banking sector. The
main target is the clerk or the manager who use it daily and to make their work as simpler
as possible. This project has been developed to carry out the processes easily and quickly,
which is not possible with the manual system, which are overcome by this software.
The BANK has been working for Accounts information, Withdrawal, Deposit amount.
In this software you can keep record for daily banking transaction.

The OBJECTIVE is to prepare a software or application, which could maintain data &
provide a user friendly interface for retrieving customer related details just in few
seconds, with 100% accuracy. Software is completely computerised, so it is not time
consuming process and can be implemented further. To allow only authorised user to
access various function and processed available in the system. Locate any account wanted
by the user. Reduced clerical work as most of the work done by computer. Provide greater
speed and reduced time consumption.

The main modules of the system includes LOGIN module which deals with the login of
Both clerk and manager having their unique username and password. CLERK module
deals with maintaining the information of customers and their account like New account,
Update account, Delete account and their daily transactions like debit or credit.
MANAGER module deals with maintaining the information of Employee details and the
Loan details.

The project is developed using VB.Net (Visual Studio 2013) and MySQL 5.5 at the back
end. This project presents the development of a GUI based package that caters to all the
information needed for the users. It is felt that this package is of great help to the people
who use this software

The system has given satisfactory results at academic level testing. However, field-testing
of the software is yet to be done to improve the software.
Table of Contents

Chapter Title Page No.

1 INTRODUCTION
1.1 About the Project
1.2 Existing System & its Limitations
1.3 Proposed System
2 SYSTEM REQUIREMENT
2.1 Hardware Specification
2.2 Software Specification
2.2.1Operating System
2.2.2 Language/Package
3 SYTEM DESIGN
3.1 Input Design
3.2 Code Design
3.3 Output Design
3.4 Database Design
3.4.1 Tables
3.4.2 E-R Diagrams
3.4.3 Data Flow Diagrams
4 SYSTEM IMPLEMENTATION AND TESTING
4.1 System Implementation
4.2 System Testing
5 CONCLUSION
6 FUTURE ENHANCEMENTS
BIBLIOGRAPHY
APPENDIX - I Source Code
APPENDIX - II Snap Shots
1. INTRODUCTION

1.1 About the Project:

In this project, we will be designing a simple Bank Management System for the User and
Manager of the Bank using VB.net (Visual Studio 2013) technology. This application
will provide a soothing experience for both of them, while at the same time allowing
him/her to keep track of the various activities in the bank, security details and other
important notifications through this application thereby trying to eliminate tedious paper
works and providing a new way of administrating using technology to the aid.

We have developed a stand-alone windows application for this project for providing a
smooth user interface for the user and manager of the bank.

1.2 Existing System & its Limitations:

The existing system of bank management system maintains tedious paper works of all
important information about customer details and account details. They will maintain a
huge ledger book to keep the track of every information about the bank. Through our
project we aspire to eliminate the maintaining of tedious paper work by providing a
unique ID and password to the clerk and manager of the bank through which he/she will
be notified with all the various important events to be taken care of in administration of
bank.
1.3 Proposed System:

The proposed system of this application, which could maintain data & provide a user
friendly interface for retrieving customer related details just in few seconds, with 100%
accuracy. Software is completely computerised, so it is not time consuming process and
can be implemented further. To allow only authorised user to access various function and
processed available in the system. Locate any account wanted by the user. Reduced
clerical work as most of the work done by computer. Provide greater speed and reduced
time consumption.
2. SYSTEM REQUIREMENT

2.1 Hardware Requirements:

The minimum hardware requirements for this project or as follows

• Processor: Standard processor with a minimum clock speed of 1.6 GHz.


• RAM: 512 MB or more.
• Hard Disk: 10GB or more
• Monitor
• Keyboard
• Mouse

2.2 Software Requirements:

The minimum software requirements for this project are as follows

• Operating system: Windows 10


• Front end: Visual Studio 2013
• Back end: My SQL Server 5.5

2.2.1 Operating System:

Windows 10 is a series of personal computer operating system produced by Microsoft as


part of its Windows NT family of operating systems. It is the successor to Windows 8.1,
and was released to manufacturing on July 15, 2015, and to retail on July 29, 2015.
Windows 10 receives new builds on an ongoing basis, which are available at no additional
cost to users. Mainstream builds of Windows 10 are labelled version YYMM with YY
representing the year and MM representing the month of release. For example, the latest
mainstream build of Windows 10 is Version 1809. There are additional test builds of
Windows 10 available to Windows Insiders. Devices in enterprise environments can
receive these updates at a slower pace, or use long-term support milestones that only
receive critical updates, such as security patches, over their ten-year lifespan of extended
support.

One of Windows 10's most notable features is support for universal apps, an expansion
of the Metro-style apps first introduced in Windows 8. Universal apps can be designed to
run across multiple Microsoft product families with nearly identical code—including
PCs, tablets, smartphones, embedded systems, Xbox One, Surface Hub and Mixed
Reality. The Windows user interface was revised to handle transitions between a mouse-
oriented interface and a touchscreen-optimized interface based on available input
devices—particularly on 2-in-1 PCs, both interfaces include an updated Start menu which
incorporates elements of Windows 7's traditional Start menu with the tiles of Windows
8. Windows 10 also introduced the Microsoft Edge web browser, a virtual desktop
system, a window and desktop management feature called Task View, support for
fingerprint and face recognition login, new security features for enterprise environments,
and DirectX 12.

Windows 10 received mostly positive reviews upon its original release in July 2015.
Critics praised Microsoft's decision to provide a desktop-oriented interface in line with
previous versions of Windows, contrasting the tablet-oriented approach of 8, although
Windows 10's touch-oriented user interface mode was criticized for containing
regressions upon the touch-oriented interface of Windows 8. Critics also praised the
improvements to Windows 10's bundled software over Windows 8.1, Xbox Live

Integration, as well as the functionality and capabilities of the Cortana personal assistant
and the replacement of Internet Explorer with Microsoft Edge. However, media outlets
have been critical of changes to operating system behaviours, including mandatory update
installation, privacy concerns over data collection performed by the OS for Microsoft and
its partners and the adware-like tactics used to promote the operating system on its release.
Features:

• User interface and Desktop


• System security
• Command Line
• Storage Requirements
• Online services and functionality
• Multimedia and gaming

2.2.2 Language / Package:

Microsoft Visual Studio 2013:

Visual Studio 2013 introduces a connected IDE experience, enabling us to get started
with Visual Studio 2013 more quickly. When we start Visual Studio 2013 for the first
time, we will be asked to sign in using your Microsoft account. We may already use the
same account with your MSDN or Team Foundation Service subscriptions. Once signed
in, our copy of Visual Studio 2013 is registered for our use without the need for any extra
steps. Visual Studio 2013 will also automatically synchronize settings across our devices
utilizing the Connected IDE experience. Synchronized settings include categories such as
keyboard shortcuts, Visual Studio appearance (theme, fonts, etc.) and more, all while
keeping you in full control through the Synchronized Settings options.
Visual Studio 2013 included many user interface improvements based on customer
feedback and Microsoft's core design principle of keeping the focus on the content to
deliver an improved user experience. We may notice the more than 400 modified icons
with greater differentiation and increased use of colour, a redesigned Start page, and other
subtle design changes throughout Visual Studio.

Visual Studio 2013 included a number of improvements to help us to be more productive


and stay focused when coding. Some features first appeared as experiments in the Visual
Studio Power Tools extension before being refined and incorporated into Visual Studio.
Productivity features such as automatic bracket completion, the ability to move code lines
or blocks using keyboard shortcuts, and in-line navigation are now built-in. In addition,
Visual Studio 2013 includes a new Team Explorer with an enhanced Home page that
provides easier navigation to team collaboration features, including the ability to undock
Pending Changes and Builds into a separate window.

Features:

• IDE Enhancements
• New Productivity Features
• New Peek Definition Features
• New Code lens Features
• ASP.NET Project Consolidation
• New Typescript Features
• Team Development Enhancement
My SQL Server 5.5:

MySQL is an open source relational data base management system (RDBMS). Its name
is an abbreviation Structured Query Language. The MySQL development project has
made its source code available under the terms of the GNU General Public License, as
well as under a variety of proprietary agreements. MySQL was owned and sponsored by
a single for-profit firm, the Swedish company MySQL AB, now owned by Oracle
Corporation. For proprietary use, several paid editions combination of "My", the name of
co-founder Michael Widenius’s daughter, and “SQL”, they are available, and offer
additional functionality.

MySQL is a central component of the LAMP open-source web application software stack
(and other "AMP" stacks). LAMP is an acronym for "Linux, Apache, MySQL, Perl
/PHP/Python". Applications that use the MySQL database include: TYPO3, MODx,
Joomla, WordPress, Simple Machines Forum, phpBB, MyBB, and Drupal. MySQL is
also used in many high-profile, large-scale websites, including Google (though not for
searches), Facebook, Twitter, Flickr, and YouTube.
MySQL is written in C and C++. Its SQL parser is written in yacc, but it uses a home-
brewed lexical analyser. MySQL works on many system platforms, including AIX, BSDi,
FreeBSD, HP-UX, eComStation, i5/OS, IRIX, Linux, macOS, Microsoft Windows,
NetBSD, Novell NetWare, OpeBSD, Open Solaris, OS/2 Warp, QNX, Oracle Solaris,
Symbian, SunOS, SCO Open Server, SCO UnixWare, Sanos and Tru64. A port of
MySQL to OpenVMS also exists.

Features:
MySQL is offered under two different editions: the open source MySQL Community
Server and the proprietary Enterprise Server. MySQL Enterprise Server is differentiated
by a series of proprietary extensions which install as server plugins, but otherwise
shares the version numbering system and is built from the same code base.

Major features as available in MySQL 5.5:

• Cross-platform support
• Stored procedures, using a procedural language that closely adheres to
SQL/PSM
• Updatable views
• Online Data Definition Language (DDL) when using the InnoDB Storage
Engine.
• Information schema
• A set of SQL Mode options to control runtime behavior, including a strict mode
to better adhere to SQL standards.
• Query Catching.
• Sub-SELECTs (i.e. nested SELECTs)
• Unicode support
Chapter 3
SYSTEM DESIGN
The most creative and challenging face of the system development is
System Design. It provides the understanding and procedural details
necessary for implementing the system recommended in the feasibility
study. Design goes through the logical and physical stages of development.
In designing a new system, the system analyst must have a clear
understanding of the objectives, which the design is aiming to fulfill. The
first step is to determine how the output is to be produced and in what format.
Second, input data and master files have to be designed to meet the
requirements of the proposed output. The operational phases are handled
through program construction and testing.
Design of a system can be defined as a process of applying various
techniques and principles for the purpose of defining a device, a process or
a system in sufficient detail to permit its physical realization. Thus system
design is a solution to “how to” approach to the creation of a new system.
Thus important phase provides the understanding and the procedural details
necessary for implementing the system recommended in the feasibility
study. The design step provides a data design, architectural design, and a
procedural design.
3.1 CODE DESIGN

First phase of implementation is coding. Coding can be done in two


ways. One by automatic program code and other by programmer’s
manually written code. A code generator is a suite of programs that
matches the input to an appropriate code template and from these
produces modules of code. The code is made simple in such a way that
another programmer can easily understand and work on that in future.
The crucial phase in the system development life cycle is the successful
implementation of the new system design. The process of converting as
new or revised system into an operational one is known as system
implementation. This includes all those activities that take place to
convert from an old system to a new system. The system can be
implemented only after a through testing is done and if it is found to work
according to the specifications. The most crucial stage in achieving a new
successful system and giving confident on the new system for the users
is that it will work effectively and efficiently. It involves careful planning,
investigation of the current system and its constraints on implementation,
design of methods to achieve the changeover.

3.2 INPUT DESIGN

In the input design, user-oriented inputs are converted into a


computer based system format. It also includes determining the record
media, method of input, speed of capture and entry on to the screen. Online
data entry accepts commands and data through a keyboard. The major
approach to input design is the menu and the prompt design. In each
alternative, the user’s options are predefined. The data flow diagram
indicates logical data flow, data stores, source and destination. Input data are
collected and organized into a group of similar data. Once identified input
media are selected for processing.
In this software, importance is given to develop Graphical User
Interface (GUI), which is an important factor in developing efficient and
user-friendly software. For inputting user data, attractive forms are designed.
User can also select desired options from the menu, which provides all
possible facilities.
Also the important input format is designed in such a way that
accidental errors are avoided. The user has to input only just the minimum
data required, which also helps in avoiding the errors that the users may
make. Accurate designing of the input format is very important in developing
efficient software. The goal or input design is to make entry as easy, logical
and free from errors.
3.3 OUTPUT DESIGN

In the output design, the emphasis is on producing a hard copy of the


information requested or displaying the output on the CRT screen in a
predetermined format. Two of the most output media today are printers
and the screen. Most users now access their reports from a hard copy or
screen display. Computer’s output is the most important and direct source
of information to the user, efficient, logical, output design should improve
the systems relations with the user and help in decision-making.
As the outputs are the most important source of information to the
user, better design should improve the system’s relation and also should
help in decision-making. The output device’s capability, print capability,
print capability, response time requirements etc should also be considered
form design elaborates the way output is presented and layout available
for capturing information. It’s very helpful to produce the clear, accurate
and speedy information for end users.

3.4 DATABASE DESIGN

Database design is about the logically implied data. Each and every
data in the form can be designed in such a manner to understand the
meaning. Database designing should give a clear understanding and idea
about the related data used to construct a form.

3.4.1 TABLES

1: Login

Field Name Data type

Employee Id Int(10)

Username Varchar(20)

Password Varchar(20)

Designation Varchar(20)

Secret Question Varchar(200)

Answer Varchar(50)

2: Captcha

Field Name Data type

Id Int(11)

Captcha Varchar(5)
3: Customer

Field Name Data type

Access Int(11)

Customer Number Int(11)

Name Varchar(20)

Mobile Varchar(10)

Email Varchar(30)

Address Varchar(100)

Photo Varchar(200)

4: Employee

Field Name Data type

Access Int(11)

Employee Id Int(11)

Name Varchar(20)

Date of Birth Date

Mobile Varchar(10)

Email Varchar(50)

Joining Date Date

Designation Varchar(20)

Photo Varchar(200)
5: Account

Field Name Data type

Access Int(11)

Account Number Int(25)

Customer Number Int(11)

Name Varchar(20)

Account Type Varchar(15)

Opening Date Date

Balance Varchar(25)

6: ATM

Field Name Data type

Access Int(11)

Account Number Int(25)

Card Number Int(11)

Pin Int(11)

CVV Int(11)

Expiry Date Date


7: Loan

Field Name Data type

Access Int(11)

Account Number Int(25)

Loan Amount Int(25)

Loan type Varchar(20)

Period Int(3)

Interest Int(3)

Monthly pay Int(11)

Total Amount Int(25)

Balance Int(25)

8: Transactions

Field Name Data type

Transaction Id Int(11)

Account Number Int(25)

Transaction Type Varchar(20)

Transaction Date Date

Amount Int(20)
3.4.2 E-R Diagrams

E-R-Diagram is a diagrammatic representation of the logical design of

the database. In E-R diagram entities, attributes and relationship is

represented.

Entity: An entity is a real time object. In databases the entity refers to the

tables.

Attribute: An attribute is an characteristic representation of a column in

a table as known as Fields.

Relationship: It is the association between one entity to another.


3.4.3 DATA FLOW DIAGRAM

A Data Flow Diagram (DFD) is a diagram that describes the flow of data and the
processes that change data throughout a system. It’s a structured analysis and design
tool that can be used for flowcharting in place of or in association with information.
Oriented and process oriented system flowcharts. When analysts prepare the Data
Flow Diagram, they specify the user needs at a level of detail that virtually determines
the information flow into and out of the system and the required data resources. This
network is constructed by using a set of symbols that do not imply physical
implementations. The Data Flow Diagram reviews the current physical system,
prepares input and output specification,
specifies the implementation plan etc.
Four basic symbols are used to construct data flow diagrams. They are symbols that
represent data source, data flows, and data transformations and data storage. The
points at which data are transformed are represented by enclosed figures, usually
circles, which are called node.

Context Level DFD

0
Customer Banking Accounting
Management
Context Level 1 DFD

1.0

Login Banking
Management

2.0 3.0 4.0 5.0 6.0

Create New Create New Create New


Customer Employee Account New Loan Transactions

D1 Customer D2 Employee D3 Account D4 Loan details D4 Transactions

Context Level2 DFD

2.0
Create New
Customer
Customer

2.1 2.2 2.3

Add Delete Update


Customer Customer Customer

D1 Customer
3.0
Create New
Employee
Employee

3.1 3.2 3.3

Add Delete Update


Employee Employee Employee

D2 Employee

4.0
Create New
Account
Account

4.1 4.2
Add Delete
Account Account

D3 Account
5.0

Loan New Loan

5.1 5.2
Add Delete
Loan Loan

D4 Loan Details

6.0

Transactions Transactions

6.1 6.2 6.3

Savings Current
EMI Account Account

D5 Transactions
4. SYSTEM IMPLEMENTATION AND TESTING

4.1 System Implementation:

Implementation is the stage, which is crucial in the life cycle of the new system designed,
planning, training and system testing are the main stages in the implementation.
Converting a new or revised system into an operational one is called implementation.

Implementation includes all those activities involving the conversion of an old system
into a new system. The new system may be in a totally new concept or a revision of the
old one, a proper implementation is required for reliable system, but still does not
guarantee a successful system. Chances are there that if implementation is not proper the
whole system may become a failure

Conversion an important aspect of implementation is the process of change from the old
system to the new one. A review is conducted once implementation is over. Information
required for maintenance is collected during this phase. The basic review method is data
collection methods of interview, observation, sampling and record inspection.

• Operating of the equipment


• Data coding
• Methods on form transaction
• Decision support activities
• Data handling activities

Here we have used some Normalisation techniques while implementing our Project.

Normalisation:

Normalization is a process of organizing the data in database to avoid data redundancy,


insertion anomaly, update anomaly & deletion anomaly. Let’s discuss about anomalies
first then we will discuss normal forms.

Update anomaly: Consider we have same informations in two different table. If we want
to update some information then we have to update the same in two tables or the data will
become inconsistent. This is called as update anomaly.
Insert anomaly: Suppose a new employee joins the company, who is under training and
currently not assigned to any department then we would not be able to insert the data into
the table if department field doesn’t allow nulls.

Delete anomaly: Suppose, if at a point of time the company closes the department then
deleting the rows of that dept. would also delete the information of employee .

To overcome these anomalies we need to normalize the data.

First normal form (1NF)


As per the rule of first normal form, an attribute (column) of a table cannot hold multiple
values. It should hold only atomic values.

Second normal form (2NF)


A table is said to be in 2NF if both the following conditions hold:

• Table is in 1NF (First normal form)


• No non-prime attribute is dependent on the proper subset of any candidate key of
table.

An attribute that is not part of any candidate key is known as non-prime attribute.

Third Normal form (3NF)


A table design is said to be in 3NF if both the following conditions hold:

• Table must be in 2NF


• Transitive functional dependency of non-prime attribute on any super key should
be removed.
4.2 System Testing:

Testing is a process to show the correctness of the program. Testing is needed to show
completeness, it improves the quality of the software and to provide the maintenance aid.
Some testing standards are therefore necessary reduce the testing costs and operation
time. Testing software extends throughout the coding phase and it represents the ultimate
review of configuration, design and coding. Based on the way the software reacts to these
testing, we can decide whether the configuration that has been built is study or not. All

Components of an application are tested, as failure to do so many results in a series of


bugs after the software is put to use.

BLACKBOX Testing:

Black box testing also called behavioural testing, focuses on the functional requirements
of software. This testing approach enables the software engineer to derive the input
conditions that will fully exercise all requirements for a program. Black box testing
attempts to find the errors like

• Incorrect or missing function


• Interface errors
• Errors in data structures or external database access
• Behaviour or performance errors
• Initialization and termination errors

In Black box testing software is exercised over a full range of inputs and outputs are
observed for correctness.
WHITEBOX Testing:

White box testing is also called Glass box testing is a test design control; structure of
the procedural design to derive test cases using White box testing method, the software
engineer van derive the test cases that guarantee that all independent paths within the
module have been exercised at least once. Exercise all logic decisions on their true or
false sides. Execute all loops at their boundaries and within their operational bounds.
Exercise internal data structure to ensure their validity.

Software Testing Strategies:

The implemented software

System satisfies the requirements. Testing involves

• Unit testing
• Integration testing
• Acceptance testing

The first level of test is unit testing. The purpose of unit testing is to ensure that each
program is fully tested.

The second step is integration testing. In this individual program units or programs are
integrated and tested as a complete system to ensure that the software requirements are
meet.

Acceptance Testing involves planning and the execution of various types of tests in
order to demonstrate that finally our project meets the requirements after going through
all the levels of testing.
5. CONCLUSION

This project entitled “Banking Management System” has been developed


efficiently to meet the needs of the users. It is developed using VB 2013 and MYSQL
SERVER 5.5. The system can be easily modified or expanded. The software provides
all facilities required in the finished system, and the reports are user-friendly. The
software requires less effort to operate. The assistance of computers will reduce the
work done by the staff. The system provides flexibility for incorporating new
features, which may be necessary in future. The system has been tested and
implemented. Finally, we have concluded that system has capacity to do what it was
expected to do.

6. SCOPE OF THE FURTHER DEVELOPMENT

This is the result of the hard work of our team and periodic guidance of our project
guide. This software is developed in the available limited resources. So we will surely
upgrade this software when necessary or when we are with good resources.

• Customer issues development based on their needs, so the help desk will be aware of
their needs and easy to use.
• Upgrading security protocols to Bio-Metrics system.
• This application will be made online.
• Updating the Bank Balance after deposits and Withdrawals from ATM.
• Developing a mobile App for Banking system that help users to do his/her operations
without going to the bank. Only he/she need to sign in using his/her A/C NO and
password. Finally the system will update automatically.

BIBILIOGRAPHY
• http://stackoverflow.com/questions/
• www.vbforums.com
• www.dreamincode.net
• www.CodeProject.com
APPENDIX-I

Source Code

For Login:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click

conn = New MySqlConnection


conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s1 As String
Dim reader As MySqlDataReader
Static Dim count As Integer
Try
conn.Open()
s1 = "select * from bank.login where uname='" & Trim(TextBox1.Text) & "'"
com = New MySqlCommand(s1, conn)
reader = com.ExecuteReader
If Trim(TextBox1.Text) = " " Or Trim(TextBox2.Text = "") Then
MessageBox.Show("Please Enter User ID and Password", "Alert",
MessageBoxButtons.OK, MessageBoxIcon.Warning)
TextBox1.Focus()
Else
If count < 3 Then
If reader.Read Then
If reader("pwd") = Trim(TextBox2.Text) Then
If reader("desig") = "manager" Then
Me.Hide()
Form3.Show()
Form3.Label3.Text = UCase(Me.TextBox1.Text)
ElseIf LCase(reader("desig")) = "clerk" Then
Me.Hide()
Form2.Show()
Form2.Label3.Text = UCase(Me.TextBox1.Text)
End If
Else
count = count + 1
MessageBox.Show("Incorrect Password", "Alert", MessageBoxButtons.OK,
MessageBoxIcon.Error)
TextBox2.Clear()
TextBox2.Focus()
End If
Else
MessageBox.Show("Incorrect Username ", "Alert", MessageBoxButtons.OK,
MessageBoxIcon.Error)
TextBox1.Clear()
TextBox2.Clear()
TextBox1.Focus()
End If
End If
End If
conn.Close()
Catch ex As MySqlException
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
End Sub

For Adding Customer:


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s1 As String
Dim com As MySqlCommand
Try
conn.Open()
If Trim(TextBox1.Text) = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or
TextBox4.Text = "" Or TextBox5.Text = "" Or PictureBox1.ImageLocation = ""
Then
MessageBox.Show("Fields must not be
Empty","ALERT",MessageBoxButtons.OK,MessageBoxIcon.Warning)
Else
s1 = "insert into bank.customer values(0," & TextBox1.Text & ",'" &
TextBox2.Text & "'," & TextBox3.Text & ",'" & TextBox4.Text & "','" &
TextBox5.Text & "')"
com = New MySqlCommand(s1, conn)
reader = com.ExecuteReader
MessageBox.Show("Customer Data Saved Successfully!!!!")
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
TextBox5.Clear()
End If
TextBox1.Enabled = True
TextBox1.Focus()
conn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
End Sub

For Updating Customer:


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
conn = New MySqlConnection
conn.ConnectionString = "server=localhost;userid=root;password=sai;database=bank"
Dim s As String
Dim reader As MySqlDataReader
Try
conn.Open()
s = "update bank.customer set name='" & TextBox1.Text & "',mobile='" &
TextBox2.Text & "',email='" & TextBox3.Text & "',address='" & TextBox4.Text & "'
where cusno='" & ComboBox1.Text & "'"
com1 = New MySqlCommand(s, conn)
reader = com1.ExecuteReader
MessageBox.Show("Data Saved Successfully!!!!")
ComboBox1.Text = ""
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
ComboBox1.Focus()
reader.Close()
conn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
End Sub

For Deleting Customer:


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s As String
Dim reader As MySqlDataReader
If ComboBox1.Text = "" Then
MessageBox.Show("Select any customer id to be deleted!!!", "Warning",
MessageBoxButtons.OK, MessageBoxIcon.Warning)
Else
Try
conn.Open()
s = "update bank.customer set access=1 where cusno='" & ComboBox1.Text & "'"
com1 = New MySqlCommand(s, conn)
reader = com1.ExecuteReader
MessageBox.Show("Deleted Successfully!!!!")
ComboBox1.Text = ""
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
ComboBox1.Focus()
reader.Close()
conn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
ComboBox1.Focus()
End If
End Sub
For Adding Account:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
conn = New MySqlConnection
conn.ConnectionString = "server=localhost;userid=root;password=sai;database=bank"
Dim s1, s2 As String
Dim com, com1 As MySqlCommand
Try
conn.Open()
If Trim(TextBox1.Text) = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or
TextBox4.Text = "" Or TextBox5.Text = "" Or TextBox6.Text = "" Or TextBox7.Text =
"" Or TextBox8.Text = "" Or ComboBox1.Text = "" Then
MessageBox.Show("Fields must not be Empty", "ALERT", MessageBoxButtons.OK,
MessageBoxIcon.Warning)
Else
s1 = "insert into bank.account values(0," & TextBox1.Text & ",'" & ComboBox2.Text
& "','" & TextBox2.Text & "','" & ComboBox1.Text & "','" & TextBox3.Text & "'," &
TextBox4.Text & ")"
com = New MySqlCommand(s1, conn)
reader = com.ExecuteReader
reader.Close()
MessageBox.Show("Account Details Saved Successfully!!!!")
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
ComboBox1.Text = ""
End If
conn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
Button1.Enabled = False
End Sub

For Deleting Account:


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s, s1, s3 As String
Dim reader, reader1, r2 As MySqlDataReader
If ComboBox1.Text = "" Then
MessageBox.Show("Select account number to be deleted!!!!", "Warning",
MessageBoxButtons.OK, MessageBoxIcon.Warning)
Else
Try
conn.Open()
s = "update bank.atm set access=1 where accno='" & ComboBox1.Text & "'"
com = New MySqlCommand(s, conn)
reader1 = com.ExecuteReader
reader1.Close()
MessageBox.Show("Deleted Successfully!!!!")
ComboBox1.Text = ""
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
ComboBox1.Focus()
conn.Close()
Me.Refresh()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
ComboBox1.Focus()
End If
End Sub

For Adding Loan:


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s1 As String
Dim com As MySqlCommand
Dim reader As MySqlDataReader
Try
conn.Open()
If Trim(TextBox1.Text) = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or
TextBox4.Text = "" Or TextBox5.Text = "" Or ComboBox1.Text = "" Or
ComboBox2.Text = "" Then
MessageBox.Show("Fields must not be Empty", "ALERT", MessageBoxButtons.OK,
MessageBoxIcon.Warning)
Else
s1 = "insert into bank.loan values(0," & ComboBox1.Text & "," & TextBox1.Text
& ",'" & ComboBox2.Text & "'," & TextBox2.Text & "," & TextBox3.Text & "," &
TextBox4.Text & "," & TextBox5.Text & "," & TextBox5.Text & ")"
com = New MySqlCommand(s1, conn)
reader = com.ExecuteReader
MessageBox.Show("Data Saved Successfully!!!!")
ComboBox1.Text = ""
ComboBox2.Text = ""
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
TextBox5.Clear()
ComboBox1.Focus()
End If
conn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
ComboBox1.Focus()
End Sub

For Deleting Loan:


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
If Not TextBox6.Text = 0 Then
MessageBox.Show("some balance yet to pay", "Alert", MessageBoxButtons.OK,
MessageBoxIcon.Error)
ComboBox1.Text = ""
TextBox7.Clear()
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
TextBox5.Clear()
TextBox6.Clear()
ComboBox1.Focus()
Else
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim reader As MySqlDataReader
Dim com As MySqlCommand
Dim s As String
Try
s = "update bank.loan set access=1 where accno='" & Trim(ComboBox1.Text) &
"'"
conn.Open()
com = New MySqlCommand(s, conn)
reader = com.ExecuteReader
MessageBox.Show("deleted successfully!!!!!!!")
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
End If
ComboBox1.Focus()
End Sub

For Adding Employee:


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s As String
Try
conn.Open()
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or
TextBox4.Text = "" Or TextBox5.Text = "" Or PictureBox1.ImageLocation = "" Or
ComboBox1.Text = "" Then
MessageBox.Show("Fields must not be Empty", "ALERT", MessageBoxButtons.OK,
MessageBoxIcon.Warning)
Else
s = "insert into bank.employee values(0,'" & TextBox1.Text & "','" &
TextBox2.Text & "','" & DateTimePicker1.Value & "','" & TextBox3.Text & "','"
& TextBox4.Text & "','" & TextBox5.Text & "','" & ComboBox1.Text & "')"
com = New MySqlCommand(s, conn)
reader = com.ExecuteReader
reader.Close()
MessageBox.Show("Data Saved Successfully!!!!")
ComboBox1.Text = ""
TextBox5.Text = Today.Date
PictureBox1.ImageLocation = ""
TextBox1.Focus()
End If
TextBox1.Enabled = True
TextBox1.Focus()
conn.Close()

Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try

End Sub

For Updating Employee:


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s As String
Dim reader As MySqlDataReader
If ComboBox1.Text = "" Then
MessageBox.Show("Select employee Id to de updated!!!!!!", "Warning",
MessageBoxButtons.OK, MessageBoxIcon.Warning)
Else
Try
conn.Open()
s = "update bank.employee set name='" & TextBox1.Text & "',dob='" &
DateTimePicker1.Value & "',mobile='" & TextBox2.Text & "',email='" &
TextBox3.Text & "',desig='" & TextBox5.Text & "' where eid='" &
ComboBox1.Text & "'"
com = New MySqlCommand(s, conn)
reader = com.ExecuteReader
MessageBox.Show("Data Updated Successfully!!!!")
ComboBox1.Text = ""
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox5.Clear()
PictureBox1.ImageLocation = ""
ComboBox1.Focus()
reader.Close()
conn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
End If

End Sub

For Deleting Employee:


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s, s1 As String
Dim reader, reader1 As MySqlDataReader
If ComboBox1.Text = "" Then
MessageBox.Show("Select employee Id to be deleted!!!", "Warning",
MessageBoxButtons.OK, MessageBoxIcon.Warning)
Else
Try
conn.Open()
s = "update bank.employee set access=1 where eid='" & ComboBox1.Text & "'"
com = New MySqlCommand(s, conn)
reader = com.ExecuteReader
conn.Close()
conn.Open()
s1 = "delete from bank.login where eid='" & ComboBox1.Text & "'"
com1 = New MySqlCommand(s1, conn)
reader1 = com1.ExecuteReader
MessageBox.Show("Deleted Successfully!!!!")
conn.Close()
ComboBox1.Text = ""
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
DateTimePicker1.Text = Today.Date
TextBox4.Clear()
TextBox5.Clear()
ComboBox1.Focus()
reader.Close()

Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
ComboBox1.Focus()
End If

End Sub
For Customer Report:
Private Sub Form22_Load_1(sender As Object, e As EventArgs) Handles
MyBase.Load
Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)
Me.BackColor = Color.Transparent
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s As String
Try
conn.Open()
s = "select * from bank.customer where access=0"
com = New MySqlCommand(s, conn)
reader = com.ExecuteReader
While reader.Read
DataGridView2.Rows.Add(reader("cusno"), reader("name"), reader("mobile"),
reader("email"), reader("address"))
End While
reader.Close()
conn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
End Sub

For Savings Account Report:


Private Sub Form23_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)
Me.BackColor = Color.Transparent
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s As String
Try
conn.Open()
s = "select * from bank.account where access=0 and type='current'"
com = New MySqlCommand(s, conn)
reader = com.ExecuteReader
While reader.Read
DataGridView2.Rows.Add(reader("accno"), reader("name"), reader("type"),
reader("o_date"), reader("balance"))
End While
reader.Close()
conn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
End Sub
End Class
For Current Account Report:
Private Sub Form24_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Me.SetStyle(ControlStyles.SupportsTransparentBackColor, True)
Me.BackColor = Color.Transparent
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s As String
Try
conn.Open()
s = "select * from bank.account where access=0 and type='savings'"
com = New MySqlCommand(s, conn)
reader = com.ExecuteReader
While reader.Read
DataGridView2.Rows.Add(reader("accno"), reader("name"), reader("type"),
reader("o_date"), reader("balance"))
End While
reader.Close()
conn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
End Sub
End Class

For Transactions Report:


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click

conn = New MySqlConnection


conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s As String
DataGridView2.Rows.Clear()
Try
conn.Open()
s = "select * from bank.transactions where trans_date between '" &
DateTimePicker1.Text & "' and '" & DateTimePicker2.Text & "'"
MessageBox.Show(s)
com = New MySqlCommand(s, conn)
reader = com.ExecuteReader
While reader.Read
DataGridView2.Rows.Add(reader("trans_id"), reader("accno"),
reader("trans_type"), reader("trans_date"), reader("amount"))
End While
reader.Close()
conn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
DataGridView2.Show()
End Sub
End Class

For Creating New User:


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s1 As String
Dim reader As MySqlDataReader
If TextBox1.Text = "" Or TextBox2.Text = "" Or TextBox3.Text = "" Or
TextBox4.Text = "" Or ComboBox1.Text = "" Then
MessageBox.Show("Fields must not be empty")
Else
On Error GoTo err
conn.Open()
s1 = "insert into bank.login values('" & TextBox1.Text & "','" &
TextBox2.Text & "','" & TextBox3.Text & "','clerk','" & ComboBox1.Text &
"','" & TextBox4.Text & "')"
com = New MySqlCommand(s1, conn)
reader = com.ExecuteReader

MessageBox.Show("Successfully Created a New User!!", "New User",


MessageBoxButtons.OK, MessageBoxIcon.Information)
TextBox1.Clear()
TextBox2.Clear()
TextBox3.Clear()
TextBox4.Clear()
GroupBox2.Hide()

conn.Close()
Exit Sub
err:
MessageBox.Show("Already username is present")
Exit Sub
Resume Next
End If
Me.Close()
End Sub
End Class

For Resetting Password:


Private Sub Button5_Click(sender As Object, e As EventArgs) Handles
Button5.Click
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s As String
Dim reader As MySqlDataReader
s = "update bank.login set pwd='" & TextBox3.Text & "' where uname='" &
TextBox1.Text & "'"
If Trim(TextBox4.Text) = Trim(Button2.Text) Then
If Trim(TextBox2.Text) = Trim(Label7.Text) Then
conn.Open()
com = New MySqlCommand(s, conn)
reader = com.ExecuteReader
MessageBox.Show("Password updated successfully!!", "Forgot Password",
MessageBoxButtons.OK, MessageBoxIcon.Information)
conn.Close()
GroupBox2.Hide()
TextBox1.Clear()
Else
MessageBox.Show("Entered answer is incorrect!", "Alert",
MessageBoxButtons.OK, MessageBoxIcon.Warning)
TextBox2.Focus()
End If
Else
MessageBox.Show("Enter Correct Captcha", "Alert", MessageBoxButtons.OK,
MessageBoxIcon.Warning)
TextBox4.Focus()
End If
Me.Close()
End Sub

For Paying EMI:


Private Sub Button1_Click(sender As Object, e As EventArgs) Handles
Button1.Click
If TextBox4.Text < TextBox5.Text Then
TextBox4.Text = TextBox5.Text
End If
conn = New MySqlConnection
conn.ConnectionString =
"server=localhost;userid=root;password=sai;database=bank"
Dim s, s1 As String
Dim tot As Integer
Try
conn.Open()
tot = TextBox5.Text - TextBox4.Text
s = "update bank.loan set balance='" & tot & "' where accno=" &
ComboBox1.Text
com = New MySqlCommand(s, conn)
reader = com.ExecuteReader
MessageBox.Show("Data Saved Successfully!!!!")
reader.Close()
s1 = "insert into bank.transactions values(" & TextBox1.Text & "," &
ComboBox1.Text & ",'EMI','" & TextBox3.Text & "'," & TextBox4.Text & ")"
com1 = New MySqlCommand(s1, conn)
r2 = com1.ExecuteReader
ComboBox1.Text = ""
TextBox1.Clear()
TextBox4.Clear()
TextBox5.Clear()
TextBox1.Enabled = True
TextBox1.Focus()
reader.Close()
conn.Close()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
conn.Dispose()
End Try
ComboBox1.Focus()
End Sub
APPENDIX-II

Snap Shots

Welcome Form
Login Form
NEW user FORM

Forgot password FORM


Manager Module

Clerk Module
ADD customer

ADD Loan
ADD Account
ADD Employee

EMI
Savings account

Current account
Customer’s report

Savings a/c report


current a/c report

Monthly transactions report