This action might not be possible to undo. Are you sure you want to continue?
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
The project is developed within latest technology. The benefits in the form of reduced costs or fewer costly errors.So there are minimal constraints involved with this project. Also all the resources are already available. there is no manual cost to spendfor the proposed system. return at the earliest. ECONOMIC FEASIBILITY The developing system must be justified by cost and benefit. Criteria to ensure thateffort is concentrated on project. The cost of the hardware and software.Since the system is developed as part of project work.The following are some of the important financial questions asked during preliminaryinvestigation: The costs conduct a full system investigation. theinvestigation must go on to suggest the type of equipment. which will give best. programs and procedures. required method developingthe system.Through the technology may become obsolete after some period of time. 2. The system has beendeveloped using Java the project is technically feasible for development. BEHAVIORAL FEASIBILITY This includes the following questions: Is there sufficient support for the users? . Having identified an outline system. due to the factthat never version of same software supports older versions.3.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.2. One of thefactors.system requirement in theterms of input. it give an indicationof the system is economically possible for development.3. of running the system once it has been designed. which affect the development of a new system. 2. output.3. the system may still be used. is the cost it would require.
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 includes thefollowing steps: Reviews the current physical system ± its data flows. content and most of the input functions. performance and accuracy levels. determines the format.1 INTRODUCTION Design is the first step into the development phase for any engineered product or system. Prepares output specifications ± that is. 5 SYSTEM DESIGN 3. Prepares input specifications ± format. A good design is the key to effective system. Thedesign phase is a transition from a user oriented document to a document to theprogrammers or database personnel. security and control specifications.As in the case of any systematic approach. It may be defined as a process of applying various techniques and principlesfor the purpose of defining a device.The system design develops the architectural detail required to build a system or product. Prepares edit. Software design sits at the technical kernel of the softwareengineering process and is applied regardless of the development paradigm that is used. file content. All behavioral aspects are considered carefully and conclude that the project isbehaviorally feasible. Design is a creative process. this software too has undergone the bestpossible design phase fine tuning all efficiency. content andfrequency of reports.Will the proposed system cause harm?The project would be beneficial because it satisfies the objectives when developed andinstalled. System design goes through two phases of development: Logical and Physical Design.frequencies etc. . a process or a system in sufficient detail to permit itsphysical realization. LOGICAL DESIGN: The logical flow of a system and define the boundaries of a system. volumes .
courses and timetable. Design physical information flow through the system and a physical design Walk through. input. costs . Prepares a logical design walk through of the information flow. Determine training procedures. Prepare a conversion schedule and target date. Devise a test and implementation plan and specify any new hardware/software.controls and implementation plan. Design the physical system. Reviews benefits. y . Specify input and output media. y Problem understanding. Plan system implementation. PHYSICAL DESIGN: Physical system produces the working systems by define the design specifications thattell the programmers exactly what the candidate system must do. conversion date and system constraints Design/Specification activities: oncept formulation.Specifies the implementation plan. output. costs. It includes the followingsteps. pdate benefits . target dates and system constraints. Design the database and specify backup procedures.
The data entry screen is designed in such a way that all the data manipulates canbe performed. 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. OBJECTIVES Input Design is the process of converting a user-oriented description of the input into acomputer-based system. 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. The goal of designing input is to make data entry easier and to be free fromerrors. . y Feasibility study. In this module two operationsare done. avoiding extra steps and keeping the process simple. 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. controllingthe errors. avoiding delay. The inputis designed in such a way so that it provides security and ease of use with retaining theprivacy. y R equirements engineering. It also provides record viewing facilities.High level requirements proposals. MODULE DESIGNAdmin The Administrator logs in using the admin login. y Architectural design.It is achieved by creating user-friendly screens for the data entry to handle large volumeof data. o Methods for preparing input validations and steps to follow when error occur.
they should : Identify the specific output that is needed to meet the requirements. Data can be entered with the help of screens. In the first step. In output design it is determined how the information is to bedisplaced for immediate need and also the hard copy output.The data is the purpose of any database and must be protected.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. Select methods for presenting information. E fficient and intelligent output design improves thesystem¶s relationship to help user decision-making. 3. Appropriate messages are provided as when needed so that the user will not be ina maize of instant.Designing computer output should proceed in an organized. report. which meets the requirements of the end user and presents theinformation clearly.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. 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 . Create document. This step is called Information Level Design and it is takenindependent of any individual DBMS. or other formats that contain information produced bythe system. It is the most important anddirect source information to the user.The database design is a two level process. When analysis designcomputer output. well thought out manner. user requirements aregathered together and a database is designed which will meet these requirements asclearly as possible. Thus the objective of input design is to create an input layout that iseasy to follow OUTPUT DESIGN A quality output is one.7When the data is entered it will check for its validity.In the second step.
deletions. A row in a tale represents a set of related values. this helps in saving. insertions. E ach relationresembles a table of values or file of records. . C olumns are referred to as attributes. y To simplify the maintenance of the data through updates. A tuple is an ordered set of n elements. each of which is assigneda unique name. arow is called a tuple. DOMAINS & ATTRIBUTES: A table is a relation. Normalization is carried out in this system for thefollowing reasons. y To reduce the need to restructure or reorganize data which new applicationrequirements arise. whichresults in a set of tables with very simple structure. y To structure the data so that there is no repetition of data . The purpose of normalization is tomake tables as simple as possible. RELATIONS. a column header is called an attribute and the table is called arelation. RELATIONAL DATABASE MANAGEMENT SYSTEM (RDBMS): A relational model represents the database as a collection of relations. 8 y To permit simple retrieval of data in response to query and report request. concerned with the characteristics of the specific DBMS that willbe used. The rows in a table are called tuples. A relational database consists of a collection of tables. 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.evel Design. In formal relational model terminology. Data Integrity Data independenceNormalization is the process of decomposing the attributes in an application.
It is also useful to specify a name for the domain to help in interpreting its values. This ensures both R eferential and . RELATIONSHIPS: Table relationships are established using Key. R eferential Integrity enforces that no Primary Key can have null values. 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. A common method of specifying adomain is to specify a data type from which the data values forming the domain aredrawn. A domain D is a set of atomic values. Other key are Super Key and C andidate Keys. R eferential Integrity for each distinct Foreign Key value. that is not decomposable. This ensures both R eferential and E ntity R elationshipIntegrity. The two main keys of prime importanceare Primary Key & Foreign Key.R elationships have been set betweenevery table in the database. there must exist a matchingPrimary Key value in the same domain. E very value in a relation is atomic. R elationships have been set between every table in the database.
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. This can be donor by movingdata into separate tables where the data is of similar type in each table.A relation is said to be in first normal form if only if it satisfies the constraints thatcontain the primary key only. C hoose proper names for the tables and columns. no nonkey attribute should be functionally . This eliminated repeatinggroups of data. 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. These includes: Normalize the data. NORMALIZATION: As the name implies. Second Normal Form :According to Second Normal Form.E ntity R elationship Integrity. C hoose the proper name for the data.Normalization eliminates repeating groups at data and thereby avoids data redundancywhich proves to be a great burden on the computer resources. it denoted putting things in the normal form. For relations where primary key contains multipleattributes. 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. 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.The first step is to put the data into First Normal Form.
Make sure to keep a relation with the original primary key and any attributesthat are fully functionally dependent on it. there should be no transitive dependency on the primary key.dependent on a part of the primarykey. This step helps in taking out data that is onlydependant on apart of the key.In this we decompose and set up relation that includes the nonkey attributes thatfunctionally determines other nonkey attributes.In this we decompose and setup a new relation for each partial key with its dependentattributes.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. Thatis. Third Normal Form :According to Third Normal Form.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 . R elation should not have a nonkey attributefunctionally determined by another nonkey attribute or by a set of nonkey attributes. This step is taken to get rid of anythingthat does not depend entirely on the Primary Key.
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.1 The Text Box The text box is the standard control for accepting input from the user as well as to displaythe output. Handling some of the common controls3. It can handle string (text) and numeric data but not images or pictures.1 SYSTEM SPECIFICATION HARDWARE REQUIREMENTS Processor : X86 C ompatible processor with 1. You can set the properties of the controls in the propertieswindow or at runtime.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.2 SOFTWARE ENVIRONMENT The Control Properties Before writing an event procedure for the control to response to a user's input.0Back end : MS Access 4.2. you haveto set certain properties for the control to determine its appearance and how it will work with the event procedure. String .
It displays an illusion that the button is pressed .2 The Label The label is a very useful control for Visual Basic.Please refer to E xample 3.23. it can also be used to display outputs.3 The Command Button The command button is one of the most important controls as it is used to executecommands.13in a text box can be converted to a numeric data by using the function Val(text). The output is shown in Figure 3. two text boxes are inserted into the form together with a few labels.2.2Private Sub C ommand1_ C lick()µTo add the values in text box 1 and text box 2 Sum = Val(Text1.Text) + Val(Text2.1 In this program.1 for the usage of label. Thefollowing example illustrates a simple program that processes the input from the user.The procedure to calculate and to display the output on thelabel is shown below. C aption = Sum E nd Sub Figure 3. Using the syntax label. it can display text andnumeric data .1 and Figure 3.Text)µTo display the answer on label 1 L abel1. acommand button is also programmed to calculate the sum of the two numbers using theplus operator. Besides. One of its mostimportant properties is Caption . Example 3.2. The program use creates a variable sum to accept the summation of valuesfrom text box 1 and text box 2. as it is not only used to provideinstructions and guides to the users.Caption . You can change its caption in the properties window and also at runtime. 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. 3.
3.4 The Picture Box The Picture Box is one of the controls that is used to handle graphics. which means it can be resized. Themost common event associated with the command button is the C lick event.5 The Image Box The Image Box is another control that handles images and pictures.Picture= L oadPicture (" C :\VB program\Images\grape. You can load apicture at design phase by clicking on the picture item in the properties window andselect the picture from the selected folder.2.gif") 3.2.2.gif intothe picture box.when the user click on it. However.6 The List Box . the statement will load the picture grape.Picture1.Image1. It functions almostidentically to the picture box. This feature is not available inthe Picture Box.Picture= L oadPicture (" C :\VB program\Images\grape. For example. and thesyntax for the procedure isPrivate Sub C ommand1_ C lick ()Statements 14 E nd Sub 3. Similar to the Picture Box. the image in anImage Box is stretchable. You can also load the picture at runtime usingthe LoadPicture method. the statement loads the picture grape. For example. there is one major difference.gif into the imagebox. The image in the picture boxis not resizable. it can also use the L oadPicture method toload the picture.gif")You will learn more about the picture box in future lessons.
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. and the second itemhas a L istIndex 2 and so on 3.2 Private Sub Form_ L oad ( ) L ist1.AddItem ³ L esson2´ L ist1. In order to add items to the list.2.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. you can key inthe following statements Example 3. For example.7 The Combo Box . the second item has a L istIndex 1.AddItem ³ L esson1´ L ist1.AddItem ³ L esson3´ L ist1. if you wish to add a number of items to list box 1. we can use the AddItemmethod .
However.AddItem ³Item4´ E nd Sub 3. For 15example.2. 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. you can key in thefollowing statements Example 3.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. its value is set to 1 and when it is unchecked.Value=1 to mark the C heck Box and C .8 The Check Box The C heck Box control lets the user selects or unselects an option. you can also use the AddItem method .3 Private Sub Form_ L oad ( ) C ombo1. the value is set to 0. When the C heck Boxis checked.AddItem ³Item2´ C ombo1. if you wish to add a number of items to C ombo box 1.AddItem ³Item3´ C ombo1. You caninclude the statements C heck1. In order to add items to the list.AddItem ³Item1´ C ombo1.
In fact.Shape = 1 E nd SubPrivate Sub Option3_ C lick()Shape1.4.5 which will make it appear as a rectangle. 3. You will learnabout the conditional statement If«.3.2. In the following example.Shape = 2 E nd SubPrivate Sub Option4_ . an oval shape.the other Option Boxes will be unselected. For example. When an option box is selected. a square. different shapes will appear. When the user clicks on differentoption boxes.heck1. The values of the shape control are 0. 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. Vb R ed and vbBlue arecolor constants and Back C olor is the background color property of the form. Example 3. its value is set to ³True´ and when it isunselected. as well as use them to initiate certain actions.4 Private Sub Option1_ C lick ( )Shape1. However. its value is set to ³False´. and2. E lesif in later lesson. a roundedrectangle and a rounded square respectively.Value=0 tounmark the C heck Box. two or more Option Boxes must work together because as one of the Option Boxes is selected.Shape = 0 E nd SubPrivate Sub Option2_ C lick()Shape1. only one Option Box can be selectedat one time. the shape control isplaced in the form together with six Option Boxes.9 The Option Box The Option Box control also lets the user selects one of the choices. 1.Then«.
5You can coordinate the Drive L ist Box. When youplace this control into the form and run the program.Shape = 4 16 E nd SubPrivate Sub Option6_ C lick()Shape1.2. you will be able toselect different directories from a selected drive in your computer as shown in Figure 3.Shape = 5 E nd Sub 3.2.Shape = 3 E nd SubPrivate Sub Option5_ C lick()Shape1. you will be able to shown thelist of files in a selected directory as shown in Figure 3.10 The Drive List Box The Drive L istBox is for displaying a list of drives available in your computer.4 3.3 3. the Directory L ist Box and the File L .12 The File List Box The File L ist Box is for displaying the list of files in a selected directory or folder. When you place this control into the form and run the program.C lick()Shape1.2. Whenyou place this control into the form and run the program. you will be able to select differentdrives from your computer as shown in Figure 3.11 The Directory List Box The Directory L ist Box is for displaying the list of directories or folders in a selecteddrive.
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. The procedure will be discussed in later lessons.ist Box tosearch for the files you want.Index C ase 1:frm C .
Show C ase 10:frmTransactions.DataSource = NothingSet rpt C ustomers.DataSource = rsWithdrawalrptWithdrawals.Key C ase "acc_type"frmAccTypes.Show C ase "withdraw"Set rptWithdrawals.DataSource = NothingSet rptDeposits.Show C ase 7:frmWithdrawal.Show E nd Select E nd SubPrivate Sub Toolbar1_ButtonMenu C lick(ByVal ButtonMenu AsMS C omctl L ib.ustomers.Show 18 C ase "customer"Set rpt C ustomers.ButtonMenu)Select C ase ButtonMenu.DataSource = rsDepositrptDeposits.DataSource = rs C ustomersrpt C ustomers.Show C ase 4:frmDeposits.DataSource = NothingSet rptWithdrawals.Show C ase "deposit"Set rptDeposits.Show .
E nabled = Truecmd C ancel. E nabled = Truecmd E dit. 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.SetFocus . E nabled = FalsecmdSave. L ocked = TruetxtAccountName. E nabled = FalsecmdQuit.E nd Select E nd SubPrivate Sub cmdAdd_ C lick()New R ecord = TruecmdAdd.
C ancelUpdate E nd If C all DisplayaccTypes(rsAccTypes) E nd WithMsgBox ("Are You Sure") C . E nabled = Falsecmd E dit. E nabled = TrueWith rsAccTypesIf New R ecord = True Then.E nd SubPrivate Sub cmd C ancel_ C lick()cmdAdd. E nabled = TruecmdQuit. C ancelUpdate 19New R ecord = False E lse. E nabled = TruecmdSave. E nabled = Falsecmd C ancel.
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 nabled = Falsecmd C ancel. E nabled = TruecmdSave. E nabled = Falsecmd E dit. C aption = C Str(" R ecord :" & rsAccTypes.E nd SubPrivate Sub Form_ L oad() C all connectDatabasecmdAdd. R ecord C .AbsolutePosition & " of " &rsAccTypes. E nabled = FalsecmdQuit. E nabled = True C all L ock_Form_ C ontrols(Me) C all DisplayaccTypes(rsAccTypes) 21lblStatus.
Text = !AccountNametxtDescription.BOF = True And . R ecordsetWith rs.ount) C all DisplayaccTypes(rsAccTypes) E nd SubPublic Sub DisplayaccTypes(my R s As R ecordset)With my R sIf .Text = !Interest R atetxtMinBalance.Text = !Description'txtInterest R ate.Active C onnection = con. C .Text = !MinBalance E nd With E nd SubDim cleardisplay As BooleanDim strMessage As StringPrivate Sub cmdAccept_ C lick()Set rs = New ADODB. C ursor L ocation = adUse C lient. E OF = True Then E xit SubtxtAccountID.Text = !AccountIDtxtAccountName.
Visible = True E nd SubPrivate Sub cmd . E OF ThenMsgBox "Pin Number is incorrect or does not E xist".Visible = FalsefraTransaction.Visible = TruefraSecret C ode. "ATM-Pin E rror"txtDisplay = "": txtDisplay.Visible = False E nd If E nd WithtxtDisplay = "" E nd SubPrivate Sub cmdBack_ C lick()fraTransaction. vb C ritical.SetFocus E lsefraTransaction.Visible = FalsefraSecret C ode.Open "tblScode" E nd WithWith rs.ursorType = adOpenKeyset. L ockType = ad L ockOptimistic.Find "Scode ='" & txtDisplay & "'"If .Visible = True E nd SubPrivate Sub cmd C ancel_ C lick() 22fraAcctType.
rscmdStatement.4. C lose E nd WithUnload Me . deBankUba.Data Source=" +App.Show vbModal.Text = "": txtDisplay.C lear_ C lick()txtDisplay. vbInformation.conBankUba.. Do have an nice day. ad L ockOptimisticrptStatement.".Open "Select * From DailyTrans where [AccountNumber]='" &txtAcctNo & "'".".mdb.conBankUba.SetFocus E nd SubPrivate Sub cmd E xit_ C lick()fraSecret C ode.Path + "\BankUba.O LE DB..conBankUba.Jet. "A TM-S ER VI CE " E nd E nd SubPrivate Sub cmdOk_ C lick()With deBankUba. adOpenDynamic.Visible = FalseMsgBox "Thank you for Banking with us.Open "P R OVID ER =Microsoft.0.
Visible = False E nd SubPrivate Sub cmdNewAcct_ C lick()frmNewAcct.cmdSearch.Visible = True E nd SubPrivate Sub cmdTransfer_ C lick()strMessage = "This Service is Un-Avialable at the moment. C aption = " E nter your Account Number"frmStatement.Visible = True . vbInformation. "A T M S ER VI CE "fraTransaction.Visible = FalsefraAcctType.Show vbModal E nd SubPrivate Sub cmdPin_ C lick()fraTransaction.Visible = FalsefrmStatement.fraTransaction. C aption = "&Inquire"frmWel.Visible = TruefrmStatement.E nd SubPrivate Sub cmdInquery_ C lick()fraAcctType. Please bear with us"MsgBox strMessage.Visible = Falsefrm C hangePin.Show vbModal E nd SubPrivate Sub cmdProceed_ C lick()fraAcctType.Show vbModal E nd Sub 23Private Sub cmdStatement_ C lick()fraTransaction.
C aption = " E nter your Account Number"frmStatement.Text + digits(Index).Visible = True E nd SubPrivate Sub mnuDeposit_ C lick()frmDeposit.PlayShockwaveFlash1.E nd SubPrivate Sub cmdWithD_ C lick()fraAcctType.Text = txtDisplay.swf"ShockwaveFlash1.cmdSearch.fraTransaction.Path & "\" & "BANKING. L oop = True E nd SubPrivate Sub Form_ L oad() C all OpenDBfraSecret C ode.Text = ""cleardisplay = False E nd If txtDisplay.Visible = False E nd SubPrivate Sub digits_ C lick(Index As Integer)If cleardisplay ThentxtDisplay.Show vbModal E .Movie = App. C aption E nd SubPrivate Sub Form_Activate()'ShockwaveFlash1. C aption = "&Process"frmWel.Visible = TruefrmStatement.
SetFocus E lseMsgBox "Invalid C ustomer C ode". vbInformationtxtAccountNo.Text = "" E xit Sub E nd If . cnBank.Text = !AccountNotxtNarration. C loseDim lstItem As L . ad L ockOptimisticWith rsTemp 24If .Open "Select * F R OM tbl C ustomers WH ERE C ustomerID='" &cbo C ustomerNo.nd SubDim currBalance As C urrencyPrivate Sub cbo C ustomerNo_ C lick()Set rsTemp = New ADODB. R ecord C ount > 0 ThentxtAccountNo. R ecordsetrsTemp. adOpenKeyset.Text & "'".
adOpenKeyset. ad L ockOptimisticWith rsTempIf . cnBank.Open "Select * from tbl C ustomers Where AccountNo='" & cboAccNo. ad L ockOptimisticWith rsTempIf . adOpenKeyset. C lose E nd WithSet rsTemp = New ADODB. R ecordsetrsTemp. R ecord C ount > 0 ThencboAccNo = !AccountNocbo C ustomerID = ! C ustomerIDcboFirst = !FirstName E lseMsgBox "Invalid customer ID/Name/Account NO.istItemPrivate Sub cboAccNo_ C lick()Set rsTemp = New ADODB. vbInformation E xit Sub E nd If .Text &"'".Text &"'". Please Try Again".Open "Select * from tblTransactions Where AccountNo='" & cboAccNo. cnBank. . R ecord C ount > 0 ThenlvwTransactions. R ecordsetrsTemp.
L istItems. C lose E nd With E nd Sub 25Private Sub cbo C ustomerID_ C lick()Set rsTemp = New ADODB. adOpenKeyset. ad . vbInformation E xit Sub E nd If .Text& "'". 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".Open "Select * from tbl C ustomers Where customerID='" & cbo C ustomerID. cnBank. R ecordsetrsTemp.
Text & "'". C lose E nd WithSet rsTemp = New ADODB. adOpenKeyset.Open "Select * from tblTransactions Where customerID='" &cbo C ustomerID. R ecord C ount > 0 ThenlvwTransactions. ad L ockOptimisticWith rsTempIf . L istItems.L ockOptimisticWith rsTempIf . R ecordsetrsTemp. vbInformation E xit Sub E nd If . cnBank. R ecord C ount > 0 ThencboAccNo = !AccountNocbo C ustomerID = ! C ustomerIDcboFirst = !FirstName E lseMsgBox "Invalid customer ID/Name/Account NO. Please Try Again". C lear C all .
R ecord C ount > 0 ThencboAccNo = !AccountNocbo C ustomerID = ! C ustomerIDcboFirst = !FirstName E lseMsgBox "Invalid customer ID/Name/Account NO. R ecordsetrsTemp. Please Try Again".L oad L istView(rsTemp) E lseMsgBox "No Transactions bearing this customer ID.Open "Select * from tbl C ustomers Where FirstName='" & cboFirst.Text & "'". adOpenKeyset. Please Try Again". C lose E nd With E nd SubPrivate Sub cboFirst_ C lick()Set rsTemp = New ADODB. ad L ockOptimisticWith rsTempIf . vbInformation E .cnBank. vbInformation E xit Sub E nd If .
C lear C all L oad L istView(rsTemp) E lseMsgBox "No Transactions bearing this customers' first name. ad L ockOptimisticWith rsTempIf .vbInformation E xit Sub E nd If . Please Try Again".Open "Select * from tblTransactions Where C ustomerID='" &cbo C ustomerID. adOpenKeyset. C lose E nd With 26Set rsTemp = New ADODB. L istItems. cnBank.Text & "'". R ecord C ount > 0 ThenlvwTransactions.xit Sub E nd If . R ecordsetrsTemp. C .
txtDated.Text = ! C heckNOfrmTransaction.txtBalance.txt C redit.Text = !BalancefrmTransaction.Text !NarrationfrmTransaction.Text !DebitfrmTransaction.Text = ! C ustomerIDfrmTransaction.MoveFirstWhile Not . L istSubItems(9) = ! C ode ThenfrmTransaction.txtMode.txtNarration.lose E nd With E nd SubPrivate Sub cmd E dit_ C lick()With rsTransactions. E OFIf lvwTransactions.Text = ! C reditfrmTransaction.txtAccountNo.txtDebit.Text = ! C ode.MoveNext E = = = = .Text !AccountNofrmTransaction.txt C heckNo.txt C ustomerID.Value !DatedfrmTransaction.Move L ast.Text = !ModefrmTransaction.txt C ode.SelectedItem.
ad L ockOptimistic 27With rsTempIf .lse.ShowMsgBox ("Are You Sure") E nd With E nd SubPrivate Sub cmdOk_ C lick()Set rsTemp = New ADODB. adOpenKeyset. C lear C all L oad L istView(rsTemp) E lseMsgBox "No Transactions Were carried out between these Dates. R ecord C ount > 0 ThenlvwTransactions.Value & "# AND #" & dtTo. L istItems. R ecordsetrsTemp.vbInformation E xit Sub .MoveNext E nd If WendfrmTransaction. Please Try Again".Open "Select * from tblTransactions Where Dated B E TW EE N #" &dtFrom. cnBank.Value & "#".
rscmdStatement_Grouping. L astName.tbl C ustomers. .tbl C ustomers.State = adStateOpen Then. C lose. L ocation.OpeningBalance.rscmdStatement_Grouping.Text)rptStatement.tbl C ustomers.E nd If .cmdStatement_Grouping Val(lvwTransactions.Show E nd With''Dim strSql As String'''strSql = "S ELEC Ttbl C ustomers.SelectedItem. C lose E nd With E nd SubPrivate Sub cmdPrint_ C lick()With deBank If .tbl C ustomers.tbl C ustomers.tbl C ustomers.Postal C ode.FirstName.Address.
C ustomerID AND tblTransactions.FirstName. C ode fromtbl C ustomers.tblTransactions.Address. L astName. C redit.tblTransactions.tblTransa ctions. C ustomerID=tblTransactions.AccountNo. tbl C ustomers. C heckNo. C ustomerID.AccountNo."''strSql = strSql & "tbl C ustomers.tblTransactions wheretbl C ustomers.Mode."''strSql = strSql & "tbl C ustomers.C ustomerID. L istSubItems(9)."''strSql = strSql & "tbl C .tblTransactions.Debit.tblTransactions. C ode=4'"''& lvwTransactions.tblTransactions.SelectedItem. tbl C ustomers.Dated.Text & "'"''strSql = " S ELEC T tbl C ustomers.tblTransactions.
Mode "''''strSql = strSql & "From tbl C ustomers. C ode. C ustomerID"''''Set rsTemp = New ADODB. C redit. tblTransactions "''strSql = strSql & "Where tbl C ustomers. ad L ockOptimistic''With deBank '''.Text'''.Parameters = lvwTransactions.ustomers. C heckNo. C ustomerID = tblTransactions.Postal C ode. tbl C ustomers.OpeningBalance. C ommands("cmdStatement_Grouping"). "''strSql = strSql & "tbl C ustomers. L ocation.SelectedItem. adOpenKeyset. cnBank.lvwTransactions. tblTransactions.Open strSql. R ecordset''rsTemp.Debit. C ommands("cmdStatement"). tblTransactions.Parameters("tbl C ustomers . tblTransactions. L istSubItems(9))=''. "''strSql = strSql & "tblTransactions. "''strSql = strSql & "tblTransactions.SelectedItem.cmdStatement_Grouping( .
C ode") = "1"'' E nd With'With rsTemp 28'If .DataSource = rptStatement. R efresh E nd SubPrivate Sub Nothing'Set .DataSource = rsTemp'rptStatement. R ecord C ount > 0 Then'Set 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.Show' E lse'MsgBox "few"' E nd If ' E nd With E nd SubPrivate Sub cmdPrintAll_ C lick()rptStatement.
Text = lvwTransactions.AddItem !FirstNamecboAccNo.C ommand1_ C lick() E nd Sub'Text1. R ecord C ountcbo C ustomerID.MoveNextNext X E nd With 29Frame1.AddItem ! C ustomerIDcboFirst.AddItem !AccountNo.SelectedItem.TextPrivate Sub Form_ L oad() C all connectDatabase C all L oad L istView(rsTransactions)With rs C ustomers.MoveFirstFor X = 1 To . E nabled = False E nd SubPrivate Sub lvwTransactions_ C olumn C .
SortKey = C olumnHeader.lvwTransactions.SortOrder = 1 . E OF'lvwTransactions.Index . C olumnHeader)' Sort according to data in this column.Sorted = True E nd SubPublic Sub L oad L istView(my R s As R ecordset)With my R sWhile Not . .lick(ByVal C olumnHeader As _ MS C omctl L ib. ! C .SortOrder E lselvwTransactions.Add . just invert the sort order.Sorted And _ C olumnHeader.lvwTransactions.SortOrder = lvwAscendinglvwTransactions. L istItems.Index .If lvwTransactions.1 = lvwTransactions.SortKey Then' Already sorted on this column.1 E nd If lvwTransactions.
E nabled = True E nd SubPrivate Sub Option2_ C .SubItems(3) = !DatedlstItem.ustomerID & " " & !AccountNo ' & " " &!Narration & " " & !Dated & " " & !Debit & " " & ! C reditSet lstItem = lvwTransactions.##00.SubItems(6) = !ModelstItem. ! C ustomerID)lstItem.SubItems(9) = ! C ode.SubItems(7) = ! C heckNOlstItem. "#.SubItems(5) = Format(! C redit.SubItems(2) = !NarrationlstItem. . "#.Add(.00")lstItem.###.##00.SubItems(1) = !AccountNolstItem.###. L istItems.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.00")lstItem.SubItems(8) = !BalancelstItem.SubItems(4) = Format(!Debit.
. R ecordsetrsTemp.". C lose E nd With E nd SubDim currBalance As C .ad L ockOptimisticWith rsTempIf . L istItems. E nabled = False 30Set rsTemp = New ADODB. R ecord C ount > 0 ThenlvwTransactions. C lear C all L oad L istView(rsTemp) E lseMsgBox "Database E mpty. adOpenKeyset. vbInformation E xit Sub E nd If .lick()Frame1. cnBank.Open "Select * from tblTransactions".
Text = "" E xit Sub E nd If .Text = !AccountNotxtNarration. R ecordsetrsTemp.Text & "'". ad L ockOptimisticWith rsTempIf . vbInformationtxtAccountNo. cnBank. R ecord C ount > 0 ThentxtAccountNo.Open "Select * F R OM tbl C ustomers WH ERE C ustomerID='" &cbo C ustomerNo. adOpenKeyset.SetFocus E lseMsgBox "Invalid C ustomer C ode".urrencyPrivate Sub cbo C ustomerNo_ C lick()Set rsTemp = New ADODB. C lose E nd WithSet rsTemp = New ADODB.Open "Select * F . R ecordsetrsTemp.
ad L ockOptimisticWith rsTempIf . R ecord C ount > 0 ThenlblBalance. C aption = !Balance E lse E xit Sub E nd If .R OM tblBalances WH ERE C ustomerID='" &cbo C ustomerNo.Text & "'". adOpenKeyset. cnBank. 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 .
Text = "" ThenMsgBox "Please E nter the Transaction ID.". vbInformationtxtAccountNo.Text = "" ThenMsgBox "Please E nter the Account No.SetFocus E xit Sub .". vbInformationtxtTransactionID.SetFocus E xit Sub E nd If If txtAccountNo. vbInformationcbo C ustomerNo.Text = "" ThenMsgBox "Please E nter the C ustomer ID".SetFocus E xit Sub E nd If If cbo C ustomerNo.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!Narration = txtNarration.Text = "" ThenMsgBox "Please E nter the Narration.AddNew! C ustomerID = cbo C ustomerNo. C aption) CC ur(txtAmountWithdrawn.SetFocus E xit Sub E nd If 32With rsWithdrawalIf New R ecord = True Then .Value.Text! C ustomerID = cbo C ustomerNo.Text! C . vbInformationtxtAmountWithdrawn.Text))With rsTransactions.AddNew!TransactionID = txtTransactionID.Text = "" ThenMsgBox "Please E nter the Amount to Deposit.".SetFocus E xit Sub E nd If If txtAmountWithdrawn.".Text!Dated = txtDated.E nd If If txtNarration.Text!AccountNo = txtAccountNo.Text!AccountNo = txtAccountNo.Text!Narration = txtNarration. vbInformationtxtNarration.Update E nd WithcurrBalance = ( CC ur(lblBalance.Text!AmountWithdrawn = txtAmountWithdrawn.
C lose E nd With'rsBalances. cnBank. R ecordsetrsTemp.Text & "'".Text!Balance = currBalance. cnBank.Open "UPDAT E tblBalances S E T Balance ='" & currBalance & "' WH ERE C ustomerID='" & cbo C ustomerNo.Value!Debit = "00"!Mode = "N/A"! C redit = txtAmountWithdrawn.Open "Select * F R OM tblBalances WH ERE C ustomerID='" &cbo C ustomerNo. ad L ockOptimistic E nd SubPrivate Sub cmdWithdraw_ C lick()New .Text & "'". adOpenKeyset.heckNO = "N/A"!Dated = txtDated.Update. adOpenKeyset.Update E nd WithSet rsTemp = New ADODB. R equery. ad L ockOptimisticWith rsTemp!Balance = currBalance.
Value = Date E nd SubPublic Sub GenerateNewTransact C ode()Dim lastnumber As L ong..R ecord = True C all clear_Form_ C ontrols(Me) 33 C all GenerateNewTransact C odecbo C ustomerNo.SetFocusMsgBox ("You are successfully Withdrawed.AddItem ! C ustomerID.") E nd SubPrivate Sub Form_ L oad() C all connectDatabaseWith rs C ustomersFor X = 1 To .plz check your current balance...MoveNextNext X E nd WithtxtDated.Thank You. R ecord C ountcbo C ustomerNo. newnumber As .
R ecordsetrsTemp.BOF = True And .L ong' C heck if there are records in the fileWith rsWithdrawalIf . 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.Open "Select * F .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.
ad L ockOptimisticWith rsTempIf . adOpenKeyset. cnBank. 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 .Text & "'".R OM tblBalances WH ERE C ustomerID='" &cbo C ustomerNo. R ecord C ount > 0 ThenlblBalance.
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.". vbInformationtxtTransactionID.plz connect the System to printer") E nd SubPrivate Sub cmdQuit_ C lick()Unload Me E nd SubPrivate Sub cmdSave_ C lick()If txtTransactionID..SetFocus E xit Sub E nd If If cbo .") E nd SubPrivate Sub cmdPrint_ C lick()MsgBox ("Sorry!.Thank You.Text = "" ThenMsgBox "Please E nter the Transaction ID..
vbInformationcbo C ustomerNo.SetFocus E xit Sub E nd If If txtMode.".C ustomerNo. vbInformationtxtMode.".SetFocus E xit Sub E nd If If txtNarration.SetFocus E xit Sub 35 E nd If If txtAccountNo.Text = "" ThenMsgBox "Please E nter the Narration.Text = "" ThenMsgBox "Please select Transaction Mode.". vbInformationtxtNarration. vbInformationtxtAmountDeposited.SetFocus E xit Sub E nd If If txt C .". vbInformationtxtAccountNo.Text = "" ThenMsgBox "Please E nter the Account No.Text = "" ThenMsgBox "Please E nter the Amount to Deposit.SetFocus E xit Sub E nd If If txtAmountDeposited.Text = "" ThenMsgBox "Please E nter the C ustomer ID".
Value.Text! C ustomerID = cbo C ustomerNo.Update E nd WithcurrBalance = ( CC ur(lblBalance.Text!Narration = txtNarration.heckNo.Text!Narration = txtNarration.AddNew!TransactionID = txtTransactionID. C aption) + CC ur(txtAmountDeposited.Text!AccountNo = txtAccountNo.Text! C heckNO = txt C heckNo.Text!AccountNo = txtAccountNo.Text! C .AddNew! C ustomerID = cbo C ustomerNo.Text!AmountDeposited = txtAmountDeposited.Text = "" ThenMsgBox "Please E nter the C heck No.Text))With rsTransactions 36.".SetFocus E xit Sub E nd If With rsDepositIf New R ecord = True Then .Text!Dated = txtDated. vbInformationtxt C heckNo.Text!Mode = txtMode.
Text!Mode = txtMode.heckNO = txt C heckNo.Update E nd WithSet rsTemp = New ADODB. R ecordsetrsTemp.Text & "'". adOpenKeyset.Open "UPDAT E tblBalances S E T Balance ='" & currBalance & "' WH ERE C ustomerID='" & cbo C ustomerNo. C lose E nd With'rsBalances.Text! C redit = "00"!Balance = currBalance.Open "Select * F R OM tblBalances WH ERE C ustomerID='" &cbo C ustomerNo.Update. ad L ockOptimistic E nd SubPrivate Sub Form_ = . cnBank. ad L ockOptimisticWith rsTemp!Balance = currBalance.Text!Dated = txtDated. adOpenKeyset. R equery.Value!Debit txtAmountDeposited.Text & "'". cnBank.
newnumber As L ong' C heck if there are records in the fileWith rsDepositIf .Move L astlastnumber = !TransactionID E nd If 37'Generate New Number newnumber = lastnumber 1txtTransactionID.BOF = True And .AddItem ! C ustomerID. E OF = True Thenlastnumber = 1000 E lse.MoveNextNext X E nd WithtxtDated.Text = newnumber E nd With + . R ecord C ountcbo C ustomerNo.Value = Date E nd SubPublic Sub GenerateNewTransact C ode()Dim lastnumber As L ong.L oad() C all connectDatabaseWith rs C ustomersFor X = 1 To .
Text = " C ASH" E nd SubPrivate Sub opt C heque_ C lick()txtMode.E nd SubPrivate Sub opt C ash_ C lick()txt C heckNo.Text = ""txt .Text = "N/A"txt C heckNo.SetFocus E nd SubPrivate Sub optOthers_ C lick()txtOther. L ocked = Falsetxt C heckNo.Text = ""txtMode.Text = " C H E QU E "txt C heckNo.Text = ""txt C heckNo. L ocked = TruetxtMode.
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 txtMode_ L ostFocus()If txtMode.C heckNo.SetFocus E nd SubPrivate Sub txt C heckNo_KeyPress(KeyAscii As Integer)If KeyAscii = 13 Then cmdSave.SetFocus E nd SubPrivate Sub txtOther_ .Text = "N/A"txt C heckNo.Text = "" ThenMsgBox "Select the Mode of Transaction".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 txtAccountNo_ C hange()txtNarration. L ocked = TruetxtOther.
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 . vbInformationtxtOldPin = ""txtNewPin = ""txt C onFNewPin = ""txtOldPin.Text = txtOther.UpdateMsgBox "Pin Has been Successfull changed!".fraTransaction.L ostFocus()txtMode.Text E nd Sub.SetFocus E nd If E nd With E nd SubPrivate Sub cmd E xit_ C lick()Unload MefrmWel. vbInformationUnload MefrmWel.Visible = True E lseMsgBox " C onfirm Pin does not march with New Pin".fraTransaction.
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 = True E nd SubPrivate Sub cmdW C .Visible = FalselblAmt.Visible = TruefraGet C ash.Visible = FalsetxtWAmtDpt.Visible = FalsefraAmt.Visible = TruecmdOthers.
HidefrmWaitWithD.AddNew.Hide E nd With 40Unload frmWithDfrmWithD.Show vbModal E nd SubPrivate Sub cmdWDraw_ C lick()Dim strMessage As StringDim strWithAmt As StringWith rsT.cmd C ancel.HidefrmWel.lblDisplay.Update E nd WithWith rs C .Fields(1) = ActVariable.Visible = False L oad frm C ashfrm C ash.Visible = Falsefrm C ash.Fields(0) = txtWDate.UpdateUnload MeMe.AddNew.Fields(7) = PrevBal.fraTransaction.Fields(0) = txtWDate.Fields(5) = "Withdrawal".Fields(4) = txtW C rrntBal.Visible = True E nd SubPrivate Sub WithDraw()With rsT.Fields(1) = ActVariable.vbInformationfrm C ash.Fields(6) = WithD.Fields(5) = .lose_ C lick()Unload MeUnload frmStatementfrmStatement.Fields(8) = txtW C rrntBal.Show vbModalMsgBox "The Sum of: " & WithD & " Has been Deducted from your account".
".Fields(4) = txtW C rrntBal.plz wait.."Withdrawal".cmd C ancel.vbInformationfrm C ash.lblDisplay.Update E nd WithWith rs C .Visible = Falsefrm C ash.UpdateUnload MeMe.Show vbModalUnload MeMsgBox " Your Toatl amount Has been Deducted from your account.Fields(6) = txtWAmtDpt..Hide E nd WithfrmWaitWithD.Visible = False L oad frm C ashfrm C ash.Fields(8) = txtW C rrntBal.Show vbModal E nd SubPrivate Sub Form_ L oad() C all Master C all Trans C all C renttxtWDate = DateWith rs .Fields(7) = PrevBal.
E OF Then 41MsgBox "Account does not E xist! Please contact customer services".Val(txtWAmtDpt) E nd SubPrivate Sub C learWBoxes()txtWDate = ""txtWAcctTyp = ""txtWAcctNum = ""txtWSname = ""txtWFname = ""txtWDName = ""txtWAmtDpt = ""txtWPrevBal = ""txtW C rrntBal = "" E nd Sub .vbInformation....Find "AccountNumber =" & ActVariable & ""If .Fields(4)txtWAcctTyp = 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) .Fields(1)txtWSname = rs C ." E lsePrevBal = rs C . "A T M Service.C .
.vbInformation. C aption = "&View Statement" ThenActVariable = txtStAcctNum."txtStAcctNum = ""txtStAcctNum.Statements View Private Sub cmdSearch_ C lick()If cmdSearch.fraTransaction.TextUnload Me L oad frmWaitfrmWait.Visible = False E xit Sub E lseIf cmdSearch..Find "AccountNumber =" & ActVariable & ""If .Show vbModal E nd If E nd With E . C aption = "&Process" 42 E lseUnload MeMe. C aption = "&Process" ThenActVariable = txtStAcctNum C all C rentWith rs C ..Hide L oad frmWithDfrmWithD.. E OF ThenMsgBox "Account does not E xist! Please contact customer services".ShowfrmWel.SetFocuscmdSearch. "A T M Service.
It is primarily concerned with user training anddocumentation. . 5.Visible = False Load frm Cashfrm Cash.1. which is the process of converting a new revised system design into anoperational one..fraSecret Code. C aption = "&Inquire" ElseUnload MeMe.2. "A T M Service.2 SYSTEM IMPLEMENTATION AND TESTING 43Implementation is the stage of the project where the theoretical design is turned into aworking system..lseActVariable = txtStAcctNum C all C rentWith rs C .Find "AccountNumber =" & ActVariable & ""If .SetFocuscmdSearch.Visible = False End Sub 5.Visible = FalsefrmWel. 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..fraTransaction.Show vbModal End If End With End If Unload MefrmWel.fraAcctType.Visible = Falsefrm Cash.vbInformation.. C onversion usually takes place about the same time the user is beingtrained or later. Implementation simply means convening a new system design intooperation.Hidefrm Cash.Visible = TruefrmWel.cmdOk.Image1. E OF ThenMsgBox "Account does not E xist! Please contact customer services"."txtStAcctNum = ""txtStAcctNum.
A goodtest case is one that has high possibility of finding an undiscovered error. Although theidentification of some bugs will be obvious from playing with the software.If a testing is conducted successfully according to the objectives as stated above. Testing begins at the module level and work towards the integration of entire computers based system.A successful testis one that uncovers an undiscovered error. Software testing is oftenused in association with the terms verification and validation. as it vital success of the system testing objectives. Debugging is the process of analyzing and localizing bugs when software does not behave as expected. for conformance and consistency with anassociated specification. analysis. itwould uncovered errors in the software also testing demonstrate that the software . timing profiles.Does the software behave as specified?. but cannot replace testing.SYSTEM TESTING Software Testing is the process of executing software in a controlled manner. which also usestechniques such as reviews. and test coverage information. Nothing is complete without testing. to provide information such asexecution traces. a methodicalapproach to software testing is a much more thorough means for identifying bugs.Testing is a set of activity that can be planned in advanced and conductedsystematically. and walkthroughs. there are several rules that can serve as testing objectives. in order to answer the question . Validation is the checkingor testing of items. Static analysis investigates the source code of software. Validation is theprocess of checking that what has been specified is what the user actually wanted. looking for problems and gathering metrics without actually executing the code. Dynamic analysislooks at the behavior of software while it is executing.Debugging is therefore an activity which supports testing.Other activities which are often associated with software testing are static analysis anddynamic analysis. includes software.They areTesting is a process of executing a program with the intend of finding an error. inspections. Software testing is just one kind of verification.Validation : Are we doing the right job?Verification : Are we doing the job right?Software testing should not be confused with debugging.
the cost to find and fix the defects. This is much more difficult than it may at first appear. Using the component level design description as a guide. 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.44function appear to be working according to the specification. its documentation andrelated data structures. ensuring that each performs the function for which itwas designed. The Test Plan acts as a blue print for the action that is to befollowed.important control paths are tested to . 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. So that the mean timeto failure. especially for largeprograms. that performancerequirement appear to have been met. TEST PLAN A test plan implies a series of desired course of action to be followed in accomplishingvarious testing methods.There are three ways to test program. remaining defect density or frequency of occurrence and test work-hours per regression test all should be stated within the testplan. Thespecific objectives of testing should be stated in measurable terms.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. The software engineers create a computer program. The software developers is always responsible for testing theindividual units of the programs.
Good design dictates that error conditions be anticipated and error handling paths set up to reroute or cleanly terminateprocessing when an error does occur. This form of testing is popularly known asBlack Box testing or System testing. The entire program is tested as whole. VALIDATION TESTING OR SYSTEM TESTING This is the final step in testing.The relative complexity of tests and uncovered scope established for unit testing. Boundary testing is the last task of unit testing step. modules and class modules. Theobjective is to take unit tested components and build a program structure that has beendictated by design. INTEGRATION TESTING Integration testing is systematic technique for constructing the program structurewhile at the same time conducting tests to uncover errors associated with interfacing. Boundary conditions are tested to ensure that all statements in a module havebeen executed at least once. 45Tests of data flow across a module interface are required before any other test isinitiated.Black Box testing method focuses on the functional requirements of the software. The unittesting is white-box oriented. all error handling paths are tested. Some flaws in theinternal logic of the modules were found and were rectified. Selective testingof execution paths is an essential task during the unit test.That is. The modular interface is tested to ensure that information properly flowsinto and out of the program unit under test. and step can be conducted in parallel for multiplecomponents. In this the entire system was tested as a whole with allforms.Software often fails at its boundaries. The local data structure is examined to ensurethat data stored temporarily maintains its integrity during all steps in an algorithm¶sexecution. If data do not enter and exit properly. Finally.uncover errors within the boundary of the module.After unit testing in Sell-Soft System all the modules were integrated to test for anyinconsistencies in the interfaces. new ones appear and the process continues in a seemingly endless loop. all other tests are moot. code. Once these errorsare corrected. Black Box testing enables the software engineer to . Correction is difficult becauseisolation of causes is complicated by vast expanse of entire program. Moreover differences in program structures wereremoved and a unique program structure was evolved.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.
The systems personnel check the feasibility of the system. user at the time of developing and making changes whenever required. This is because the success of asystem invariably depends on how they are operated and used. The system can be implemented only after through testing.performance errors and initialization errors and termination errors. 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. interface errors. errors in data structures or external data access. The software should keep in touch with perspective system.derive sets of input conditionsthat will fully exercise all functional requirements for a program. the system under study istested using that test data. By this. working through the sequence of activities on an ongoing basis. Educationinvolves creating the right atmosphere and motivating the user. After preparing the test data. incorrect or missing functions. Online message to guide the user and the like. OUTPUT TESTING OR USER ACCEPTANCE TESTING The system considered is tested for user acceptance. The implementationdepends upon the right people being at the right place at the right time. The administrators arefamiliarized with the run procedures of the system. TRAINING Once the system is successfully developed the next important step is to ensure that theadministrators are well trained to handle the system. Preparation of test data playsa vital role in the system testing.3. here it should satisfy the firm¶sneed. 5. 46The above testing is done taking various kinds of test data. This done with respect to thefollowing points Input Screen Designs. The actual data wereinputted to the system and the working of the system was closely monitored.Implementation is the state in the project where the theoretical design is turned into aworking system. Output Screen Designs.Black Box testing attempts to find errors in the following categories. The master option was selected from the main menu and the actual data were input through . the users get the confidence that the system will work effectively.
Again. R eports related to these processes were also successfullygenerated. This walkthrough occurs just before the system goes into use. Utilities providevarious data needed for inventory was input and the module was test run. training materials and systemdocumentation.thecorresponding input screens. users. and itshould include careful review of all manuals. Various input screen formats are listed in the appendix. Satisfactoryresults were obtained. the analyst and the members of the computer services staff may attend this meeting.Implementation walkthroughs ensure that the completed system actually solves theoriginal problem. The data movement was studied and found to be correctqueries option was then selected and this contains various reports. 47 APPENDIX SCREEN SHOTSLogin .
51 CustomerDeposit Transaction .
Jamie Jaworsky µVisual Basic 6. The exciting part of this project is. Transaction report. andSearching the transaction. BIBLIOGRAPHY BOOKS: 1. C harles Hampfed (2000) µVisual Basic¶ University of Toronto 2.52 Transaction Report(Deposit&Withdrawal) CONCLUSION ³Banking System " keeps the day by day tally record as a complete banking.0¶ µBPB Publications 4. account opening form. Stefen Denninger µVisual Basic 6. GroupAccount.0¶Author¶s Press . Withdrawal. it displays Transaction reports. John Zukowski (2000) µVisual Basic 6. Herbert Schildt (2000) µVisual Basic 6. StatisticalSummary of Account type and Interest Information.0¶Techmedia 5. Individual account opening form. It can keepthe information of Account type. Deposit.0¶ Tata McGraw Hill 3.