Вы находитесь на странице: 1из 86

INTRODUCTION The Domain Banking System " keeps the day by day tally record as a completebanking.

It can keep the information of Account type, account opening form, Deposit,Withdrowal, and Searching the transaction, Transaction report, Individual accountopening form, Group Account. The exciting part of this project is; it displays Transactionreports, Statistical Summary of Account type and Interest Information. SYNOPSIS Banking System " keeps the day by day tally record as a complete banking. It cankeep the information of Account type, account opening form, Deposit, Withdrawal, andSearching the transaction, Transaction reports, Individual account opening form, GroupAccount. The exciting part of this project is; it displays Transaction reports, StatisticalSummary of Account type and Interest Information. AIM In the existing system the transactions are done only manually but inproposed system we have to computerize all the banking transaction using the softwareBanking System.They are:Administrative Module ADMINISTRATIVE MODULE This module is the main module which performs all the main operations inthe system. The major operations in the system are: Account Opening Form Deposit Withdrawal Account type Searching Transaction Transaction report

SYSTEM STUDY AND ANALISYS SYSTEM ANALYSIS System analysis is a process of gathering and interpreting facts, diagnosing problemsand the information to recommend improvements on the system. It is a problem solvingactivity that requires intensive communication between the system users and systemdevelopers. System analysis or study is an important phase of any system developmentprocess. The system is studied to the minutest detail and analyzed. The system analystplays the role of the interrogator and dwells deep into the working of the present system.The system is viewed as a whole and the input to the system are identified. The outputsfrom the organizations are traced to the various processes. System analysis is concernedwith becoming aware of the problem, identifying the relevant and decisional variables,analyzing and synthesizing the various factors and determining an optimal or at least asatisfactory solution or program of action.A detailed study of the process must be made by various techniques like interviews,questionnaires etc. The data collected by these sources must be scrutinized to arrive to aconclusion. The conclusion is an understanding of how the system functions. This systemis called the existing system. Now the existing system is subjected to close study andproblem areas are identified. The designer now functions as a problem solver and tries tosort out the difficulties that the enterprise faces. The solutions are given as proposals. Theproposal is then weighed with the existing system analytically and the best one isselected. The proposal is presented to the user for an endorsement by the user. Theproposal is reviewed on user request and suitable changes are made. This is loop thatends as soon as the user is satisfied with proposal.Preliminary study is the process of gathering and interpreting facts, using theinformation for further studies on the system. Preliminary study is problem solvingactivity that requires intensive communication between the system users and systemdevelopers. It does various feasibility studies. In these studies a rough figure of thesystem activities can be obtained, from which the decision about the strategies to befollowed for effective system study and analysis can be taken.

EXISTING SYSTEM In the existing system the transactions are done only manually but in proposedsystem we have to computerize all the banking transaction using the software Bankingsystem. 2. 1.1 PROBLEMS WITH EXISTING SYSTEM Lack of security of data. More man power. Time consuming. Consumes large volume of pare work. Needs manual calculations. No direct role for the higher officials. Damage of machines due to lack of attention. To avoid all these limitations and make the working more accurately the system needs tobe computerized. PROPOSED SYSTEM The aim of proposed system is to develop a system of improved facilities. Theproposed system can overcome all the limitations of the existing system. The systemprovides proper security and reduces the manual work. 2. 2. 1 ADVANTAGES OF THE PROPOSED SYSTEM The system is very simple in design and to implement. The system requires very lowsystem resources and the system will work in almost all configurations. It has gotfollowing features

Security of data. Ensure data accuracy. Proper control of the higher officials. Reduce the damages of the machines. Minimize manual data entry. Minimum time needed for the various processing. Greater efficiency. Better service. User friendliness and interactive. Minimum time required. 2.3. FEASIBILITY STUDY Feasibility study is made to see if the project on completion will serve the purpose of the organization for the amount of work, effort and the time that spend on it. Feasibilitystudy lets the developer foresee the future of the project and the usefulness. A feasibilitystudy of a system proposal is according to its workability, which is the impact on theorganization, ability to meet their user needs and effective use of resources. Thus when anew application is proposed it normally goes through a feasibility study before it isapproved for development.The document provide the feasibility of the project that is being designed and listsvarious areas that were considered very carefully during the feasibility study of thisproject such as Technical,Economic and Operational feasibilities. The following are itsfeatures: 2.3.1. TECHNICAL FEASIBILITY The system must be evaluated from the technical point of view first. The assessmentof this feasibility must be based on an outline design of the

system requirement in theterms of input, output, programs and procedures. Having identified an outline system, theinvestigation must go on to suggest the type of equipment, required method developingthe system, of running the system once it has been designed.Technical issues raised during the investigation are:Does the existing technology sufficient for the suggested one? Can the system expand if developed?The project should be developed such that the necessary functions and performanceare achieved within the constraints. The project is developed within latest technology.Through the technology may become obsolete after some period of time, due to the factthat never version of same software supports older versions, the system may still be used.So there are minimal constraints involved with this project. The system has beendeveloped using Java the project is technically feasible for development. 2.3.2. ECONOMIC FEASIBILITY The developing system must be justified by cost and benefit. Criteria to ensure thateffort is concentrated on project, which will give best, return at the earliest. One of thefactors, which affect the development of a new system, is the cost it would require.The following are some of the important financial questions asked during preliminaryinvestigation: The costs conduct a full system investigation. The cost of the hardware and software. The benefits in the form of reduced costs or fewer costly errors.Since the system is developed as part of project work, there is no manual cost to spendfor the proposed system. Also all the resources are already available, it give an indicationof the system is economically possible for development. 2.3.3. BEHAVIORAL FEASIBILITY This includes the following questions: Is there sufficient support for the users?

Will the proposed system cause harm?The project would be beneficial because it satisfies the objectives when developed andinstalled. All behavioral aspects are considered carefully and conclude that the project isbehaviorally feasible. 5 SYSTEM DESIGN 3.1 INTRODUCTION Design is the first step into the development phase for any engineered product or system. Design is a creative process. A good design is the key to effective system. Theterm design is defined as the process of applying various techniques and principles for the purpose of defining a process or a system in sufficient detail to permit its physicalrealization. It may be defined as a process of applying various techniques and principlesfor the purpose of defining a device, a process or a system in sufficient detail to permit itsphysical realization. Software design sits at the technical kernel of the softwareengineering process and is applied regardless of the development paradigm that is used.The system design develops the architectural detail required to build a system or product.As in the case of any systematic approach, this software too has undergone the bestpossible design phase fine tuning all efficiency, performance and accuracy levels. Thedesign phase is a transition from a user oriented document to a document to theprogrammers or database personnel. System design goes through two phases of development: Logical and Physical Design. LOGICAL DESIGN: The logical flow of a system and define the boundaries of a system. It includes thefollowing steps: Reviews the current physical system its data flows, file content, volumes ,frequencies etc. Prepares output specifications that is, determines the format, content andfrequency of reports. Prepares input specifications format, content and most of the input functions. Prepares edit, security and control specifications.

Specifies the implementation plan. Prepares a logical design walk through of the information flow, output, input,controls and implementation plan. Reviews benefits, costs, target dates and system constraints. PHYSICAL DESIGN: Physical system produces the working systems by define the design specifications thattell the programmers exactly what the candidate system must do. It includes the followingsteps. Design the physical system. Specify input and output media. Design the database and specify backup procedures. Design physical information flow through the system and a physical design Walk through. Plan system implementation. Prepare a conversion schedule and target date. Determine training procedures, courses and timetable. Devise a test and implementation plan and specify any new hardware/software. pdate benefits , costs , conversion date and system constraints Design/Specification activities: oncept formulation. y Problem understanding. y

High level requirements proposals. y Feasibility study. y R equirements engineering. y Architectural design. MODULE DESIGNAdmin The Administrator logs in using the admin login. In this module two operationsare done. During login the Login and Password is verified with that in the database INPUT DESIGN The design of input focuses on controlling the amount of input required, controllingthe errors, avoiding delay, avoiding extra steps and keeping the process simple. The inputis designed in such a way so that it provides security and ease of use with retaining theprivacy. Input Design considered the following things: o What data should be given as input? o How the data should be arranged or coded? o The dialog to guide the operating personnel in providing input. o Methods for preparing input validations and steps to follow when error occur. OBJECTIVES Input Design is the process of converting a user-oriented description of the input into acomputer-based system. This design is important to avoid errors in the data input processand show the correct direction to the management for getting correct information fromthe computerized system.It is achieved by creating user-friendly screens for the data entry to handle large volumeof data. The goal of designing input is to make data entry easier and to be free fromerrors. The data entry screen is designed in such a way that all the data manipulates canbe performed. It also provides record viewing facilities.

