Bank Management System

PROJECT REPORT
ON

BANK MANAGEMENT SYSTEM

Submitted in the partial fulfillments of the Requirements For the award of

Submitted By:--

1

Bank Management System

Acknowledgement
I am thankful to Mr. ………….. (Final student of MCA from SMU) who helps me to develop this project. My hard work and sincerity help me to overcome the problem that came on the way. Finally I am very grateful to Mr. ………….. who gives knowledge about the data flow of the project. It is my pleasant duty to thank all the staff member of the computer center who never hesitated me from time during the project. Finally, I gratefully acknowledge the support, encouragement & patience of my family, And as always, nothing in my life would be possible without God, Thank You!

…………..

2

Bank Management System

CERTIFICATE
This is to certify that the project titled ___________ ________________ _______________ ___________ is a bonafied work carried out by Mr./ Ms. _____________ _________________ ________________ in partial execution of the from requirement for the award of the degree of ____________ ____________ __________ _______________ ______________ University under the guidance and direction.

Internal guide: H.O.D. Seal

3

6. 8. 5.Bank Management System INDEX S. 12. Report Page No. 7. 9. 11.No. 2. 1. Acknowledgement Certificate Introduction Objective Project Category Tool/ Environment Analysis and Design Program Structure Coding Documentation Future Application References 2 3 5 6 7 15 16 17 21 53 54 55 INTRODUCTION 4 . 3 4. 10.

The entire information has maintained in the database or Files and whoever wants to retrieve can’t retrieve. and searching. Similarly.Bank Management System During the past several decades personnel function has been transformed from a relatively obscure record keeping staff to central and top level management function. There are many factors that have influenced this transformation like technological advances. and general recognition of human beings as most important resources. professionalism. A computer based management system is designed to handle all the primary information required to calculate monthly statements of customer account which include monthly statement of any month. This project intends to introduce more user friendliness in the various activities such as record updation. Separate database is maintained to handle all the details required for the correct statement calculation and generation. 5 . record maintenance and updation can also be accomplished by using the account number with all the details being automatically generated. maintenance. only authorization user can retrieve the necessary information which can be easily be accessible from the file. These details are also being promptly automatically updated in the master file thus keeping the record absolutely up-to-date. The searching of record has been made quite simple as all the details of the customer can be obtained by simply keying in the identification or account number of that customer.

Its very much user friendly and meet almost all daily working process requirements. It should fulfill almost all the process requirements of any Bank. 6 . The searching of record has been made quite simple as all the details of the customer can be obtained by simply keying in the identification or account number of that customer. maintenance. This system is very easy to use. and searching. with minimum manpower. the main objective of this system is to find out the actual customer service. only authorization user can retrieve the necessary information which can be easily be accessible from the file. record maintenance and updation can also be accomplished by using the account number with all the details being automatically generated. The entire information has maintained in the database or Files and whoever wants to retrieve can’t retrieve.Bank Management System Objective of the Project A computer based management system is designed to handle all the primary information required to calculate monthly statements of customer account which include monthly statement of any month. This system is melded in such a way that has got all features to upgrade without making much change in existing components. This project intends to introduce more user friendliness in the various activities such as record updation. Similarly. These details are also being promptly automatically updated in the master file thus keeping the record absolutely up-to-date. so that any user can use without getting pre-knowledge about this. This system is completely GUI based and can be use by mouse and as well as keyboard. The main objective of our project is providing the different typed of customers facility. It should be user friendly. This project includes the entire upgraded feature required for the computerization banking system. Etc. Separate database is maintained to handle all the details required for the correct statement calculation and generation. • It should increase the productivity of bank by utilizing the working hours more and more.