7When the data is entered it will check for its validity. Data can be entered with the help of screens. Appropriate messages are provided as when needed so that the user will not be ina maize of instant. Thus the objective of input design is to create an input layout that iseasy to follow OUTPUT DESIGN A quality output is one, which meets the requirements of the end user and presents theinformation clearly. In output design it is determined how the information is to bedisplaced for immediate need and also the hard copy output. It is the most important anddirect source information to the user. E fficient and intelligent output design improves thesystems relationship to help user decision-making.Designing computer output should proceed in an organized, well thought out manner;the right output must be developed while ensuring that each output element is designed sothat people will find the system can use easily and effectively. When analysis designcomputer output, they should : Identify the specific output that is needed to meet the requirements. Select methods for presenting information. Create document, report, or other formats that contain information produced bythe system. 3.3 DATABASE DESIGN A database is an organized mechanism that has the capability of storing informationthrough which a user can retrieve stored information in an effective and efficient manner.The data is the purpose of any database and must be protected.The database design is a two level process. In the first step, user requirements aregathered together and a database is designed which will meet these requirements asclearly as possible. This step is called Information Level Design and it is takenindependent of any individual DBMS.In the second step, this Information level design is transferred into a design for thespecific DBMS that will be used to implement the system in question. This step is calledPhysical L

evel Design, concerned with the characteristics of the specific DBMS that willbe used. A database design runs parallel with the system design. The organization of thedata in the database is aimed to achieve the following two major objectives. Data Integrity Data independenceNormalization is the process of decomposing the attributes in an application, whichresults in a set of tables with very simple structure. The purpose of normalization is tomake tables as simple as possible. Normalization is carried out in this system for thefollowing reasons. y To structure the data so that there is no repetition of data , this helps in saving. 8 y To permit simple retrieval of data in response to query and report request. y To simplify the maintenance of the data through updates, insertions, deletions. y To reduce the need to restructure or reorganize data which new applicationrequirements arise. RELATIONAL DATABASE MANAGEMENT SYSTEM (RDBMS): A relational model represents the database as a collection of relations. E ach relationresembles a table of values or file of records. In formal relational model terminology, arow is called a tuple, a column header is called an attribute and the table is called arelation. A relational database consists of a collection of tables, each of which is assigneda unique name. A row in a tale represents a set of related values. RELATIONS, DOMAINS & ATTRIBUTES: A table is a relation. The rows in a table are called tuples. A tuple is an ordered set of n elements. C olumns are referred to as attributes.

R elationships have been set betweenevery table in the database. This ensures both R eferential and E ntity R elationshipIntegrity. A domain D is a set of atomic values. A common method of specifying adomain is to specify a data type from which the data values forming the domain aredrawn. It is also useful to specify a name for the domain to help in interpreting its values. E very value in a relation is atomic, that is not decomposable. RELATIONSHIPS: Table relationships are established using Key. The two main keys of prime importanceare Primary Key & Foreign Key. E ntity Integrity and R eferential Integrity R elationshipscan be established with these keys. E ntity Integrity enforces that no Primary Key can havenull values. R eferential Integrity enforces that no Primary Key can have null values. R eferential Integrity for each distinct Foreign Key value, there must exist a matchingPrimary Key value in the same domain. Other key are Super Key and C andidate Keys. R elationships have been set between every table in the database. This ensures both R eferential and

E ntity R elationship Integrity. NORMALIZATION: As the name implies, it denoted putting things in the normal form. The applicationdeveloper via normalization tries to achieve a sensible organization of data into proper tables and columns and where names can be easily correlated to the data by the user.Normalization eliminates repeating groups at data and thereby avoids data redundancywhich proves to be a great burden on the computer resources. These includes: Normalize the data. C hoose proper names for the tables and columns. C hoose the proper name for the data. 9 First Normal Form :The First Normal Form states that the domain of an attribute must include only atomicvalues and that the value of any attribute in a tuple must be a single value from thedomain of that attribute. In other words 1NF disallows relations within relations or relations as attribute values within tuples. The only attribute values permitted by 1NFare single atomic or indivisible values.The first step is to put the data into First Normal Form. This can be donor by movingdata into separate tables where the data is of similar type in each table. E ach table isgiven a Primary Key or Foreign Key as per requirement of the project. In this we formnew relations for each nonatomic attribute or nested relation. This eliminated repeatinggroups of data.A relation is said to be in first normal form if only if it satisfies the constraints thatcontain the primary key only. Second Normal Form :According to Second Normal Form, For relations where primary key contains multipleattributes, no nonkey attribute should be functionally

dependent on a part of the primarykey.In this we decompose and setup a new relation for each partial key with its dependentattributes. Make sure to keep a relation with the original primary key and any attributesthat are fully functionally dependent on it. This step helps in taking out data that is onlydependant on apart of the key.A relation is said to be in second normal form if and only if it satisfies all the firstnormal form conditions for the primary key and every non-primary key attributes of therelation is fully dependent on its primary key alone. Third Normal Form :According to Third Normal Form, R elation should not have a nonkey attributefunctionally determined by another nonkey attribute or by a set of nonkey attributes. Thatis, there should be no transitive dependency on the primary key.In this we decompose and set up relation that includes the nonkey attributes thatfunctionally determines other nonkey attributes. This step is taken to get rid of anythingthat does not depend entirely on the Primary Key.A relation is said to be in third normal form if only if it is in second normal form andmore over the non key attributes of the relation should not be depend on other non keyattribute. 10 TABLES STRUCTURE Table: bank_tablePrimary bank id Field Data Type Constraints Descriptionbank id Number(9) Primary keyname char(30)type char(30)date dateAddress char(30)total numberAcc_no number Table: bankwithdrawPrimary Key: b id Field Data Type Constraints Descriptionemp id Number(9) Primary keyname char(30)Acc_no Numberdate dateamount Number Table: DailyTransPrimary Key: Account no: Field Data Type Constraints Description Account no Number(9) Primary key firstname char(30)surname char(30)date dateTransactionName char(30)Transaction amount Number(9)Previous Balance Number(9) C urrent Balance Number(9) 11Owner Name char(30)Table: currentPrimary Key: account no Field Data Type Constraints Description

Account no Number(9) Primary keySurname char(30)Firstname char(30)Account type C har(30) C urrent balance char(30)Table: Account typePrimary account no Field Data Type Constraints Description Account no Number(9) Primary keySurname char(30)Firstname char(30)DateOfOpening dateAddress char(30)Phone no Number(9)Occupation char(30)Nextofkin char(30)Account Type char(30)Account status char(30)Opening amount Number(9) 12 SYSTEM DEVELOPEMENT 4.1 SYSTEM SPECIFICATION HARDWARE REQUIREMENTS Processor : X86 C ompatible processor with 1.7 GHz C lock speed R AM : 512 MB or moreHard disk : 20 GB or moreMonitor : VGA/SVGAKeyboard : 104 KeysMouse : 2 buttons/ 3 buttons SOFTWARE REQUIREMENTS Operating System : Windows 2000/XPFront end : Visual Basic 6.0Back end : MS Access 4.2 SOFTWARE ENVIRONMENT The Control Properties Before writing an event procedure for the control to response to a user's input, you haveto set certain properties for the control to determine its appearance and how it will work with the event procedure. You can set the properties of the controls in the propertieswindow or at runtime. Handling some of the common controls3.2.1 The Text Box The text box is the standard control for accepting input from the user as well as to displaythe output. It can handle string (text) and numeric data but not images or pictures. String

13in a text box can be converted to a numeric data by using the function Val(text). Thefollowing example illustrates a simple program that processes the input from the user. Example 3.1 In this program, two text boxes are inserted into the form together with a few labels. Thetwo text boxes are used to accept inputs from the user and one of the labels will be usedto display the sum of two numbers that are entered into the two text boxes. Besides, acommand button is also programmed to calculate the sum of the two numbers using theplus operator. The program use creates a variable sum to accept the summation of valuesfrom text box 1 and text box 2.The procedure to calculate and to display the output on thelabel is shown below. The output is shown in Figure 3.2Private Sub C ommand1_ C lick()To add the values in text box 1 and text box 2 Sum = Val(Text1.Text) + Val(Text2.Text)To display the answer on label 1 L abel1. C aption = Sum E nd Sub Figure 3.23.2.2 The Label The label is a very useful control for Visual Basic, as it is not only used to provideinstructions and guides to the users, it can also be used to display outputs. One of its mostimportant properties is Caption . Using the syntax label.Caption , it can display text andnumeric data . You can change its caption in the properties window and also at runtime.Please refer to E xample 3.1 and Figure 3.1 for the usage of label. 3.2.3 The Command Button The command button is one of the most important controls as it is used to executecommands. It displays an illusion that the button is pressed

when the user click on it. Themost common event associated with the command button is the C lick event, and thesyntax for the procedure isPrivate Sub C ommand1_ C lick ()Statements 14 E nd Sub 3.2.4 The Picture Box The Picture Box is one of the controls that is used to handle graphics. You can load apicture at design phase by clicking on the picture item in the properties window andselect the picture from the selected folder. You can also load the picture at runtime usingthe LoadPicture method. For example, the statement will load the picture grape.gif intothe picture box.Picture1.Picture= L oadPicture (" C :\VB program\Images\grape.gif")You will learn more about the picture box in future lessons. The image in the picture boxis not resizable. 3.2.5 The Image Box The Image Box is another control that handles images and pictures. It functions almostidentically to the picture box. However, there is one major difference, the image in anImage Box is stretchable, which means it can be resized. This feature is not available inthe Picture Box. Similar to the Picture Box, it can also use the L oadPicture method toload the picture. For example, the statement loads the picture grape.gif into the imagebox.Image1.Picture= L oadPicture (" C :\VB program\Images\grape.gif") 3.2.6 The List Box

The function of the L ist Box is to present a list of items where the user can click andselect the items from the list. In order to add items to the list, we can use the AddItemmethod . For example, if you wish to add a number of items to list box 1, you can key inthe following statements Example 3.2 Private Sub Form_ L oad ( ) L ist1.AddItem L esson1 L ist1.AddItem L esson2 L ist1.AddItem L esson3 L ist1.AddItem L esson4 E nd SubThe items in the list box can be identified by the ListIndex property, the value of the L istIndex for the first item is 0, the second item has a L istIndex 1, and the second itemhas a L istIndex 2 and so on 3.2.7 The Combo Box

The function of the C ombo Box is also to present a list of items where the user can click and select the items from the list. However, the user needs to click on the smallarrowhead on the right of the combo box to see the items which are presented in a drop-down list. In order to add items to the list, you can also use the AddItem method . For 15example, if you wish to add a number of items to C ombo box 1, you can key in thefollowing statements Example 3.3 Private Sub Form_ L oad ( ) C ombo1.AddItem Item1 C ombo1.AddItem Item2 C ombo1.AddItem Item3 C ombo1.AddItem Item4 E nd Sub 3.2.8 The Check Box The C heck Box control lets the user selects or unselects an option. When the C heck Boxis checked, its value is set to 1 and when it is unchecked, the value is set to 0. You caninclude the statements C heck1.Value=1 to mark the C heck Box and C

heck1.Value=0 tounmark the C heck Box, as well as use them to initiate certain actions. For example, theprogram will change the background color of the form to red when the check box isunchecked and it will change to blue when the check box is checked. You will learnabout the conditional statement If.Then. E lesif in later lesson. Vb R ed and vbBlue arecolor constants and Back C olor is the background color property of the form. 3.2.9 The Option Box The Option Box control also lets the user selects one of the choices. However, two or more Option Boxes must work together because as one of the Option Boxes is selected,the other Option Boxes will be unselected. In fact, only one Option Box can be selectedat one time. When an option box is selected, its value is set to True and when it isunselected; its value is set to False. In the following example, the shape control isplaced in the form together with six Option Boxes. When the user clicks on differentoption boxes, different shapes will appear. The values of the shape control are 0, 1, and2,3,4,5 which will make it appear as a rectangle, a square, an oval shape, a roundedrectangle and a rounded square respectively. Example 3.4 Private Sub Option1_ C lick ( )Shape1.Shape = 0 E nd SubPrivate Sub Option2_ C lick()Shape1.Shape = 1 E nd SubPrivate Sub Option3_ C lick()Shape1.Shape = 2 E nd SubPrivate Sub Option4_

C lick()Shape1.Shape = 3 E nd SubPrivate Sub Option5_ C lick()Shape1.Shape = 4 16 E nd SubPrivate Sub Option6_ C lick()Shape1.Shape = 5 E nd Sub 3.2.10 The Drive List Box The Drive L istBox is for displaying a list of drives available in your computer. When youplace this control into the form and run the program, you will be able to select differentdrives from your computer as shown in Figure 3.3 3.2.11 The Directory List Box The Directory L ist Box is for displaying the list of directories or folders in a selecteddrive. When you place this control into the form and run the program, you will be able toselect different directories from a selected drive in your computer as shown in Figure 3.4 3.2.12 The File List Box The File L ist Box is for displaying the list of files in a selected directory or folder. Whenyou place this control into the form and run the program, you will be able to shown thelist of files in a selected directory as shown in Figure 3.5You can coordinate the Drive L ist Box, the Directory L ist Box and the File L

ist Box tosearch for the files you want. The procedure will be discussed in later lessons. 17 SYSTEM IMPLEMENTATION AND TESTING 5.1 CODING Main Form Coding Private Sub cmdQuit_ C lick() E nd E nd SubPrivate Sub C ommand1_ C lick() E nd E nd SubPrivate Sub MDIForm_ L oad() C all connectDatabase E nd SubPrivate Sub Toolbar1_Button C lick(ByVal Button As MS C omctl L ib.Button)Select C ase Button.Index C ase 1:frm C

ustomers.Show C ase 4:frmDeposits.Show C ase 7:frmWithdrawal.Show C ase 10:frmTransactions.Show E nd Select E nd SubPrivate Sub Toolbar1_ButtonMenu C lick(ByVal ButtonMenu AsMS C omctl L ib.ButtonMenu)Select C ase ButtonMenu.Key C ase "acc_type"frmAccTypes.Show 18 C ase "customer"Set rpt C ustomers.DataSource = NothingSet rpt C ustomers.DataSource = rs C ustomersrpt C ustomers.Show C ase "deposit"Set rptDeposits.DataSource = NothingSet rptDeposits.DataSource = rsDepositrptDeposits.Show C ase "withdraw"Set rptWithdrawals.DataSource = NothingSet rptWithdrawals.DataSource = rsWithdrawalrptWithdrawals.Show

E nd Select E nd SubPrivate Sub cmdAdd_ C lick()New R ecord = TruecmdAdd. E nabled = FalsecmdSave. E nabled = Truecmd C ancel. E nabled = Truecmd E dit. E nabled = FalsecmdQuit. E nabled = False C all Un L ock_Form_ C ontrols(Me)MsgBox ("Are Ypu sure") C all clear_Form_ C ontrols(Me) C all GenerateNewAccount C odetxtAccountID. L ocked = TruetxtAccountName.SetFocus

E nd SubPrivate Sub cmd C ancel_ C lick()cmdAdd. E nabled = TruecmdSave. E nabled = Falsecmd C ancel. E nabled = Falsecmd E dit. E nabled = TruecmdQuit. E nabled = TrueWith rsAccTypesIf New R ecord = True Then. C ancelUpdate 19New R ecord = False E lse. C ancelUpdate E nd If C all DisplayaccTypes(rsAccTypes) E nd WithMsgBox ("Are You Sure") C

all L ock_Form_ C ontrols(Me) E nd SubPrivate Sub cmd E dit_ C lick()New R ecord = FalsecmdAdd. E nabled = FalsecmdSave. E nabled = Truecmd C ancel. E nabled = Falsecmd E dit. E nabled = TruecmdQuit. E nabled = TrueMsgBox ("Are you Sure to E dit") C all Un L ock_Form_ C ontrols(Me) E nd SubPrivate Sub cmdFirst_ C