For example. (Not all routines raise such exceptions. regardless of location or type. the Choose function returns Null [thus. (This applies to procedures. Create Object raises an exception if it cannot create an object—for whatever reason. procedures. If it were. if a routine works correctly. the caller is free to handle errors in the most suitable way. by not handling the error internally. What Is OLE DB? OLE DB is a set of COM interfaces that provide applications with uniform access to data stored in diverse information sources. Open does the same if it cannot open a file for you. For example. what is the standard way that the routine signals the failure to you? It probably won't be via a return value. DBMS sources can include: • Mainframe databases such as IMS and DB2 7 . it requires a Variant to hold its return value just in case it ever fails] if you index into it incorrectly. and methods. would have trouble signaling failure. In general. perhaps by prompting the user in some way. Routines such as Open work like this primarily so that they can be used more flexibly.) In other words. try to mimic Visual Basic's own error handling scheme as much as possible. for one. Most (but not all) routines raise an error (an exception) when they want to signal failure. When you call a Visual Basic routine that can fail.Bank Management System PROJECT CATEGORY Inconsistent as it is. OLE DB attempts to make it easy for applications to access data stored in diverse database management systems (DBMS) and other information sources. functions.) For example. this fact is signaled to the caller by the absence of any error condition.

and many other sources Components of OLE DB Data Consumers Data consumers are applications that use the data exposed by data providers. Service components are designed to integrate efficiently to help OLE DB component vendors develop high-quality OLE DB components.Bank Management System • • Server databases such as Oracle and SQL Server Desktop databases such as Access. Data Providers Data providers are applications. and FoxPro Other sources can include: • • • • Information stored in file systems for Windows NT or UNIX Indexed-sequential files E-mail systems such as Exchange Spreadsheets. There is also an OLE DB 8 . spreadsheets. project management tools. Any application that uses ADO is an OLE DB data consumer. such as a file system. document stores. a cursor engine is a service component that can consume data from a sequential. Examples of consumers include high-level data access models such as ADO. ADO is the programmatic interface for using OLE DB data. business applications written in development tools such as Visual Basic. indexed-sequential files. C++. and development tools themselves. such as Microsoft SQL Server or Exchange. or Java. For example. Service Components Service components are elements that process and transport data and extend the functionality of data providers. and mail files that have data that other applications may need to access. Paradox. forward-only data source to produce scrollable data. This includes operating system components. These data providers expose OLE DB interfaces that service components or data consumers can access directly.

Script.Bank Management System provider for ODBC. The Component Object Model (COM) makes it possible for software components that you create to work with other software components. Java. extensible standard for software interoperability. high-performance interface. including the creation of front-end database clients and middle-tier business objects that use applications. ADO provides an easy-to-use interface to OLE DB. ADO is easy to use because it uses a familiar metaphor—the COM automation interface. and a minimal number of layers between the front end and data source—all to provide a lightweight. The word processor. and mainframe database do not have to know anything about 9 . How OLE DB Relates To ADO ADO provides consistent. spreadsheet. ADO is designed to be the one data interface needed for single and multitier client/server development. Because COM enables interoperability among applications written in different languages. However. OLE DB is not dependent on ODBC. low memory overhead. ADO is implemented with minimal network traffic in key scenarios. high-performance access to data and supports a variety of development needs. high speed. Component Object Model Microsoft has defined an open. languages. a word processor application written by one vendor can connect to a spreadsheet object written by another vendor. as well as Web-based data-driven solution development. tools. including Visual Basic. The primary benefits of ADO are ease of use. and languages. the spreadsheet object could receive data through a COM object residing on a mainframe. or Internet browsers. The word processor application could then be used to import data from the spreadsheet object. available from all leading Rapid Application Development (RAD) tools. to connect to and communicate with each other. which provides the underlying access to data. VBScript. This provider makes any ODBC data available to OLE DB data consumers. and a small disk footprint. and C/C++. including software you buy off-the-shelf. Additionally. database tools. derived from any combination of preexisting components you have developed and components from different software vendors. COM allows software components.

Visual Basic gives you the tools to rapidly create. Other Visual C++ developers can use and further extend these objects.Bank Management System each other's implementation. standardized components. OOP is a way to build objectbased software components. ActiveX technology allows programmers to assemble these reusable software components into objects that provide services to clients. such as Visual Basic. they can be used and further extended with any programming tool that supports COM technology. Component Development and Object-Oriented Programming Component-based software development reduces programming time by allowing developers to assemble applications from tested. an OOP language allows you to create reusable objects for a single development environment. .ocx file that follows the ActiveX specification for creating reusable objects. such as an . To put it another way. or . debug. Component software development using ActiveX technology should not be confused with object-oriented programming (OOP).dll. while ActiveX and COM make objects work together in multiple environments. An ActiveX component is a unit of executable code. ActiveX is a technology that allows you to combine object-based components created by different development tools or across different applications. The word processor only needs to know how to connect to the spreadsheet. How Component Development Promotes Reusability You can use an OOP tool such as Microsoft Visual C++ to construct a set of objects. and deploy software components. and code components (ActiveX DLLs and ActiveX EXEs).exe. ActiveX is technology based on COM. ActiveX documents. However. 10 . the spreadsheet only needs to know how to expose its services for other software components to connect. if you package your objects in an COM component. It is the easiest way to create ActiveX components such as ActiveX controls.

This allows application and component objects to communicate with each other regardless of the language or development tool in which they were created. look for places where you can use pre-existing COM components instead of having to write the code to implement a given functionality yourself. and what information to retrieve. • Easier updating Components make it easier for you to revise and update your applications. COM and Visual Basic As you define the functionality required by your application. For example. including: • Reusability Once you create a COM component. If the business rules change. you could create a function procedure that logs a user into a server. you update just the component. not all the applications that use the component. other developers can use it. only that it can communicate with the object. you may be required to include this procedure in every application you create. you can implement this logon procedure in a COM component that can be easily reused from project to project. There are many reasons to use COM components in an application. In your corporation. • Reduced complexity You can create a COM component to hide programming complexity from other programmers.Bank Management System A client application or component object does not care what language a COM object was written in. For example. 11 . you can create a COM component that encapsulates business rules. Instead of adding this code to every program. This enables easy access to your component's features in other applications without requiring developers to write extensive code. Other programmers need only know what information to provide to your component.

The difference is that a class module provides functionality in the form of an object: • Data in a standard module has program scope. new objects are created from class modules. A code component can be thought of as a container for multiple classes. They are analogous to a blueprint for a house. and invoking the object's properties. Most commonly. you do not have to understand all of the mechanics involved in making these components work together. and vans. A class module is similar to a standard code module (. it is created when the object is created. For example.com/com/default. Class Modules Class modules (. Variables declared as public in a class module can only be accessed by referencing a particular instance of a class or object.bas file) because both contain functionality that can be used by other modules within the application. and events. Class module data exists for each object that is created from the class. Just as a house is built from a blueprint. Each object's data exists only for the lifetime of the object. these classes can be used to create objects such as cars. and destroyed when the object is destroyed.cls files) are the foundation of object-oriented programming in Visual Basic.Bank Management System When you use COM components in a Visual Basic project.microsoft. which means that it exists for the life of your program. These new objects include your own customized properties and methods. you could create a "vehicles" code component that contains multiple classes. You can find detailed information about COM at http://www. 12 . methods. trucks. A client application uses a code component by creating an object from one of the classes the component provides. It is more important to know how to use the component that adds the functionality you need to your application.asp. • • Variables declared as public in a standard module are visible from anywhere in your project. class modules exist in code components.

It enables generic shell applications. Client applications use COM objects by creating instances of classes provided by the COM . In Visual Basic. Client applications call the properties.dll file.dll. Visual Basic handles much of the complexity of creating COM .Bank Management System Creating COM Components With Visual Basic The greatest benefit of COM is the ability to create COM components that can be easily implemented in many applications. to host different types of documents. • Active Documents Active documents are COM components that must be hosted and activated within a document container. such as an .exe.dll files.ocx file that follows the COM specification for creating objects. and events provided by each COM object. or .exe or . the project templates you use to create a COM components are referred to as ActiveX EXEs and ActiveX DLLs. Active document technology is an extension to OLE documents. These are created from class modules in Visual Basic. such as Microsoft Internet Explorer. You can create three types of COM components with Visual Basic: • ActiveX Controls ActiveX controls (formerly known as OLE controls) are standard userinterface elements that allow you to rapidly assemble reusable forms and dialog boxes. . 13 . methods.exe and . • ActiveX Code components AcitveX Code components (COM executable programs and DLLs) are groups. of classes. A COM component exposes objects that can be used by other applications. called libraries. A COM component is a unit of executable code.

The brief DAO coverage introduces core development concepts and provides a historical perspective on data access within Access. Since DAO will not play a critical role in any subsequent chapters. Access 2000 is the first version of Access to also support ADO for manipulating Jet databases.Bank Management System An Understanding over MS-Access Environment as Back End MS-Access:-I have used MS. retrieves and manages large amounts of data. DAO targets the Jet database engine to enable quick and easy database programming. OLE DB technologies will eventually make their ODBC predecessors obsolete. It relies on OLE DB providers for low-level links to data sources. with the primary emphasis on ADO as a programming model. Data Access Models Microsoft Access 2000 supports two data access models: the traditional Data Access Objects (DAO) and ActiveX Data Objects (ADO).ACCESS for database. Many of the articles include code samples. much as ADO will replace DAO. It is a RDBMS Package developed by Microsoft. This chapter reviews the DAO and ADO data access models.com/support/). Instead of being based on a single database engine. It is a relational database management system That efficiently stores. see the Access online documentation and Microsoft's Support Online (support.microsoft. you will get on the fast track to adopting future improvements in data access with upcoming versions of Access and you'll be able to use more and different kinds of data sources. For information on DAO code. 14 . Therefore. ADO uses a common programming model to deliver access to universal data. this chapter will cover using Jet and remote databases. if you invest in learning ADO now. a site that documents typical problems and their associated workarounds.