lick() C all MoveToFirst(rsAccTypes) C all DisplayaccTypes(rsAccTypes)lblStatus. C aption = C Str(" R ecord :" & rsAccTypes.AbsolutePosition & " of " &rsAccTypes. R ecord C ount) E nd SubPrivate Sub cmd L ast_ C lick() C all MoveTo L ast(rsAccTypes) C all DisplayaccTypes(rsAccTypes)lblStatus. C aption = C Str(" R ecord :" & rsAccTypes.AbsolutePosition & " of " &rsAccTypes. R ecord C ount) E

nd SubPrivate Sub cmdNext_ C lick() C all MoveToNext(rsAccTypes) C all DisplayaccTypes(rsAccTypes)lblStatus. C aption = C Str(" R ecord :" & rsAccTypes.AbsolutePosition & " of " &rsAccTypes. R ecord C ount) E nd SubPrivate Sub cmdPrevious_ C lick() C all MoveToPrev(rsAccTypes) C all DisplayaccTypes(rsAccTypes) 20lblStatus. C aption = C Str(" R ecord :" & rsAccTypes.AbsolutePosition & " of " &rsAccTypes. R ecord C ount) E nd SubPrivate Sub cmdQuit_

C lick()MsgBox ("Are You sure to exit")Unload Me E nd SubPublic Sub GenerateNewAccount C ode()Dim lastnumber As L ong, newnumber As L ong' C heck if there are records in the fileWith rsAccTypesIf .BOF = True And . E OF = True Thenlastnumber = 1000 E lse.Move L astlastnumber = !AccountID E nd If 'Generate New Number newnumber = lastnumber + 1txtAccountID.Text = newnumber E nd With E nd SubPrivate Sub cmdSave_ C lick()With rsAccTypesIf New R ecord = True Then .AddNew!AccountID = txtAccountID.Text!AccountName = txtAccountName.Text!Description = txtDescription.Text'!Intrest R ate = txtInterest R ate.Text!MinBalance = txtMinBalance.Text.UpdateMsgBox ("You are successfully added") E nd With

E nd SubPrivate Sub Form_ L oad() C all connectDatabasecmdAdd. E nabled = TruecmdSave. E nabled = Falsecmd C ancel. E nabled = Falsecmd E dit. E nabled = FalsecmdQuit. E nabled = True C all L ock_Form_ C ontrols(Me) C all DisplayaccTypes(rsAccTypes) 21lblStatus. C aption = C Str(" R ecord :" & rsAccTypes.AbsolutePosition & " of " &rsAccTypes. R ecord C

ount) C all DisplayaccTypes(rsAccTypes) E nd SubPublic Sub DisplayaccTypes(my R s As R ecordset)With my R sIf .BOF = True And . E OF = True Then E xit SubtxtAccountID.Text = !AccountIDtxtAccountName.Text = !AccountNametxtDescription.Text = !Description'txtInterest R ate.Text = !Interest R atetxtMinBalance.Text = !MinBalance E nd With E nd SubDim cleardisplay As BooleanDim strMessage As StringPrivate Sub cmdAccept_ C lick()Set rs = New ADODB. R ecordsetWith rs.Active C onnection = con. C ursor L ocation = adUse C lient. C

ursorType = adOpenKeyset. L ockType = ad L ockOptimistic.Open "tblScode" E nd WithWith rs.Find "Scode ='" & txtDisplay & "'"If . E OF ThenMsgBox "Pin Number is incorrect or does not E xist", vb C ritical, "ATM-Pin E rror"txtDisplay = "": txtDisplay.SetFocus E lsefraTransaction.Visible = TruefraSecret C ode.Visible = False E nd If E nd WithtxtDisplay = "" E nd SubPrivate Sub cmdBack_ C lick()fraTransaction.Visible = FalsefraSecret C ode.Visible = True E nd SubPrivate Sub cmd C ancel_ C lick() 22fraAcctType.Visible = FalsefraTransaction.Visible = True E nd SubPrivate Sub cmd

C lear_ C lick()txtDisplay.Text = "": txtDisplay.SetFocus E nd SubPrivate Sub cmd E xit_ C lick()fraSecret C ode.Visible = FalseMsgBox "Thank you for Banking with us, Do have an nice day...", vbInformation, "A TM-S ER VI CE " E nd E nd SubPrivate Sub cmdOk_ C lick()With deBankUba.conBankUba.Open "P R OVID ER =Microsoft.Jet.O LE DB.4.0;Data Source=" +App.Path + "\BankUba.mdb;".rscmdStatement.Open "Select * From DailyTrans where [AccountNumber]='" &txtAcctNo & "'", deBankUba.conBankUba, adOpenDynamic, ad L ockOptimisticrptStatement.Show vbModal.conBankUba. C lose E nd WithUnload Me

E nd SubPrivate Sub cmdInquery_ C lick()fraAcctType.Visible = TruefrmStatement. C aption = " E nter your Account Number"frmStatement.cmdSearch. C aption = "&Inquire"frmWel.fraTransaction.Visible = False E nd SubPrivate Sub cmdNewAcct_ C lick()frmNewAcct.Show vbModal E nd SubPrivate Sub cmdPin_ C lick()fraTransaction.Visible = Falsefrm C hangePin.Show vbModal E nd SubPrivate Sub cmdProceed_ C lick()fraAcctType.Visible = FalsefrmStatement.Show vbModal E nd Sub 23Private Sub cmdStatement_ C lick()fraTransaction.Visible = FalsefraAcctType.Visible = True E nd SubPrivate Sub cmdTransfer_ C lick()strMessage = "This Service is Un-Avialable at the moment, Please bear with us"MsgBox strMessage, vbInformation, "A T M S ER VI CE "fraTransaction.Visible = True

E nd SubPrivate Sub cmdWithD_ C lick()fraAcctType.Visible = TruefrmStatement. C aption = " E nter your Account Number"frmStatement.cmdSearch. C aption = "&Process"frmWel.fraTransaction.Visible = False E nd SubPrivate Sub digits_ C lick(Index As Integer)If cleardisplay ThentxtDisplay.Text = ""cleardisplay = False E nd If txtDisplay.Text = txtDisplay.Text + digits(Index). C aption E nd SubPrivate Sub Form_Activate()'ShockwaveFlash1.Movie = App.Path & "\" & "BANKING.swf"ShockwaveFlash1.PlayShockwaveFlash1. L oop = True E nd SubPrivate Sub Form_ L oad() C all OpenDBfraSecret C ode.Visible = True E nd SubPrivate Sub mnuDeposit_ C lick()frmDeposit.Show vbModal E

nd SubDim currBalance As C urrencyPrivate Sub cbo C ustomerNo_ C lick()Set rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * F R OM tbl C ustomers WH ERE C ustomerID='" &cbo C ustomerNo.Text & "'", cnBank, adOpenKeyset, ad L ockOptimisticWith rsTemp 24If . R ecord C ount > 0 ThentxtAccountNo.Text = !AccountNotxtNarration.SetFocus E lseMsgBox "Invalid C ustomer C ode", vbInformationtxtAccountNo.Text = "" E xit Sub E nd If . C loseDim lstItem As L

istItemPrivate Sub cboAccNo_ C lick()Set rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * from tbl C ustomers Where AccountNo='" & cboAccNo.Text &"'", cnBank, adOpenKeyset, ad L ockOptimisticWith rsTempIf . R ecord C ount > 0 ThencboAccNo = !AccountNocbo C ustomerID = ! C ustomerIDcboFirst = !FirstName E lseMsgBox "Invalid customer ID/Name/Account NO. Please Try Again", vbInformation E xit Sub E nd If . C lose E nd WithSet rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * from tblTransactions Where AccountNo='" & cboAccNo.Text &"'", cnBank, adOpenKeyset, ad L ockOptimisticWith rsTempIf . R ecord C ount > 0 ThenlvwTransactions.

L istItems. C lear C all L oad L istView(rsTemp)'cboAccNo = !AccountNo'cbo C ustomerID = ! C ustomerID'cboFirst = !FirstName E lseMsgBox "Invalid customer ID/Name/Account NO. Please Try Again", vbInformation E xit Sub E nd If . C lose E nd With E nd Sub 25Private Sub cbo C ustomerID_ C lick()Set rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * from tbl C ustomers Where customerID='" & cbo C ustomerID.Text& "'", cnBank, adOpenKeyset, ad

L ockOptimisticWith rsTempIf . R ecord C ount > 0 ThencboAccNo = !AccountNocbo C ustomerID = ! C ustomerIDcboFirst = !FirstName E lseMsgBox "Invalid customer ID/Name/Account NO. Please Try Again", vbInformation E xit Sub E nd If . C lose E nd WithSet rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * from tblTransactions Where customerID='" &cbo C ustomerID.Text & "'", cnBank, adOpenKeyset, ad L ockOptimisticWith rsTempIf . R ecord C ount > 0 ThenlvwTransactions. L istItems. C lear C all

L oad L istView(rsTemp) E lseMsgBox "No Transactions bearing this customer ID. Please Try Again", vbInformation E xit Sub E nd If . C lose E nd With E nd SubPrivate Sub cboFirst_ C lick()Set rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * from tbl C ustomers Where FirstName='" & cboFirst.Text & "'",cnBank, adOpenKeyset, ad L ockOptimisticWith rsTempIf . R ecord C ount > 0 ThencboAccNo = !AccountNocbo C ustomerID = ! C ustomerIDcboFirst = !FirstName E lseMsgBox "Invalid customer ID/Name/Account NO. Please Try Again", vbInformation E

xit Sub E nd If . C lose E nd With 26Set rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * from tblTransactions Where C ustomerID='" &cbo C ustomerID.Text & "'", cnBank, adOpenKeyset, ad L ockOptimisticWith rsTempIf . R ecord C ount > 0 ThenlvwTransactions. L istItems. C lear C all L oad L istView(rsTemp) E lseMsgBox "No Transactions bearing this customers' first name. Please Try Again",vbInformation E xit Sub E nd If . C

lose E nd With E nd SubPrivate Sub cmd E dit_ C lick()With rsTransactions.MoveFirstWhile Not . E OFIf lvwTransactions.SelectedItem. L istSubItems(9) = ! C ode ThenfrmTransaction.txt C ustomerID.Text = ! C ustomerIDfrmTransaction.txtAccountNo.Text !AccountNofrmTransaction.txtNarration.Text !NarrationfrmTransaction.txt C heckNo.Text = ! C heckNOfrmTransaction.txtDated.Value !DatedfrmTransaction.txtDebit.Text !DebitfrmTransaction.txtMode.Text = !ModefrmTransaction.txt C redit.Text = ! C reditfrmTransaction.txtBalance.Text = !BalancefrmTransaction.txt C ode.Text = ! C ode.Move L ast.MoveNext E

= =

= =

lse.MoveNext E nd If WendfrmTransaction.ShowMsgBox ("Are You Sure") E nd With E nd SubPrivate Sub cmdOk_ C lick()Set rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * from tblTransactions Where Dated B E TW EE N #" &dtFrom.Value & "# AND #" & dtTo.Value & "#", cnBank, adOpenKeyset,ad L ockOptimistic 27With rsTempIf . R ecord C ount > 0 ThenlvwTransactions. L istItems. C lear C all L oad L istView(rsTemp) E lseMsgBox "No Transactions Were carried out between these Dates. Please Try Again",vbInformation E xit Sub