Other chapters in this book will build on the information in this chapter and will cover additional ADO topics. and multi-user security. 15 .Bank Management System This chapter will focus primarily on the ADO object models for Jet in Access and the ADODB and ADOX libraries. remote database access. such as database replication. Extensive programming examples will show you how to accomplish typical database tasks.

certain common features are needed for the operating system software.Visual basic. The following are the minimum hardware specifications to run this package: - Hardware requirement: Personal Computer: It minimum contains P-III processor with 128 MB RAM. The backend is ACCESS. This package is designed on a powerful programming language Visual Basic.Application software uses front end visual basic and database access etc. Editor:.Bank Management System TOOLS & ENVIRONMENT The platform is the hardware and software combination that the Client/Server runs on. Operating System:. which cannot be seen but its effect can be felt. Software is like a current inside the wire. enables the computer to perform the various tasks. It is a powerful Graphical User Interface. which performs the functions of applying appropriate. 16 . 1.Windows NT / 2000 / XP 2. Hardware Specifications Hardware is a set of physical components. In other words. Application Software:. predefined instructions. one can say that electronic and mechanical parts of computer constitute hardware. Software Requirements: The software is a set of procedures of coded information or a program which when fed into the computer hardware. which is used to maintain database. While hardware systems vary widely in features and capabilities. It can run on almost all the popular microcomputers.