E nd If . C lose E nd With E nd SubPrivate Sub cmdPrint_ C lick()With deBank If .rscmdStatement_Grouping.State = adStateOpen Then.rscmdStatement_Grouping. C lose.cmdStatement_Grouping Val(lvwTransactions.SelectedItem.Text)rptStatement.Show E nd With''Dim strSql As String'''strSql = "S ELEC Ttbl C ustomers.FirstName,tbl C ustomers. L astName,tbl C ustomers.Address,tbl C ustomers.Postal C ode,tbl C ustomers. L ocation,tbl C ustomers.OpeningBalance,tbl C ustomers.

C ustomerID,tblTransactions.AccountNo,tblTransactions.Debit,tblTransa ctions. C redit,tblTransactions.Dated,tblTransactions.Mode,tblTransactions. C heckNo,tblTransactions. C ode fromtbl C ustomers,tblTransactions wheretbl C ustomers. C ustomerID=tblTransactions. C ustomerID AND tblTransactions. C ode=4'"''& lvwTransactions.SelectedItem. L istSubItems(9).Text & "'"''strSql = " S ELEC T tbl C ustomers.AccountNo, tbl C ustomers.Address,"''strSql = strSql & "tbl C ustomers. L astName, tbl C ustomers.FirstName,"''strSql = strSql & "tbl C ustomers. C ustomerID,"''strSql = strSql & "tbl C

ustomers. L ocation, tbl C ustomers.OpeningBalance, "''strSql = strSql & "tbl C ustomers.Postal C ode, tblTransactions. C ode, "''strSql = strSql & "tblTransactions. C heckNo, tblTransactions. C redit, "''strSql = strSql & "tblTransactions.Debit, tblTransactions.Mode "''''strSql = strSql & "From tbl C ustomers, tblTransactions "''strSql = strSql & "Where tbl C ustomers. C ustomerID = tblTransactions. C ustomerID"''''Set rsTemp = New ADODB. R ecordset''rsTemp.Open strSql, cnBank, adOpenKeyset, ad L ockOptimistic''With deBank '''. C ommands("cmdStatement").Parameters = lvwTransactions.SelectedItem.Text'''.cmdStatement_Grouping( ,lvwTransactions.SelectedItem. L istSubItems(9))=''. C ommands("cmdStatement_Grouping").Parameters("tbl C ustomers

C ode") = "1"'' E nd With'With rsTemp 28'If . R ecord C ount > 0 Then'Set rptStatement.DataSource = rptStatement.DataSource = rsTemp'rptStatement.Show' E lse'MsgBox "few"' E nd If ' E nd With E nd SubPrivate Sub cmdPrintAll_ C lick()rptStatement.Show E nd SubPrivate Sub cmdQuit_ C lick()Unload Me E nd SubPrivate Sub DTPicker1_ C lick() E nd SubPrivate Sub cmd R efresh_ C lick()lvwTransactions. R efresh E nd SubPrivate Sub

Nothing'Set

C ommand1_ C lick() E nd Sub'Text1.Text = lvwTransactions.SelectedItem.TextPrivate Sub Form_ L oad() C all connectDatabase C all L oad L istView(rsTransactions)With rs C ustomers.MoveFirstFor X = 1 To . R ecord C ountcbo C ustomerID.AddItem ! C ustomerIDcboFirst.AddItem !FirstNamecboAccNo.AddItem !AccountNo.MoveNextNext X E nd With 29Frame1. E nabled = False E nd SubPrivate Sub lvwTransactions_ C olumn C

lick(ByVal C olumnHeader As _ MS C omctl L ib. C olumnHeader)' Sort according to data in this column.If lvwTransactions.Sorted And _ C olumnHeader.Index - 1 = lvwTransactions.SortKey Then' Already sorted on this column, just invert the sort order.lvwTransactions.SortOrder = 1 - lvwTransactions.SortOrder E lselvwTransactions.SortOrder = lvwAscendinglvwTransactions.SortKey = C olumnHeader.Index - 1 E nd If lvwTransactions.Sorted = True E nd SubPublic Sub L oad L istView(my R s As R ecordset)With my R sWhile Not . E OF'lvwTransactions. L istItems.Add , , ! C

ustomerID & " " & !AccountNo ' & " " &!Narration & " " & !Dated & " " & !Debit & " " & ! C reditSet lstItem = lvwTransactions. L istItems.Add(, , ! C ustomerID)lstItem.SubItems(1) = !AccountNolstItem.SubItems(2) = !NarrationlstItem.SubItems(3) = !DatedlstItem.SubItems(4) = Format(!Debit, "#,###,##00.00")lstItem.SubItems(5) = Format(! C redit, "#,###,##00.00")lstItem.SubItems(6) = !ModelstItem.SubItems(7) = ! C heckNOlstItem.SubItems(8) = !BalancelstItem.SubItems(9) = ! C ode.MoveNextWend E nd With E nd SubPrivate Sub lvwTransactions_Dbl C lick() C all cmd E dit_ C lick E nd SubPrivate Sub Option1_ C lick()Frame1. E nabled = True E nd SubPrivate Sub Option2_ C

lick()Frame1. E nabled = False 30Set rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * from tblTransactions", cnBank, adOpenKeyset,ad L ockOptimisticWith rsTempIf . R ecord C ount > 0 ThenlvwTransactions. L istItems. C lear C all L oad L istView(rsTemp) E lseMsgBox "Database E mpty..", vbInformation E xit Sub E nd If . C lose E nd With E nd SubDim currBalance As C

urrencyPrivate Sub cbo C ustomerNo_ C lick()Set rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * F R OM tbl C ustomers WH ERE C ustomerID='" &cbo C ustomerNo.Text & "'", cnBank, adOpenKeyset, ad L ockOptimisticWith rsTempIf . R ecord C ount > 0 ThentxtAccountNo.Text = !AccountNotxtNarration.SetFocus E lseMsgBox "Invalid C ustomer C ode", vbInformationtxtAccountNo.Text = "" E xit Sub E nd If . C lose E nd WithSet rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * F

R OM tblBalances WH ERE C ustomerID='" &cbo C ustomerNo.Text & "'", cnBank, adOpenKeyset, ad L ockOptimisticWith rsTempIf . R ecord C ount > 0 ThenlblBalance. C aption = !Balance E lse E xit Sub E nd If . C lose E nd With E nd Sub 31Private Sub cbo C ustomerNo_KeyPress(KeyAscii As Integer)If KeyAscii = 13 Then C all cbo C ustomerNo_ C lick E nd SubPrivate Sub cmd

C ancel_ C lick()MsgBox ("Plz pree Quit button") E nd SubPrivate Sub cmdPrint_ C lick()MsgBox ("Sorry ! plz connect the System to printer") E nd SubPrivate Sub cmdQuit_ C lick()MsgBox ("Are you sure ")Unload Me E nd SubPrivate Sub cmdSave_ C lick()If txtTransactionID.Text = "" ThenMsgBox "Please E nter the Transaction ID.", vbInformationtxtTransactionID.SetFocus E xit Sub E nd If If cbo C ustomerNo.Text = "" ThenMsgBox "Please E nter the C ustomer ID", vbInformationcbo C ustomerNo.SetFocus E xit Sub E nd If If txtAccountNo.Text = "" ThenMsgBox "Please E nter the Account No.", vbInformationtxtAccountNo.SetFocus E xit Sub

E nd If If txtNarration.Text = "" ThenMsgBox "Please E nter the Narration.", vbInformationtxtNarration.SetFocus E xit Sub E nd If If txtAmountWithdrawn.Text = "" ThenMsgBox "Please E nter the Amount to Deposit.", vbInformationtxtAmountWithdrawn.SetFocus E xit Sub E nd If 32With rsWithdrawalIf New R ecord = True Then .AddNew!TransactionID = txtTransactionID.Text! C ustomerID = cbo C ustomerNo.Text!AccountNo = txtAccountNo.Text!Narration = txtNarration.Text!AmountWithdrawn = txtAmountWithdrawn.Text!Dated = txtDated.Value.Update E nd WithcurrBalance = ( CC ur(lblBalance. C aption) CC ur(txtAmountWithdrawn.Text))With rsTransactions.AddNew! C ustomerID = cbo C ustomerNo.Text!AccountNo = txtAccountNo.Text!Narration = txtNarration.Text! C

heckNO = "N/A"!Dated = txtDated.Value!Debit = "00"!Mode = "N/A"! C redit = txtAmountWithdrawn.Text!Balance = currBalance.Update E nd WithSet rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * F R OM tblBalances WH ERE C ustomerID='" &cbo C ustomerNo.Text & "'", cnBank, adOpenKeyset, ad L ockOptimisticWith rsTemp!Balance = currBalance.Update. R equery. C lose E nd With'rsBalances.Open "UPDAT E tblBalances S E T Balance ='" & currBalance & "' WH ERE C ustomerID='" & cbo C ustomerNo.Text & "'", cnBank, adOpenKeyset, ad L ockOptimistic E nd SubPrivate Sub cmdWithdraw_ C lick()New

R ecord = True C all clear_Form_ C ontrols(Me) 33 C all GenerateNewTransact C odecbo C ustomerNo.SetFocusMsgBox ("You are successfully Withdrawed,plz check your current balance,Thank You....") E nd SubPrivate Sub Form_ L oad() C all connectDatabaseWith rs C ustomersFor X = 1 To . R ecord C ountcbo C ustomerNo.AddItem ! C ustomerID.MoveNextNext X E nd WithtxtDated.Value = Date E nd SubPublic Sub GenerateNewTransact C ode()Dim lastnumber As L ong, newnumber As

L ong' C heck if there are records in the fileWith rsWithdrawalIf .BOF = True And . E OF = True Thenlastnumber = 1000 E lse.Move L astlastnumber = !TransactionID E nd If 'Generate New Number newnumber = lastnumber + 1txtTransactionID.Text = newnumber E nd With E nd SubPrivate Sub txtAccountNo_ C hange()txtNarration.SetFocus E nd SubPrivate Sub txtAmountwithdrawn_KeyPress(KeyAscii As Integer) C all ValidNumeric(KeyAscii) E nd SubPrivate Sub txtNarration_KeyPress(KeyAscii As Integer)KeyAscii = Asc(U C ase$( C hr$(KeyAscii)))If KeyAscii = 13 Then txtAmountWithdrawn.SetFocus E nd Sub E nd With 34Set rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * F

R OM tblBalances WH ERE C ustomerID='" &cbo C ustomerNo.Text & "'", cnBank, adOpenKeyset, ad L ockOptimisticWith rsTempIf . R ecord C ount > 0 ThenlblBalance. C aption = !Balance E lse E xit Sub E nd If . C lose E nd With E nd SubPrivate Sub cbo C ustomerNo_KeyPress(KeyAscii As Integer)If KeyAscii = 13 Then C all cbo C ustomerNo_ C lick E nd SubPrivate Sub cmd C

ancel_ C lick()MsgBox ("Plz press Quit Button") E nd SubPrivate Sub cmdDeposit_ C lick()New R ecord = True C all clear_Form_ C ontrols(Me) C all GenerateNewTransact C odecbo C ustomerNo.SetFocusMsgBox ("Your Deposit Accepted,plz check Your Total amount,Thank You....") E nd SubPrivate Sub cmdPrint_ C lick()MsgBox ("Sorry!,plz connect the System to printer") E nd SubPrivate Sub cmdQuit_ C lick()Unload Me E nd SubPrivate Sub cmdSave_ C lick()If txtTransactionID.Text = "" ThenMsgBox "Please E nter the Transaction ID.", vbInformationtxtTransactionID.SetFocus E xit Sub E nd If If cbo

C ustomerNo.Text = "" ThenMsgBox "Please E nter the C ustomer ID", vbInformationcbo C ustomerNo.SetFocus E xit Sub 35 E nd If If txtAccountNo.Text = "" ThenMsgBox "Please E nter the Account No.", vbInformationtxtAccountNo.SetFocus E xit Sub E nd If If txtNarration.Text = "" ThenMsgBox "Please E nter the Narration.", vbInformationtxtNarration.SetFocus E xit Sub E nd If If txtAmountDeposited.Text = "" ThenMsgBox "Please E nter the Amount to Deposit.", vbInformationtxtAmountDeposited.SetFocus E xit Sub E nd If If txtMode.Text = "" ThenMsgBox "Please select Transaction Mode.", vbInformationtxtMode.SetFocus E xit Sub E nd If If txt C

heckNo.Text = "" ThenMsgBox "Please E nter the C heck No.", vbInformationtxt C heckNo.SetFocus E xit Sub E nd If With rsDepositIf New R ecord = True Then .AddNew!TransactionID = txtTransactionID.Text! C ustomerID = cbo C ustomerNo.Text!AccountNo = txtAccountNo.Text!Narration = txtNarration.Text!AmountDeposited = txtAmountDeposited.Text!Mode = txtMode.Text! C heckNO = txt C heckNo.Text!Dated = txtDated.Value.Update E nd WithcurrBalance = ( CC ur(lblBalance. C aption) + CC ur(txtAmountDeposited.Text))With rsTransactions 36.AddNew! C ustomerID = cbo C ustomerNo.Text!AccountNo = txtAccountNo.Text!Narration = txtNarration.Text! C

heckNO = txt C heckNo.Text!Dated = txtDated.Value!Debit txtAmountDeposited.Text!Mode = txtMode.Text! C redit = "00"!Balance = currBalance.Update E nd WithSet rsTemp = New ADODB. R ecordsetrsTemp.Open "Select * F R OM tblBalances WH ERE C ustomerID='" &cbo C ustomerNo.Text & "'", cnBank, adOpenKeyset, ad L ockOptimisticWith rsTemp!Balance = currBalance.Update. R equery. C lose E nd With'rsBalances.Open "UPDAT E tblBalances S E T Balance ='" & currBalance & "' WH ERE C ustomerID='" & cbo C ustomerNo.Text & "'", cnBank, adOpenKeyset, ad L ockOptimistic E nd SubPrivate Sub Form_

L oad() C all connectDatabaseWith rs C ustomersFor X = 1 To . R ecord C ountcbo C ustomerNo.AddItem ! C ustomerID.MoveNextNext X E nd WithtxtDated.Value = Date E nd SubPublic Sub GenerateNewTransact C ode()Dim lastnumber As L ong, newnumber As L ong' C heck if there are records in the fileWith rsDepositIf .BOF = True And . E OF = True Thenlastnumber = 1000 E lse.Move L astlastnumber = !TransactionID E nd If 37'Generate New Number newnumber = lastnumber 1txtTransactionID.Text = newnumber E nd With

E nd SubPrivate Sub opt C ash_ C lick()txt C heckNo.Text = "N/A"txt C heckNo. L ocked = TruetxtMode.Text = " C ASH" E nd SubPrivate Sub opt C heque_ C lick()txtMode.Text = " C H E QU E "txt C heckNo.Text = ""txt C heckNo. L ocked = Falsetxt C heckNo.SetFocus E nd SubPrivate Sub optOthers_ C lick()txtOther.Text = ""txtMode.Text = ""txt

C heckNo.Text = "N/A"txt C heckNo. L ocked = TruetxtOther.SetFocus E nd SubPrivate Sub txtAccountNo_ C hange()txtNarration.SetFocus E nd SubPrivate Sub txtAmountDeposited_KeyPress(KeyAscii As Integer) C all ValidNumeric(KeyAscii)If KeyAscii = 13 Then opt C ash.SetFocus E nd SubPrivate Sub txt C heckNo_KeyPress(KeyAscii As Integer)If KeyAscii = 13 Then cmdSave.SetFocus E nd SubPrivate Sub txtMode_ L ostFocus()If txtMode.Text = "" ThenMsgBox "Select the Mode of Transaction", vbInformation E nd If E nd SubPrivate Sub txtNarration_KeyPress(KeyAscii As Integer) 38KeyAscii = Asc(U C ase$( C hr$(KeyAscii)))If KeyAscii = 13 Then txtAmountDeposited.SetFocus E nd SubPrivate Sub txtOther_

L ostFocus()txtMode.Text = txtOther.Text E nd Sub.UpdateMsgBox "Pin Has been Successfull changed!", vbInformationUnload MefrmWel.fraTransaction.Visible = True E lseMsgBox " C onfirm Pin does not march with New Pin", vbInformationtxtOldPin = ""txtNewPin = ""txt C onFNewPin = ""txtOldPin.SetFocus E nd If E nd With E nd SubPrivate Sub cmd E xit_ C lick()Unload MefrmWel.fraTransaction.Visible = True E nd SubPrivate Sub Form_ L oad() C all tblSecret C ode C all OpenDB E nd Sub Transaction Private Sub cmd1000_ C lick()txtWAmtDpt = "1000"WithD = txtWAmtDpt

C all WithDraw E nd SubPrivate Sub cmd2000_ C lick()txtWAmtDpt = "2000"WithD = txtWAmtDpt C all WithDraw E nd SubPrivate Sub cmd3000_ C lick()txtWAmtDpt = "3000" 39WithD = txtWAmtDpt C all WithDraw E nd SubPrivate Sub cmd4000_ C lick()txtWAmtDpt = "4000"WithD = txtWAmtDpt C all WithDraw E nd SubPrivate Sub cmd5000_ C lick()txtWAmtDpt = "5000"WithD = txtWAmtDpt C all WithDraw E nd SubPrivate Sub cmdOthers_ C lick()MsgBox ("ok You can enter your choice")fraWamt.Visible = FalsefraAmt.Visible = FalselblAmt.Visible = TruecmdOthers.Visible = FalsetxtWAmtDpt.Visible = TruefraGet C ash.Visible = True E nd SubPrivate Sub cmdW C

lose_ C lick()Unload MeUnload frmStatementfrmStatement.HidefrmWel.fraTransaction.Visible = True E nd SubPrivate Sub WithDraw()With rsT.AddNew.Fields(0) = txtWDate.Fields(1) = ActVariable.Fields(5) = "Withdrawal".Fields(6) = WithD.Fields(7) = PrevBal.Fields(8) = txtW C rrntBal.Update E nd WithWith rs C .Fields(4) = txtW C rrntBal.UpdateUnload MeMe.Hide E nd With 40Unload frmWithDfrmWithD.HidefrmWaitWithD.Show vbModalMsgBox "The Sum of: " & WithD & " Has been Deducted from your account",vbInformationfrm C ash.cmd C ancel.Visible = Falsefrm C ash.lblDisplay.Visible = False L oad frm C ashfrm C ash.Show vbModal E nd SubPrivate Sub cmdWDraw_ C lick()Dim strMessage As StringDim strWithAmt As StringWith rsT.AddNew.Fields(0) = txtWDate.Fields(1) = ActVariable.Fields(5) =

"Withdrawal".Fields(6) = txtWAmtDpt.Fields(7) = PrevBal.Fields(8) = txtW C rrntBal.Update E nd WithWith rs C .Fields(4) = txtW C rrntBal.UpdateUnload MeMe.Hide E nd WithfrmWaitWithD.Show vbModalUnload MeMsgBox " Your Toatl amount Has been Deducted from your account,plz wait...",vbInformationfrm C ash.cmd C ancel.Visible = Falsefrm C ash.lblDisplay.Visible = False L oad frm C ashfrm C ash.Show vbModal E nd SubPrivate Sub Form_ L oad() C all Master C all Trans C all C renttxtWDate = DateWith rs

C .Find "AccountNumber =" & ActVariable & ""If . E OF Then 41MsgBox "Account does not E xist! Please contact customer services",vbInformation, "A T M Service....." E lsePrevBal = rs C .Fields(4)txtWAcctTyp = rs C .Fields(1)txtWSname = rs C .Fields(2)txtWFname = rs C .Fields(3)txtWPrevBal = PrevBal E nd If E nd With E nd SubPrivate Sub txtWAmtDpt_ C hange()txtW C rrntBal = Val(txtWPrevBal) - Val(txtWAmtDpt) E nd SubPrivate Sub C learWBoxes()txtWDate = ""txtWAcctTyp = ""txtWAcctNum = ""txtWSname = ""txtWFname = ""txtWDName = ""txtWAmtDpt = ""txtWPrevBal = ""txtW C rrntBal = "" E nd Sub

Statements View Private Sub cmdSearch_ C lick()If cmdSearch. C aption = "&View Statement" ThenActVariable = txtStAcctNum.TextUnload Me L oad frmWaitfrmWait.ShowfrmWel.fraTransaction.Visible = False E xit Sub E lseIf cmdSearch. C aption = "&Process" ThenActVariable = txtStAcctNum C all C rentWith rs C .Find "AccountNumber =" & ActVariable & ""If . E OF ThenMsgBox "Account does not E xist! Please contact customer services",vbInformation, "A T M Service....."txtStAcctNum = ""txtStAcctNum.SetFocuscmdSearch. C aption = "&Process" 42 E lseUnload MeMe.Hide L oad frmWithDfrmWithD.Show vbModal E nd If E nd With E

lseActVariable = txtStAcctNum C all C rentWith rs C .Find "AccountNumber =" & ActVariable & ""If . E OF ThenMsgBox "Account does not E xist! Please contact customer services",vbInformation, "A T M Service....."txtStAcctNum = ""txtStAcctNum.SetFocuscmdSearch. C aption = "&Inquire" ElseUnload MeMe.Hidefrm Cash.Image1.Visible = Falsefrm Cash.cmdOk.Visible = False Load frm Cashfrm Cash.Show vbModal End If End With End If Unload MefrmWel.fraTransaction.Visible = TruefrmWel.fraAcctType.Visible = FalsefrmWel.fraSecret Code.Visible = False End Sub 5.2 SYSTEM IMPLEMENTATION AND TESTING 43Implementation is the stage of the project where the theoretical design is turned into aworking system. It can be considered to be the most crucial stage in achieving asuccessful new system gaining the users confidence that the new system will work andwill be effective and accurate. It is primarily concerned with user training anddocumentation. C onversion usually takes place about the same time the user is beingtrained or later. Implementation simply means convening a new system design intooperation, which is the process of converting a new revised system design into anoperational one. 5.2.1.

SYSTEM TESTING Software Testing is the process of executing software in a controlled manner, in order to answer the question - Does the software behave as specified?. Software testing is oftenused in association with the terms verification and validation. Validation is the checkingor testing of items, includes software, for conformance and consistency with anassociated specification. Software testing is just one kind of verification, which also usestechniques such as reviews, analysis, inspections, and walkthroughs. Validation is theprocess of checking that what has been specified is what the user actually wanted.Validation : Are we doing the right job?Verification : Are we doing the job right?Software testing should not be confused with debugging. Debugging is the process of analyzing and localizing bugs when software does not behave as expected. Although theidentification of some bugs will be obvious from playing with the software, a methodicalapproach to software testing is a much more thorough means for identifying bugs.Debugging is therefore an activity which supports testing, but cannot replace testing.Other activities which are often associated with software testing are static analysis anddynamic analysis. Static analysis investigates the source code of software, looking for problems and gathering metrics without actually executing the code. Dynamic analysislooks at the behavior of software while it is executing, to provide information such asexecution traces, timing profiles, and test coverage information.Testing is a set of activity that can be planned in advanced and conductedsystematically. Testing begins at the module level and work towards the integration of entire computers based system. Nothing is complete without testing, as it vital success of the system testing objectives, there are several rules that can serve as testing objectives.They areTesting is a process of executing a program with the intend of finding an error.A goodtest case is one that has high possibility of finding an undiscovered error.A successful testis one that uncovers an undiscovered error.If a testing is conducted successfully according to the objectives as stated above, itwould uncovered errors in the software also testing demonstrate that the software

44function appear to be working according to the specification, that performancerequirement appear to have been met.There are three ways to test program. y For correctness y For implementation efficiency y For computational complexityTest for correctness are supposed to verify that a program does exactly what it wasdesigned to do. This is much more difficult than it may at first appear, especially for largeprograms. TEST PLAN A test plan implies a series of desired course of action to be followed in accomplishingvarious testing methods. The Test Plan acts as a blue print for the action that is to befollowed. The software engineers create a computer program, its documentation andrelated data structures. The software developers is always responsible for testing theindividual units of the programs, ensuring that each performs the function for which itwas designed. There is an independent test group (ITG) which is to remove the inherentproblems associated with letting the builder to test the thing that has been built. Thespecific objectives of testing should be stated in measurable terms. So that the mean timeto failure, the cost to find and fix the defects, remaining defect density or frequency of occurrence and test work-hours per regression test all should be stated within the testplan.The levels of testing include: y Unit testing y Integration Testing y Data validation Testing y Output Testing UNIT TESTING Unit testing focuses verification effort on the smallest unit of software design thesoftware component or module. Using the component level design description as a guide,important control paths are tested to

uncover errors within the boundary of the module.The relative complexity of tests and uncovered scope established for unit testing. The unittesting is white-box oriented, and step can be conducted in parallel for multiplecomponents. The modular interface is tested to ensure that information properly flowsinto and out of the program unit under test. The local data structure is examined to ensurethat data stored temporarily maintains its integrity during all steps in an algorithmsexecution. Boundary conditions are tested to ensure that all statements in a module havebeen executed at least once. Finally, all error handling paths are tested. 45Tests of data flow across a module interface are required before any other test isinitiated. If data do not enter and exit properly, all other tests are moot. Selective testingof execution paths is an essential task during the unit test. Good design dictates that error conditions be anticipated and error handling paths set up to reroute or cleanly terminateprocessing when an error does occur. Boundary testing is the last task of unit testing step.Software often fails at its boundaries.Unit testing was done in Sell-Soft System by treating each module as separate entityand testing each one of them with a wide spectrum of test inputs. Some flaws in theinternal logic of the modules were found and were rectified. INTEGRATION TESTING Integration testing is systematic technique for constructing the program structurewhile at the same time conducting tests to uncover errors associated with interfacing. Theobjective is to take unit tested components and build a program structure that has beendictated by design. The entire program is tested as whole. Correction is difficult becauseisolation of causes is complicated by vast expanse of entire program. Once these errorsare corrected, new ones appear and the process continues in a seemingly endless loop.After unit testing in Sell-Soft System all the modules were integrated to test for anyinconsistencies in the interfaces. Moreover differences in program structures wereremoved and a unique program structure was evolved. VALIDATION TESTING OR SYSTEM TESTING This is the final step in testing. In this the entire system was tested as a whole with allforms, code, modules and class modules. This form of testing is popularly known asBlack Box testing or System testing.Black Box testing method focuses on the functional requirements of the software.That is, Black Box testing enables the software engineer to

derive sets of input conditionsthat will fully exercise all functional requirements for a program.Black Box testing attempts to find errors in the following categories; incorrect or missing functions, interface errors, errors in data structures or external data access,performance errors and initialization errors and termination errors. OUTPUT TESTING OR USER ACCEPTANCE TESTING The system considered is tested for user acceptance; here it should satisfy the firmsneed. The software should keep in touch with perspective system; user at the time of developing and making changes whenever required. This done with respect to thefollowing points Input Screen Designs, Output Screen Designs, Online message to guide the user and the like. 46The above testing is done taking various kinds of test data. Preparation of test data playsa vital role in the system testing. After preparing the test data, the system under study istested using that test data. While testing the system by which test data errors are againuncovered and corrected by using above testing steps and corrections are also noted for future use. 5.3. TRAINING Once the system is successfully developed the next important step is to ensure that theadministrators are well trained to handle the system. This is because the success of asystem invariably depends on how they are operated and used. The implementationdepends upon the right people being at the right place at the right time. Educationinvolves creating the right atmosphere and motivating the user. The administrators arefamiliarized with the run procedures of the system, working through the sequence of activities on an ongoing basis.Implementation is the state in the project where the theoretical design is turned into aworking system. By this, the users get the confidence that the system will work effectively. The system can be implemented only after through testing.The systems personnel check the feasibility of the system. The actual data wereinputted to the system and the working of the system was closely monitored. The master option was selected from the main menu and the actual data were input through

thecorresponding input screens. The data movement was studied and found to be correctqueries option was then selected and this contains various reports. Utilities providevarious data needed for inventory was input and the module was test run. Satisfactoryresults were obtained. R eports related to these processes were also successfullygenerated. Various input screen formats are listed in the appendix.Implementation walkthroughs ensure that the completed system actually solves theoriginal problem. This walkthrough occurs just before the system goes into use, and itshould include careful review of all manuals, training materials and systemdocumentation. Again, users, the analyst and the members of the computer services staff may attend this meeting. 47 APPENDIX SCREEN SHOTSLogin

51 CustomerDeposit Transaction

52 Transaction Report(Deposit&Withdrawal) CONCLUSION Banking System " keeps the day by day tally record as a complete banking. It can keepthe information of Account type, account opening form, Deposit, Withdrawal, andSearching the transaction, Transaction report, Individual account opening form, GroupAccount. The exciting part of this project is; it displays Transaction reports, StatisticalSummary of Account type and Interest Information. BIBLIOGRAPHY BOOKS: 1. C harles Hampfed (2000) Visual Basic University of Toronto 2. Herbert Schildt (2000) Visual Basic 6.0 Tata McGraw Hill 3. John Zukowski (2000) Visual Basic 6.0 BPB Publications 4. Jamie Jaworsky Visual Basic 6.0Techmedia 5. Stefen Denninger Visual Basic 6.0Authors Press

Вам также может понравиться