Close or Edit Account:It consists or provides editing and closing account form and also such particular account information. Bank Summary: It consists of all information detail of bank employee account transaction detail summary. recode of all branches and also record of draft and chewy. 2. 17 . Monthly Statement: It consists of two sided form monthly statement of bank employee and monthly statement of saving and current account employee. 3. Close or Edit Account. Then he or she fill up the new account form according to their account number generated automatically and also generate cheui no automatically. All the record and information is going to be store in Microsoft Access Database Draw the following conclusion:The project consists of four parts mainly 1. Open Account: It consists of new bank account form. current). A consist new enquiry information who come to the bank for enquiry about new account (saving. Monthly Statement. 4. Bank summary and Transaction detail etc.Bank Management System Analysis & Design A complete structure of the program Analysis To develop software which maintains all the record of day to day -Open Account.

Bank Management System 18 .

Bank Management System Program Structure The detail structure and description of table are as follows: Table Structure and Description: 1. Account: Account Fieldname Actno Name Address Phone Act type City Date Chequebook Field Type Number Text Text Number Text Text Date/time Yes/no Field size Long int 50 50 Double 20 50 Medium date Constraint Primary 19 .

20 .Bank Management System This table is used to maintain open account details. Which keep all information about employee. Where employee come from new account. Here act no define primary key.

Account Type: Account type Field type Text Text Number Fieldname Type code Type name Int rate Field size 50 50 Default Constraint This table is used for which type of account opens a employee. 21 .Bank Management System ii. type of account – saving or current account and also give a account type code. Balance table: - Field name Actno Balance Balance table Field type Field size Number Number Default Long int Constraint This table the balance of all type of account. iii. saving or current account.

Cheque Table: Cheque table Field type Number Number Number Field name Actno No _from No _to Field size Default Default Default Constraint This table content all account detail and if you open new account and chose cheque option so give cheque no of your account.Bank Management System iv. v. 22 . Tamp Table: - Field name Actno Temp type Ckequeno Amount Date Tamp table Field type Number Text Number Number Date/time Field size Long int 50 Long int Long int Constraint This table show the tamp let of all account information and transaction of per day of bank. Pass table: - Field name Name Pswd Pass table Field type Text Text Field size 50 50 Constraint vi.

1 table: Transaction table Field name Actno Tran type Amount act Type Chequeno Date Time Field type Number Text Number Text Number Date/time Date/time Field size Long int 50 Long int 50 Long int Default Default Constraint Primary This table contains all per day transaction of bank and also summarized all money transaction updating and editing. 23 .Bank Management System Vii. Transaction.

24 . which is our requirements. According to this input and output we design the processing phase.Designing if system demonstrates the exact flow of I-PO cycle of the system. I-P-O cycle is Input-Process-Output cycle of the system. where we need to define what are input we need to take to produced the output.Bank Management System Data structure Diagram (Design) :. There are lot of category define to design the system few of them are begin discus here.

25 .Bank Management System Data Flow Diagram: - New customer Fills enquiry Form Enquiry New Account Request for New Account Control Management Provide Account Type Send New Account Request.

Bank Management System

Provide Account Number / Cheque Number
Account

Proce ss

Account Details

CODING

26

Bank Management System

_____________________________________________________________________

27

Bank Management System

Component: Flash form Form Name: Frmflase.frm Code: --___________________________________________________________________________________ ___

Private Sub Form_Click() Unload Me LoginForm.Show 1 'Form6.Show End Sub Private Sub Form_Load() Timer1.Interval = 3000 End Sub Private Sub Timer1_Timer() Unload Me LoginForm.Show 1 'Form6.Show End Sub
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~

Login Form:--

28

ActiveConnection = cn 29 .Bank Management System ___________________________________________________________________________________ _ Component : Login form Form Name :FrmLogin Code :-- Dim rs As New ADODB.Recordset Private Sub CancelButton_Click() Unload Me End Sub Private Sub Form_Load() rs.

MoveNext Wend Combo1.Text Then Me.ListIndex = 0 End Sub Private Sub Frame1_DragDrop(Source As Control.EOF = True Combo1.Text = " " Text1.MoveFirst While Not rs.Close rs.Caption = "Password Success" GoTo 1 Else Me.Close rs.SetFocus Exit Sub End If 1: Call ShowForm End Sub 30 .CursorLocation = adUseClient rs.Text & "'" If rs!pswd = Text1.AddItem rs(0) rs.State = 1 Then rs.Bank Management System If rs.State = 1 Then rs.LockType = adLockOptimistic rs.CursorType = adOpenKeyset rs.Open "select pswd from pass where name = '" & Combo1. X As Single. Y As Single) End Sub Private Sub OkButton_Click() If rs.Caption = "Invalid Password" Text1.Open "select * from Pass" rs.

AcButton.Show End If End Sub 31 .BnkButton.AcClButton.Enabled = False ElseIf Combo1.Enabled = False Form1.Enabled = False ElseIf Combo1.Enabled = False Form1.Bank Management System Private Sub ShowForm() If Combo1.Text = "Guest" Then Unload Me Form1.TrButton.Text = "Manager" Then Unload Me Permission = 1 'For Account Permission Clos account Form1.Enabled = False Form1.Show Form1.Show Form1.BnkButton.Text = "Employee" Then Unload Me Form1.

Bank Management System Main Form:-- ___________________________________________________________________________________ _ Component : Main form Form Name frmMain 32 .

Left = 4000 LoginForm.Top = 3000 Form5.Show End Sub Private Sub AcClButton_Click() 'Unload Me Form3.Top = 3000 LoginForm.Bank Management System Coding :--___________________________________________________________________________________ ___ Private Sub AcButton_Click() 'Unload Me Form2.Show End Sub 33 .Show End Sub Private Sub BnkButton_Click() 'Unload Me Form5.Left = 4000 Form5.Show End Sub Private Sub BackButton_Click() 'Unload Me LoginForm.Top = 3000 Form3.Top = 3000 Form2.Left = 4000 Form2.Left = 4000 Form3.

Show End Sub ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ Open Account Form:-- 34 .Left = 4000 Form4.Top = 3000 Form6.Left = 4000 Form6.Bank Management System Private Sub ExButton_Click() Unload Me End Sub Private Sub Picture1_Click() End Sub Private Sub StmtButton_Click() 'Unload Me Form6.Show End Sub Private Sub TrButton_Click() 'Unload Me Form4.Top = 3000 Form4.

Recordset Dim MaxNo As Long 35 .Bank Management System ___________________________________________________________________________________ ___ Component : Open Account Form Form name Frmopen Coding :___________________________________________________________________________________ ___ Dim rs As New ADODB.

vbInformation StatusBar1.'" & Text1. a Call UpdateCheque MsgBox "Ur Cheque No is from " & MaxNo & " To " & MaxNo + 10. cn.Bank Management System Dim a As Integer Private Sub Check1_Click() End Sub Private Sub Command1_Click() Dim sstr.'" & Date & "'.'" & Combo1. vbInformation.Text & "' . adOpenKeyset.NO)" cn.'" & Date & "'. s As String Dim rst As New ADODB." & MaxNo + 10 ElseIf Check1.Value = 0 Then sstr = "insert into account " sstr = sstr + "values(" & a & ". vbInformation. a 36 .Execute sstr MsgBox "Account Created " & "Account Number = " & a.Text & "'.Text & "' . " sstr = sstr + " " & Text2.'" & Text1. '" & Text3.Text & " .Text & "'.Text = "Cheque No " & MaxNo & " .'" & Text6.Recordset rst.Text & "'.'" & Text6.Execute sstr MsgBox "Account Created " & "Account Number = " & a.Value = 1 Then sstr = "insert into account " sstr = sstr + "values(" & a & ".Text & "'. adLockOptimistic.Text & "'. cmdtext a = rst(0) + 1 If CheckField = True Then s = Text1.Text & "'.Panels(2).Open "Select max(actno) from Account". " sstr = sstr + " " & Text2.'" & Combo1.Text If Check1.YES)" cn.Text & " . '" & Text3.

Value = 1 Then If Not Val(Text5.Text) >= 1500 Then MsgBox "Minimum Balance Should be 1500" CheckField = False 37 .Text = "Hello " & s & " " & a Call ClearField End If rst.Text = "" Then MsgBox "Balance Should deposite" Text5.SetFocus CheckField = False ElseIf Text5.Text = "" Then MsgBox " Enter Address please " Text3.SetFocus CheckField = False ElseIf Text3.Text = "Cheque Book Not Issued" End If Call AddDeposite StatusBar1.Text & ")" cn.Text = "" Then MsgBox " Enter Name Please " Text1.Execute s End Sub Private Function CheckField() As Boolean If Text1.Bank Management System StatusBar1.Panels(1).Close End Sub Private Sub AddDeposite() Dim s As String s = "insert into BalanceTable values " s = s + "(" & a & ".Panels(2)." & Text5.SetFocus CheckField = False ElseIf Check1.

Value = 0 End Sub Private Sub Command3_Click() Unload Me 'Form1.Text = "" Text3.Value = 0 Then If Not Val(Text5.Text = "" Check1.Bank Management System Else CheckField = True End If ElseIf Check1.Text = "" Text5.Text = "" Me.Text = "" Text2.Show 1 End Sub Private Sub Command4_Click() Unload Me 38 .Text6.Text) >= 500 Then MsgBox "Minimum Balance Should be 500" CheckField = False Else CheckField = True End If Else CheckField = True End If End Function Private Sub Command2_Click() Call ClearField End Sub Sub ClearField() Text1.

Execute "insert into cheque(Actno. cn. adOpenKeyset.MoveFirst While Not rs.Open "select * from AccountType".Close End Sub Private Sub Form_Load() Text4.Recordset rst.Fields(0)) + 1 Else MaxNo = 1234 End If Else MaxNo = 1234 End If cn.Caption = Date$ Label6.State = 1 Then rs. adLockOptimistic. adLockOptimistic If rst.Bank Management System End Sub Private Sub UpdateCheque() Dim rst As New ADODB." & MaxNo & ".EOF Combo1.Caption = Time() If rs.Open "select max(NoTo) from cheque".NoTo)values(" & a & ".Close rs.RecordCount > 0 Then If Not rst.ListIndex = 0 End Sub Private Sub Text2_KeyPress(KeyAscii As Integer) 39 ." & MaxNo + 10 & ")" rst.EOF Then MaxNo = Val(rst. cn.CursorLocation = adUseClient rst. adOpenKeyset. cmdtext rs.MoveNext Wend Combo1.AddItem rs(1) rs.NoForm.

Bank Management System If Chr(KeyAscii) Like "[0-9]" Or KeyAscii = 8 Then Else KeyAscii = 0 End If End Sub Private Sub Text5_KeyPress(KeyAscii As Integer) If Chr(KeyAscii) Like "[0-9]" Or KeyAscii = 8 Then Else KeyAscii = 0 End If End Sub Private Sub Timer1_Timer() Label6.Caption = Time() End Sub ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ Edit Or Delete Account Form:-- 40 .

Recordset '---------------------------------------'Close account form to close account 41 .Bank Management System ___________________________________________________________________________________ __ Component : Edit and close Account Form Form Name : frmEditAct Coding :___________________________________________________________________________________ ___ Dim rs As New ADODB.

Recordset rst.ActiveConnection = cn If Permission = 1 Then Dim stmt.State = 1 Then rs. vbYesNo.Panels(1). ms As String Dim s As Long ms = MsgBox("Do U really want to Close Account".Close rst.Execute stmt End If rst.Bank Management System 'Permission variable is to check the permission to delete the 'Record that manager can delete the record '---------------------------------------Private Sub CmdCloseAct_Click() Dim rst As New ADODB.Execute stmt 'Get the balance back before close account If rst.Close stmt = "delete from BalanceTable where actno = " & s & " " cn. "Delete Record ") If ms = vbYes Then If rst.Execute stmt 42 .Execute stmt stmt = "delete from Transaction1 where actno = " & s & " " cn.Open "select balance from BalanceTable where actno = " & s & " " StatusBar1.Close s = Combo1.Text = "Ur balance was " & rst(0) & " Get the money" MsgBox "Ur balance was " & rst(0) & " Get the money" rst.Open "select ChequeBook from account where actno = " & s & "" If rst!ChequeBook = True Then stmt = "delete from cheque where actno = " & s & "" cn.Text rst.Close stmt = "delete from account where actno = " stmt = stmt + " " & s & "" cn.State = 1 Then rst.

RecordCount > 0 Then rs.MoveLast Call FillRecord(rs) Exit Sub End If End Sub 43 .MoveLast End If If rs.EOF = True Then MsgBox "You Are Onto The Last Record" Else rs. "Close Account" End If End Sub Private Sub CmdFirst_Click() If rs.MoveFirst End If If rs.Bank Management System MsgBox "Account Close " rs.BOF Then MsgBox "You Are Onto The First Record" Else Call FillRecord(rs) End If End Sub Private Sub CmdLast_Click() If rs.RecordCount > 0 Then rs. vbInformation.Requery End If Else MsgBox "U dont have Permission to Close Account ".

RecordCount > 0 Then rs.RecordCount > 0 Then rs.Show End Sub Private Sub CmdNext_Click() If rs.MoveFirst End If Else Call FillRecord(rs) End If End Sub 44 .EOF Then MsgBox "You Are Onto The Last Record" If rs.Bank Management System Private Sub CmdMain_Click() Unload Me Form1.RecordCount > 0 Then rs.RecordCount > 0 Then rs.MoveNext End If If rs.MoveLast End If Else Call FillRecord(rs) End If End Sub Private Sub CmdPrev_Click() If rs.MovePrevious End If If rs.BOF Then MsgBox "You Are Onto The First Record" If rs.

" stmt = stmt + " address = '" & Text4.RecordCount > 0 Then Call FillRecord(rs1) End If rs1. adLockOptimistic.State = 1 Then rst.Text & "' . adLockOptimistic." stmt = stmt + " phone = " & Text2. " stmt = stmt + " Actype = '" & Text3.Requery End Sub Private Sub Combo1_Click() ' This is for navigate through combo box Dim rs1 As New ADODB.State = 1 Then rs.RecordCount > 0 Then 45 . adCmdText If rs1. adOpenKeyset. vbInformation.Text & "' where " stmt = stmt + "actno = " & Combo1.Value = 0 Then If rst.Close rs1.Recordset If Check1. "Saving Record" rs.Text & "' .Recordset If rs1.Bank Management System Private Sub CmdUpdate_Click() Dim stmt As String stmt = "update Account set nam = '" & Text1.Text & " . cmdtext Dim MaxNo As Long If rst. cn.Text & " ".Open "select max(noto) from Cheque".Close End Sub Private Sub Command1_Click() 'Issue Cheque book Dim stmt As String Dim rst As New ADODB. adOpenKeyset.Text & " " cn.Close rst. cn.Open "select * from Account where actno= " & Combo1.Execute stmt MsgBox "Update Succeed ".

vbYesNo) If ch = vbYes Then stmt = "delete from Cheque where actno = " & Combo1.Text & ".Execute stmt MsgBox "Cheque book created form " & MaxNo & " To " & MaxNo + 10 StatusBar1.BOF Then MsgBox "You Are Onto The First Record" Else Call FillRecord(rs) End If End If Else Dim ch As String ch = MsgBox("Cheque Already Issued if cheque last then click yes".Text & "" cn.Text = "Cheque book created form " & MaxNo & " To " & MaxNo + 10 rs.Close rst.Execute stmt If rst. cmdtext If rst.Open "select max(NoTo) from Cheque".Panels(1)." & MaxNo + 10 & ")" cn.Text & "" cn.Requery 'This is to move record to the first position If rs. adLockOptimistic.State = 1 Then rst.Execute stmt ' This is to update in the account master table stmt = "update account set ChequeBook = YES where " stmt = stmt + "actno = " & Combo1. " & MaxNo & ".MoveFirst End If If rs. adOpenKeyset.Bank Management System MaxNo = rst(0) MaxNo = MaxNo + 1 stmt = "insert into Cheque values (" stmt = stmt + "" & Combo1.RecordCount > 0 Then rs. cn.RecordCount > 0 Then 46 .

" & MaxNo & ".RecordCount > 0 Then rs.State = 1 Then rs.ActiveConnection = cn If rs.Text = "Cheque book created form " & MaxNo & " To " & MaxNo + 10 rs.Execute stmt 'This is to update in the acccount master table stmt = "update account set ChequeBook = YES where " stmt = stmt + "actno = " & Combo1.Text & "" cn.Execute stmt MsgBox "Cheque book created form " & MaxNo & " To " & MaxNo + 10 StatusBar1.Requery 'This is to move record to the first position If rs.Close rs.MoveFirst End If If rs.Panels(1).BOF Then MsgBox "You Are Onto The First Record" Else Call FillRecord(rs) End If End If End If End If End Sub Private Sub Form_Load() rs." & MaxNo + 10 & ")" cn.CursorLocation = adUseClient 47 .Bank Management System 'Dim MaxNo As Long MaxNo = rst(0) MaxNo = MaxNo + 1 stmt = "insert into Cheque values (" stmt = stmt + "" & Combo1.Text & ".

Open "select * from Account order by actno" If Not rs.1 If Combo1.ListCount .BOF Then rs.LockType = adLockOptimistic rs.Recordset) Dim i As Integer Dim a Dim rsB As New ADODB.MoveFirst If rs.MoveFirst While Not rs.MoveNext Wend If Not rs.Recordset If rs.Text = rs!address 48 .RecordCount > 0 Then Call FillRecord(rs) End If End Sub '************************************************ 'Fill Record in the Form Controls Private Sub FillRecord(rs As ADODB.AddItem rs!actno rs.List(i) = Trim(rs!actno) Then Combo1.Bank Management System rs.ListIndex = i Exit For End If Next End If a = rs!actno Text1.BOF Then rs.EOF Combo1.Text = rs!Nam Text2.RecordCount > 0 Then For i = 0 To Combo1.Text = rs!actype Text4.CursorType = adOpenKeyset rs.Text = rs!phone Text3.

Text = rsB!balance End Sub Private Sub Frame1_DragDrop(Source As Control. adOpenKeyset.Bank Management System Text6. adLockOptimistic.Text = rs!Date 'Fill in the check box If rs!ChequeBook = True Then Check1.Value = 0 End If 'To get the balance from Balance Table If rsB.Close rsB.Value = 1 Else Check1. cmdtext Text5. X As Single.Open "select * from BalanceTable where actno = " & a & "". Y As Single) End Sub Amount Transaction Form:-- 49 . cn.State = 1 Then rsB.

Bank Management System 50 .

Bank Management System _____________________________________________________________________ __ Component :Amount Transaction form Form Name : frmtran Code :- Dim rs As New ADODB.ListIndex = 0 ElseIf Combo2.Clear Combo3.ListIndex = 0 Then 'withdraw Combo3.ListIndex = 0 End If End Sub Private Sub Combo3_Click() If Combo3.Text = "Draft" Then Text2.ListIndex = 1 Then 'Deposit Combo3.Clear Combo3.AddItem "Withdrawl" Combo3.Text = "Cheque" Or Combo3.Enabled = True 51 .AddItem "Cheque" Combo3.AddItem "Cash" Combo3.AddItem "Cheque" Combo3.Recordset Dim a As Boolean 'To check the balance is greater or less Private Sub Combo2_Click() If Combo2.AddItem "Draft" Combo3.

RecordCount > 0 Then If Text2.CursorLocation = adUseClient rst.Text & " " If rst.Text = "" Then If rst.Text & "" If rst!ChequeBook = True Then If Not Text2.Open "select * from Cheque where actno = " & Combo1.Text = "Deposite" Then Dim rst As New ADODB.State = 1 Then rst.Close rst. vbInformation CheqTest = False Exit Function End If End If Else MsgBox "U will have to select Cheque and enter cheque number ". vbInformation 52 .State = 1 Then rst.Enabled = False End If End Sub 'This procedure is to check that the cheque number 'Which is entered is correct or not Private Function CheqTest() As Boolean If Not Combo2.Text <= rst(2) Then MsgBox "SS" CheqTest = True Else MsgBox "Please enter the valid cheque no".ActiveConnection = cn If rst.Recordset rst.Open "select * from account where actno = " & Combo1.Text >= rst(1) And Text2.CursorType = adOpenKeyset rst.Close rst.LockType = adLockOptimistic rst.Bank Management System Else Text2.

Text = 0 End If sstr = "Insert into Transaction1 values(" sstr = sstr + " " & Combo1.Text) < 100 Then If Text2.Panels(1).'" & Combo3." & Text2.Execute sstr StatusBar1.'" & Date & "'.Text = "Money " & Combo2.Text & " Success" End If a = False End If 53 .'" & Time & "')" If CheqTest = True Then Call UpdateMoney If a = True Then cn.Text & ".Text & "'.Text = "" Or Val(Text1.Text = "" Then Text2.Text & "'" sstr = sstr + ".Bank Management System CheqTest = False Exit Function End If Else CheqTest = True End If Else CheqTest = True End If End Function 'This is the submit button command button that is 'To submit the transaction in the transaction table 'After checking the appropriate field Private Sub Command1_Click() Dim sstr As String If Not Text1.Text & "." sstr = sstr + "" & Text1.Text & ".'" & Combo2.Text & " Success" MsgBox "Money " & Combo2.

Text = "Withdraw" Then If rst!balance > Val(Text1.Text & "" cn.Text = "Deposite" Then d = rst!balance + Val(Text1.Text & "" cn.Text) stmt = "update BalanceTable set balance = " & d & "" stmt = stmt + " where actno = " & Combo1.Bank Management System Call ClearField Else MsgBox "please Enter Lease 100 Transaction Amount ".State = 1 Then rst. adLockOptimistic.Text) stmt = "update BalanceTable set balance = " & d & "" stmt = stmt + " where actno = " & Combo1.Close rst. cn. cmdtext If Combo2. adOpenKeyset.Open "select * from BalanceTable where actno = " & Combo1.Recordset Dim stmt As String Dim d As Long If rst.Execute stmt a = True Else MsgBox "U dont have money to Transact U have only " & rst!balance a = False End If End If End Sub 54 .Text & "".Text) Then d = rst!balance .Execute stmt a = True ElseIf Combo2.Val(Text1. vbInformation End If End Sub 'This is to Update the balance in database Private Sub UpdateMoney() Dim rst As New ADODB.

Interval = 1000 Label3.ActiveConnection = cn If rs.Text = "" Text2.ListIndex = 0 Combo2.ListIndex = 0 Combo3.Caption = Time Label2.Close rs.CursorType = adOpenKeyset rs.Bank Management System Private Sub Command2_Click() Unload Me 'Form1.AddItem rs!actno 55 .Open "select * from Account order by actno" rs.Show 1 End Sub Private Sub ClearField() Text1.EOF = True Combo1.LockType = adLockOptimistic rs.State = 1 Then rs.Text = "" Combo1.MoveFirst 'This is to fill the account number combo While Not rs.Caption = Date rs.ListIndex = 0 End Sub Private Sub Command3_Click() Call ClearField End Sub Private Sub Command4_Click() Unload Me End Sub Private Sub Form_Load() Timer1.CursorLocation = adUseClient rs.

AddItem "Withdraw" Combo2.Clear Combo3.ListIndex = 0 Combo3.MoveNext Wend rs.Caption = Time End Sub ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~ Bank Summary Form:-- 56 .Close End Sub Private Sub Timer1_Timer() Label3.ListIndex = 0 Combo1.AddItem "Cheque" Combo3.Bank Management System rs.AddItem "Deposite" Combo2.Close Combo2.AddItem "Withdrawl" 'rs.

Bank Management System ___________________________________________________________________________________ ___ Component : Summary form Form Name : FrmSumary Code :- Private Sub Command1_Click() Unload Me End Sub Private Sub Command2_Click() 57 .

rsCommand2.Bank Management System Unload Me Form1.Requery SummaryRept.Refresh End Sub Bank Summary Report :-- 58 .Refresh DataEnvironment1.Show End Sub Private Sub DataGrid1_Click() End Sub Private Sub Form_Load() Adodc1.Show 1 End Sub Private Sub Command3_Click() SummaryRept.

Bank Management System ___________________________________________________________________________________ __ Component : Summary report form Form Name FrmSummary Code :- Dim rs As New ADODB.Recordset Private Sub DataReport_Activate() 59 .

Close End Sub Private Sub DataReport_Error(ByVal JobType As MSDataReportLib. ByVal ErrObj As MSDataReportLib. adLockOptimistic.Bank Management System 'rs. adOpenKeyset. cmdtext 'Text1 = rs(0) 'rs. cn.RptError. ByVal Cookie As Long.AsyncTypeConstants. ShowError As Boolean) On Error Resume Next End Sub ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~ 60 .Open "select Balance from BalanceTable where actno = " & txtActno & "".

Bank Management System Bank Account Statement Form:-- ___________________________________________________________________________________ __ Component : Account statement form Form Name : frmStatement Code :- Dim stmt As String Dim rs As New ADODB.Recordset Private Sub Combo1_Click() Call DeleteRecord Call FillDBgrid Call FillBalance 61 .

adOpenKeyset. adLockOptimistic.rsCommand1.Close DataEnvironment1.RecordCount > 0 Then rs.Requery StatmentRept.Close rs.Open "select actno from account order by actno" If rs.CursorType = adOpenKeyset rs.ActiveConnection = cn If rs.Refresh StatmentRept.Open "select * from Temptable".State = 1 Then rs.rsCommand1. cmdtext DataEnvironment1.Show End Sub Private Sub DataGrid1_Click() End Sub Private Sub Form_Load() rs.Refresh End Sub Private Sub Command1_Click() Unload Me 'Form1.rsCommand1.Refresh DataGrid1.Show 1 End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Command3_Click() If DataEnvironment1. cn.Bank Management System Adodc1.State = 1 Then DataEnvironment1.LockType = adLockOptimistic rs.MoveFirst 62 .rsCommand1.CursorLocation = adUseClient rs.

Refresh rst." & rst(4) & ")" cn.EOF = True stmt = "insert into TempTable values ( " & rst(0) & ".RecordCount > 0 Then If Not rst.Close If Not Combo1.'" & rst(1) & "'. adLockOptimistic.amount.Refresh End Sub Private Sub DeleteRecord() stmt = "delete from TempTable " cn.Refresh DoEvents DataGrid1.MoveNext 63 .Bank Management System While Not rs. adOpenKeyset. cn.Text = "" Then rst.Text & "".MoveFirst While Not rst.Execute stmt Adodc1.BOF Then rst.Open "select ActNo." & rst(3) & ".State = 1 Then rst.Refresh DataGrid1.TranType.ListIndex = 0 Call DeleteRecord Call FillDBgrid Call FillBalance Adodc1.EOF = True Combo1.MoveNext Wend End If Combo1. cmdtext If rst.date1 from transaction1 where actno = " & Combo1.AddItem rs(0) rs." & rst(2) & ".Recordset If rst.Cheqno.Execute stmt End Sub Private Sub FillDBgrid() Dim rst As New ADODB.

Close rsq.Text = "Not Any Transaction Made" End If Call FillBalance End Sub Private Sub FillBalance() Dim rsq As New ADODB.Bank Management System Wend End If Else StatusBar1.Text = rsq(0) End Sub ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~ 64 . cn.State = 1 Then rsq.Recordset If rsq. cmdtext Text1. adOpenKeyset.Text & " ". adLockOptimistic.Open "select Balance from BalanceTable where actno = " & Combo1.Panels(0).

Bank Management System Bank Account Statement Report:-- _____________________________________________________________________ _ Component : Statement report form Form Name : FrmStetement Code:- 65 .

Requery StatmentRept.State = 1 Then DataEnvironment1. cn. cmdtext DataEnvironment1. ByVal ErrObj As MSDataReportLib.rsCommand1.State = 1 Then DataEnvironment1. ByVal Cookie As Long. cmdtext DataEnvironment1.Refresh End Sub ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ _____________________________________________________________________ ___ 66 .rsCommand1.Open "select * from Temptable".Bank Management System Private Sub DataReport_Error(ByVal JobType As MSDataReportLib.rsCommand1.Close 'DataEnvironment1. cn.Close DataEnvironment1.rsCommand1.AsyncTypeConstants.rsCommand1. adLockOptimistic. adOpenKeyset.rsCommand1.Open "select * from Temptable". adLockOptimistic.Refresh End Sub Private Sub DataReport_Initialize() On Error Resume Next If DataEnvironment1.rsCommand1.RptError. ShowError As Boolean) On Error Resume Next If DataEnvironment1.Requery StatmentRept. adOpenKeyset.rsCommand1.

rsCommand1.Bank Management System Module Code:_____________________________________________________________________ ___ Dim stmt As String Dim rs As New ADODB.rsCommand1.rsCommand1.Close DataEnvironment1. cn.Show 1 End Sub Private Sub Command2_Click() Unload Me End Sub Private Sub Command3_Click() If DataEnvironment1.rsCommand1.Refresh End Sub Private Sub Command1_Click() Unload Me 'Form1.Recordset Private Sub Combo1_Click() Call DeleteRecord Call FillDBgrid Call FillBalance Adodc1.Requery StatmentRept. adLockOptimistic. cmdtext DataEnvironment1.Refresh 67 .Open "select * from Temptable".State = 1 Then DataEnvironment1. adOpenKeyset.Refresh DataGrid1.

ActiveConnection = cn If rs.State = 1 Then rs.Close rs.Refresh DataGrid1.CursorType = adOpenKeyset rs.AddItem rs(0) rs.EOF = True Combo1.MoveNext Wend End If Combo1.Execute stmt End Sub 68 .Refresh End Sub Private Sub DeleteRecord() stmt = "delete from TempTable " cn.Open "select actno from account order by actno" If rs.ListIndex = 0 Call DeleteRecord Call FillDBgrid Call FillBalance Adodc1.CursorLocation = adUseClient rs.Show End Sub Private Sub DataGrid1_Click() End Sub Private Sub Form_Load() rs.RecordCount > 0 Then rs.MoveFirst While Not rs.Bank Management System StatmentRept.LockType = adLockOptimistic rs.

'" & rst(1) & "'. cn.Panels(0).EOF = True stmt = "insert into TempTable values ( " & rst(0) & ".Text & " ".date1 from transaction1 where actno = " & Combo1.BOF Then rst.Bank Management System Private Sub FillDBgrid() Dim rst As New ADODB.Open "select ActNo.MoveFirst While Not rst.RecordCount > 0 Then If Not rst. cmdtext If rst.Recordset If rsq. adOpenKeyset.Text & "".Close If Not Combo1.State = 1 Then rsq.amount. cmdtext Text1.TranType.Text = rsq(0) 69 .Recordset If rst.Open "select Balance from BalanceTable where actno = " & Combo1.Cheqno.MoveNext Wend End If Else StatusBar1.State = 1 Then rst.Text = "" Then rst.Execute stmt Adodc1. cn.Refresh DoEvents DataGrid1. adLockOptimistic. adLockOptimistic.Text = "Not Any Transaction Made" End If Call FillBalance End Sub Private Sub FillBalance() Dim rsq As New ADODB." & rst(2) & "." & rst(4) & ")" cn.Close rsq. adOpenKeyset." & rst(3) & ".Refresh rst.

Bank Management System End Sub ***** END OF THE PROGRAM ***** 70 .

Double click the application software. where staff can store database in computer and easily analyse the data and get information.. 71 . Save exefiles and database files and folder under "banksys" folder in ..C: drive. List of all account holders: User can view the consolidated list of all the account holders. Transactions: User can deposit or withdraw amount in customer’s account by selecting transaction form of the project. hospital project.indiaonline.com” is developed by ………….. To install this application software in your system do the following:1). For exit click on exit. Opening new account: User can open new customer account by adding new record from customer form. This is a application software like any application working on bank. etc..Bank Management System Documentation This website project “www. 3). 2). User Manual Account Statement: User can take the account statement by displaying all the customers records.

ATM services. Utmost care and back-up procedures must be established to ensure 100% successful implementation of the computerized banking system. Overall the project teaches us the essential skills like: Using system analysis and design techniques like data flow diagram in designing the system. like – opening saving or current account.   Understanding the database handling 72 . services like payment of electricity bills. the organization should be in a position to process the transaction with another organization or if the worst comes to the worst. keeping in mind the specifications of the system. In case of system failure. providing credit or debit card services. For designing the system we have used simple data flow diagrams. It has been developed in Visual Basic.Bank Management System Future Scope of the Project This project can be used in the bank after adding some more useful modules in the project for which banks are providing services. giving loans. it should be in a position to complete it manually Conclusion This project is designed to meet the requirements of a Banking System. telephone bills.

Bank Management System Reference: ---1. Visual Basic (BT -12. Mastering Visual Basic-6 73 . Advance Microsoft Visual Basic -6. Programming Microsoft Visual Basic -6 4. Manipal) 2.0 2nd Editions 3.

Sign up to vote on this title
UsefulNot useful