Arnab Kumar Basu (University Roll No. -09187002020) Sanmoy Maity (University Roll No. -09187002033) Shreshtha Sengupta (University Roll No. -09187002034) Subhas Das (University Roll No. -09187002048) Rounak Pramanik (University Roll No. -09187002056) Page | 2
INDEX
Topic Page No. Acknowledgement 3 Introduction 4 Definition of Banking System 4 Purpose 5 Scope 5 Objective 6 Requirement Analysis 7-8 System Specification 9 Feasibility Study 10 Use Case Diagram 11-13 Data Flow Diagram 14-17 Entity Relationship Diagram 18-19 Tables 20-24 Screenshots & Code 25-124 Future Scope 125 Bibliography 126
Page | 3
ACKNOWLEDGEMENT
A project of this volume can never be an outcome of a single person. We are highly indebted to our Project Mentor Mr. Suman Bhattacharya for his inspiration, constructive suggestions, constant supervision and being the epitome of guidance during the entire project. We would like to thank our parents for their encouragement. Without their help this project would not see the light of the day. We are happy to present a vote of thanks to all these people for their sincere advice and co- operation that they have lent to us unconditionally.
Page | 4
INTRODUCTION
The main purpose that banks have been serving since their inception is keeping our money safe for us. While keeping our money safe, they also let us earn a certain amount of interest on the money deposited with them.
Computers themselves have really come an enormous way since their initial establishment, as the earliest electronic computers were so large that they would take up the entire area of a room, while today some are so small that they can hardly be seen at all.
In today's world, computers play an incredibly large role in the way the world exists in general, and the majority of tasks could actually not be completed if not for the use of computers. Although there are certainly some areas and jobs that cannot yet be completed solely by computers and which thus still require actual manpower, for the most part, computers have helped to make life significantly easier, productive, and more convenient for us all.
The use of computers in banking has been around for quite some time now, and has really become prominent over the past decade or so in particular. Computer banking application offers an array of different advantages to the user, including: account balances and history including year-to-date information, the ability to transfer money from one account to another and to payees for bill payments, check history, reorders, and stop payments, check credit card balances and statements, complete loan applications, secure interactive messaging with staff, and much more.
Computerized banking basically allows you to be able to do everything that you can in your regular manual banking institution, only with the benefit that you can do it all right from the convenience of safety, reliability and efficiency. Not only is this great because it is very comfortable and can keep track yourself of all your banking issues, but as well it allows for more ease because you never have to worry because the entire application takes care of all the things automatically. The main stakeholders of this system are: 1. Admin 2. Operator (User/Specialized) 3. Customer
DEFINITION OF BANKING SYSTEM A network of commercial savings and specialized branches that provide financial services including deposits and providing loans and investment facilities. Banks are a fundamental component of the financial system, and are also active players in financial markets. The essential role of a bank is to connect those who have capital, with those who seek capital.
Page | 5
Purpose
With the problems and limitations associated with manual banking procedures as witnessed at most today, complied with the problems associated with the existing application programs even much more in the presence of serious technological advances aimed at improving information system. This is activities aimed at shedding light upon the need for improvement in accounting activities and the means of achieving its efficiency, effectiveness, reliability and success promising future through computer intervention. Computerized banking system identifies a particular set of technological solutions for the development and the distribution of financial services, which rely upon the open architecture of the local area network.
Scope The scope of this project is limited to the activities of the operations unit of the banking system which include: 1. Customer Management- Customer entry, editing and viewing 2. Account Management-Account specification, editing and opening accounts for customers, updating them as well as viewing. 3. Employee Management-Employee Entry, viewing, editing and also keeping track of their attendance with privileges. 4. Transactions-Withdrawal, deposit and fund transfers between accounts. 5. Loan-Creating loan schemes, editing, viewing and providing loans to customers within those schemes, updating, clearance of loans dynamically. 6. Demand Draft-Facility provided with 3 modes of payment and also dynamic invalidation of DDs incorporated along with other usual features. 7. Locker facility-Limited no. of lockers available with different sizes and charges, dynamic updating of dues and other usual features. 8. Reports-Various forms of reports with graphical and diagrammatic representations for future planning and case studies. All dynamic but restricted access is strictly maintained using privileges in employees.
Page | 6
OBJECTIVE
The aim of this project is to develop a secured LAN based banking system with the following objectives: Create a banking system that is easily accessible by operators. Reduce the requirement of more man power at banks Faster transactions and efficient use of time with reliability. Promote efficient and effective banking for the banks by focusing on those services that still require physical presence at the banking hall.
Page | 7
REQUIREMENT ANALYSIS Analysis is defined as the procedure by which we break down an intellectual or substantial whole into parts so that we can achieve our end goals. The development of a computer-based information system includes a systems analysis phase which produces or enhances the data model which itself is a precursor to creating or enhancing a database. There are a number of different approaches to system analysis. When a computer-based information system is developed, analysis would constitute the following steps: 1. The development of a feasibility study, involving determining whether a project is economically, socially, technologically and organizationally feasible. 2. Conducting fact-finding measures, designed to ascertain the requirements of the system's end-users. These typically span interviews, questionnaires, or visual observations of work on the existing system. 3. Gauging how the end-users would operate the system (in terms of general experience in using computer hardware or software), what the system would be used for etc. Aim The scope of this project Banking Management System is to Create an efficient and effective banking system that is easily accessible by operators by focusing on those services that still require physical presence at the banking hall
Technologies The main domain of this project is VB 6.0 (Microsoft Visual Basic 6.0) Along with this the database used is Oracle 9i Enterprise Edition and SQL.
Analysis In this project the Waterfall model is used which is a systematic, sequential approach to the software development that begins in the software level and process through analysis, design, development and coding, testing and maintenance. It suggests a linear progression of framework activities that is often inconsistent with modern realities in the software world. It have applicability in situations where requirements are well defined and stable. The stages involved in waterfall model are as follows: 1. Requirement Analysis and Specification. 2. Design. 3. Implementation. 4. Unit Testing. 5. Integration and System Testing. 6. Operation and Maintenance.
The waterfall model emphasizes on requirement analysis and design. Before writing a single line of code it ensures minimal wastage of time and effort and reduces the risk of schedule slippage, or of customer expectations not being met. By doing so it improves quality; its much easier to catch and correct possible flaws at the design stage than at the testing stage, after all the components have been integrated and tracking down specific errors is more complex.
Page | 8
Software Testing is the process of testing the software product. It is an important activity of software development process. Effective testing will produce quality software products. The testing requires the developers to find errors from the software.
The principles are testing are: All tests should be traceable to customer requirements. Tests should be planned long before testing begins. Testing should begin in the small and progress toward testing in the large. Exhaustive testing is not possible. To be most effective, an independent third party should conduct testing.
Unit Testing is the testing which is done at the first stage. In unit testing only one component of the system is tested, i.e., it includes the testing of only one module.
After unit testing comes Integration Testing. In this level, many unit-tested modules are combined into subsystems, which are then tested. The goal of this testing level is to see if the modules can be integrated properly. This testing activity can be considered as testing the design.
In our project we carry out alpha testing and white-box testing and black-box testing. Alpha testing is performed by the development team within the developing organization.
White-box testing is involved directly with the structure of the code within a module or code segment. In this a directed graph is drawn and use it to plan tests which adequately covers all the code in a given module. It tends to involve coverage. Its types are: Segment Coverage. Branch Coverage or Node Coverage. Compound Condition Testing. Basis Path Testing. Data Flow Testing. Path Testing. Loop Testing.
Black-box testing consists of assuming that the logic structure of the code is unknown-that is a black box. This is the point at which the function of a module is tested. It mainly involves: Error Guessing. Equivalence Class Partitioning. Boundary Value Analysis. Cause-and-Effect Graphing. Domain Testing. Module Interface Testing. Command Line Testing.
Page | 9
SYSTEM SPECIFICATION
HARDWARE AND SOFTWARE REQUIREMENTS
Developing Tool : Visual Basic 6.0 Database : Oracle 9i Enterprise Edition The frontend of this project is Visual Basic 6.0 and Backend is Oracle 9i Enterprise Edition.
Hardware/Software Minimum Requirements Recommended Requirements Processor 150 Mhz. 300 Mhz. RAM 16 MB 64 MB Hard Disk 1GB 4 GB Operating System Win 95 Any higher version of Windows
Page | 10
FEASIBILITY STUDY
The system under consideration should meet up to the feasibility standards which are broadly: TECHNICAL FEASIBILITY: The Banking System is being developed with stable platforms like Visual Basics and Oracle 9i and the created interface is very user friendly and very easy to maintain. ECONOMIC FEASIBILITY: From the hardware requirements of the previous section we can find out that the fund needed to build this system is quite feasible considering the performance of the system with such an investment. LOGICAL FEASIBILITY: The system design is logically sane. It is not contained with unnecessary options which can confuse the user in handling the simplest of operations. OPERATIONAL FEASIBILITY: This Banking System is well linked, so the user can easily find the options and most of the fields are automated, so it reduces workforce. The system is well designed, so the user will not face problems to adopt it. SCHEDULE FEASIBILITY: From COCOMO model we have found that the estimated time for the project is nearly 8 months. So it will be finished before the deadline.
Page | 11
USE CASE DIAGRAMS
Page | 12
ADMIN and OPERATOR
Page | 13
CUSTOMER
Page | 14
DATA-FLOW DIAGRAMS
Page | 15
CONTEXT LEVEL DIAGRAM
Page | 16
LEVEL 1 : ADMIN
Page | 17
LEVEL 1 : OPERATOR
Page | 18
ENTITY RELATIONSHIP DIAGRAM
Page | 19
Page | 20
TABLES
Page | 21
CUST_INFO3
ACC_TYPE3
ACC_INFO3
Page | 22
CHQ_INFO3
DEL_ACC3
TRANS_TYPE3
TRANS_INFO3
DEPOSIT3
Page | 23
WITHDRAWAL3
LOCKER3
DD3
LOAN_TYPE3
Page | 24
LOAN_INFO3
LOAN_DEL3
EMP_INFO3
EMP_LOGIN3
Page | 25
SCREENSHOTS & CODES
Page | 26
WELCOME PAGE (SPLASH SCREEN)
Page | 27
LOGIN PAGE
Page | 28
Option Explicit Private Sub Command1_Click() Dim i As Integer Adodc1.Recordset.MoveFirst If Text1.Text <> "" And Text2.Text <> "" Then Do While Adodc1.Recordset.EOF = False If Text1.Text = Text3.Text And Text2.Text = Text4.Text Then Text6.Text = Text1.Text Text7.Text = Date & " " & Time Adodc2.Recordset.Update Adodc2.Refresh Timer2.Enabled = True Exit Sub Else Adodc1.Recordset.MoveNext End If Loop Else i = MsgBox("Enter valid id !", vbExclamation) Text1.Text = "" Text2.Text = "" Text1.SetFocus Exit Sub End If i = MsgBox("Enter valid id !", vbExclamation) Text1.Text = "" Text2.Text = "" Text1.SetFocus End Sub
Private Sub Command2_Click() Unload Me End Sub
'Private Sub Form_KeyPress(KeyAscii As Integer) ' Unload Me 'End Sub
If Adodc2.Recordset.EOF = False Then Adodc2.Recordset.MoveLast End If
id = Val(Label5.Caption) + 1 Adodc2.Recordset.AddNew Label5.Caption = id
End Sub
'Private Sub lblPlatform_Click() 'End Sub
Private Sub Timer1_Timer() If ProgressBar1.Value < 100 Then ProgressBar1.Value = ProgressBar1.Value + 1 Label4.Caption = ProgressBar1.Value & " % " Else ProgressBar1.Visible = False Frame2.Visible = True Text1.Text = "" Text1.SetFocus Label4.Visible = False Timer1.Enabled = False End If End Sub
Private Sub Timer2_Timer() ProgressBar2.Visible = True If ProgressBar2.Value < 25 Then ProgressBar2.Value = ProgressBar2.Value + 1 Label4.Visible = True Label4.Caption = "Login As : " & Text5.Text & " " & Date & " " & Time Else Timer2.Enabled = False
If Text8.Text = "User" Then MDI_bank.reports_mnu.Visible = False MDI_bank.employee_mnu.Visible = False End If
If Text8.Text = "Specialized" Then MDI_bank.employee_mnu.Visible = False MDI_bank.emp_reg_mnu.Visible = False MDI_bank.Acc_stat_rpt_mnu.Visible = False MDI_bank.cust_det_mnu.Visible = False End If
MDI_bank.logout_mnu.Caption = "Logout : " & Text5.Text MDI_bank.Show Unload Me End If End Sub
Page | 30
HOME PAGE
Private Sub Acc_stat_rpt_mnu_Click() 'CrysRpt1.SelectionFormula = "{transaction.transaction_type}='" + Combo1.Text + "'" CrysRpt1.Connect = "DSN=bank3;UID=scott;PWD=tiger;DSQ=OracleXE;" CrysRpt1.ReportFileName = App.Path & "\Acctype_stats_Report2.rpt" 'may change CrysRpt1.Action = 1 End Sub
Private Sub Acc_vs_chq_mnu_Click() 'CrysRpt1.SelectionFormula = "{transaction.transaction_type}='" + Combo1.Text + "'" CrysRpt1.Connect = "DSN=bank3;UID=scott;PWD=tiger;DSQ=OracleXE;" CrysRpt1.ReportFileName = App.Path & "\Acc_vs_chq_Report1.rpt" 'may change CrysRpt1.Action = 1 End Sub
CrysRpt1.ReportFileName = App.Path & "\Accno_vs_chqno_Report1.rpt" 'may change CrysRpt1.Action = 1 End Sub
Private Sub bank_stm_rpt_mnu_Click() Daily_bank_statement.Show End Sub
Private Sub all_cust_mnu_Click() 'CrysRpt1.SelectionFormula = "{transaction.transaction_type}='" + Combo1.Text + "'" CrysRpt1.Connect = "DSN=bank3;UID=scott;PWD=tiger;DSQ=OracleXE;" CrysRpt1.ReportFileName = App.Path & "\Customer_Account_Report1.rpt" 'may change CrysRpt1.Action = 1 End Sub
Private Sub clear_cancel_dd_mnu_Click() Clear_Cancel_DD.Show End Sub
Private Sub create_account_mnu_Click() Create_Account.Show End Sub
Private Sub create_dd_mnu_Click() Create_DD.Show End Sub
Private Sub create_locker_mnu_Click() Create_Locker.Show End Sub
Private Sub create_new_loan_mnu_Click() create_new_loan.Show End Sub
Private Sub dd_rpt_mnu_Click() 'CrysRpt1.SelectionFormula = "{transaction.transaction_type}='" + Combo1.Text + "'" CrysRpt1.Connect = "DSN=bank3;UID=scott;PWD=tiger;DSQ=OracleXE;" CrysRpt1.ReportFileName = App.Path & "\DD_Report1.rpt" 'may change CrysRpt1.Action = 1 End Sub
Private Sub del_single_loan_mnu_Click() del_single_loan.Show End Sub
Private Sub Dep_5year_mnu_Click() 'CrysRpt1.SelectionFormula = "{transaction.transaction_type}='" + Combo1.Text + "'" CrysRpt1.Connect = "DSN=bank3;UID=scott;PWD=tiger;DSQ=OracleXE;" CrysRpt1.ReportFileName = App.Path & "\Dep_Year_Report1.rpt" 'may change CrysRpt1.Action = 1 End Sub
Private Sub Dep_month_mnu_Click() 'CrysRpt1.SelectionFormula = "{transaction.transaction_type}='" + Combo1.Text + "'" CrysRpt1.Connect = "DSN=bank3;UID=scott;PWD=tiger;DSQ=OracleXE;" CrysRpt1.ReportFileName = App.Path & "\Dep_Month_Report1.rpt" 'may change CrysRpt1.Action = 1 End Sub
Private Sub due_mnu_Click() due.Show End Sub
Page | 32
Private Sub edit_account_mnu_Click() edit_account.Show End Sub
Private Sub edit_acnt_type_mnu_Click() edit_account_type.Show End Sub
Private Sub edit_cust_mnu_Click() Edit_customer.Show End Sub
Private Sub edit_loan_type_mnu_Click() edit_loan_type.Show End Sub
Private Sub emp_reg_mnu_Click() 'CrysRpt1.SelectionFormula = "{transaction.transaction_type}='" + Combo1.Text + "'" CrysRpt1.Connect = "DSN=bank3;UID=scott;PWD=tiger;DSQ=OracleXE;" CrysRpt1.ReportFileName = App.Path & "\Emp_attn_Report1.rpt" 'may change CrysRpt1.Action = 1 End Sub
Private Sub Fnd_sngl_cust_mnu_Click() view_selected_customer.Show End Sub
Private Sub monthly_report_mnu_Click() report_m.Show End Sub
Private Sub loan_rpt_mnu_Click() 'CrysRpt1.SelectionFormula = "{transaction.transaction_type}='" + Combo1.Text + "'" CrysRpt1.Connect = "DSN=bank3;UID=scott;PWD=tiger;DSQ=OracleXE;" CrysRpt1.ReportFileName = App.Path & "\Loan_Report1.rpt" 'may change CrysRpt1.Action = 1 End Sub
Private Sub locker_rpt_mnu_Click() 'CrysRpt1.SelectionFormula = "{transaction.transaction_type}='" + Combo1.Text + "'" CrysRpt1.Connect = "DSN=bank3;UID=scott;PWD=tiger;DSQ=OracleXE;" CrysRpt1.ReportFileName = App.Path & "\Locker_Report1.rpt" 'may change CrysRpt1.Action = 1 End Sub
Private Sub logout_mnu_Click() If Adodc1.Recordset.EOF = False Then Adodc1.Recordset.MoveLast End If i = MsgBox("Are You sure You want to Logout?", vbYesNo) If i = vbYes Then Text1.Text = Label1.Caption Adodc1.Recordset.MoveFirst Adodc1.Refresh Unload Me End If End Sub
Private Sub MDIForm_Load() Label1.Caption = Date & " " & Time Adodc1.Visible = False Text1.Visible = False UserButtonz1.Caption = "New Customer" UserButtonz2.Caption = "New Account" Page | 33
UserButtonz3.Caption = "New Loan" UserButtonz4.Caption = "New Locker" UserButtonz5.Caption = "New DD" UserButtonz6.Caption = "Transactions" End Sub
Private Sub new_acnt_type_mnu_Click() New_Account_Type.Show End Sub
Private Sub New_customer_mnu_Click() New_Customer.Show End Sub
Private Sub new_employee_mnu_Click() new_employee.Show End Sub
Private Sub new_loan_type_mnu_Click() New_Loan_Type.Show End Sub
Private Sub release_locker_mnu_Click() Release_Locker.Show End Sub
Private Sub sel_cust_mnu_Click() select_customer.Show End Sub
Private Sub statement_mnu_Click() statement_acc.Show End Sub
Private Sub Timer1_Timer() Label1.Caption = Date & " " & Time End Sub
Private Sub trans_report_mnu_Click() 'CrysRpt1.SelectionFormula = "{transaction.transaction_type}='" + Combo1.Text + "'" CrysRpt1.Connect = "DSN=bank3;UID=scott;PWD=tiger;DSQ=OracleXE;" CrysRpt1.ReportFileName = App.Path & "\Transaction_report.rpt" 'may change CrysRpt1.Action = 1 End Sub
Private Sub update_dd_mnu_Click() Update_DD.Show End Sub Private Sub update_loan_mnu_Click() update_loan.Show End Sub Private Sub update_locker_mnu_Click() Update_Locker.Show End Sub Private Sub UserButtonz1_Click() New_Customer.Show End Sub Private Sub UserButtonz2_Click() Create_Account.Show End Sub Private Sub UserButtonz3_Click() create_new_loan.Show End Sub Page | 34
Private Sub UserButtonz4_Click() Create_Locker.Show End Sub Private Sub UserButtonz5_Click() Create_DD.Show End Sub Private Sub UserButtonz6_Click() Withdrawal_Deposit.Show End Sub Private Sub view_all_acnt_type_mnu_Click() View_All_Account_Type.Show End Sub Private Sub View_all_cust_mnu_Click() view_all_customer.Show End Sub Private Sub view_all_del_loan_mnu_Click() view_all_del_loan.Show End Sub Private Sub view_all_loan_mnu_Click() view_all_loan.Show End Sub Private Sub view_all_loan_type_mnu_Click() view_all_loan_type.Show End Sub Private Sub view_all_locker_mnu_Click() View_all_locker.Show End Sub Private Sub view_dd_mnu_Click() View_DD.Show End Sub Private Sub view_edit_employee_mnu_Click() view_edit_employee.Show End Sub Private Sub view_selected_loan_mnu_Click() view_single_loan.Show End Sub
Private Sub With_5year_mnu_Click() 'CrysRpt1.SelectionFormula = "{transaction.transaction_type}='" + Combo1.Text + "'" CrysRpt1.Connect = "DSN=bank3;UID=scott;PWD=tiger;DSQ=OracleXE;" CrysRpt1.ReportFileName = App.Path & "\With_Year_Report1.rpt" 'may change CrysRpt1.Action = 1 End Sub
Private Sub With_month_mnu_Click() 'CrysRpt1.SelectionFormula = "{transaction.transaction_type}='" + Combo1.Text + "'" CrysRpt1.Connect = "DSN=bank3;UID=scott;PWD=tiger;DSQ=OracleXE;" CrysRpt1.ReportFileName = App.Path & "\With_Month_Report1.rpt" 'may change CrysRpt1.Action = 1 End Sub
Private Sub withdrawal_deposit_mnu_Click() Withdrawal_Deposit.Show End Sub
Page | 35
CUSTOMER MANAGEMENT MENU
NEW CUSTOMER PAGE
Page | 36
Dim id As Integer
Private Sub Combo1_Click()
If Combo1.Text = "Others" Then Text6.Text = "" Text6.Visible = True Else Text6.Text = Combo1.Text End If End Sub
Private Sub Combo2_Click() If Combo2.Text = "Others" Then Text9.Text = "" Text9.Visible = True Else Text9.Text = Combo2.Text End If End Sub
Private Sub Command1_Click() Adodc1.Recordset.Update Command3.Enabled = True Command1.Enabled = False Command2.Enabled = False End Sub
Private Sub Command2_Click() Adodc1.Recordset.CancelUpdate Command3.Enabled = True Command1.Enabled = False Command2.Enabled = False End Sub
Private Sub Command3_Click() Adodc1.Recordset.AddNew Command3.Enabled = False Command1.Enabled = True Command2.Enabled = True Adodc1.Refresh If Adodc1.Recordset.EOF = False Then Adodc1.Recordset.MoveLast End If id = Val(Label2.Caption) + 1 Adodc1.Recordset.AddNew Label2.Caption = id End Sub
Private Sub DTPicker1_Click() Text3.Text = DTPicker1.Value End Sub
Private Sub Form_Load() Label1.Caption = "Customer ID :" Label4.Caption = "Name :" Label5.Caption = "Address :" Label6.Caption = "Date of Birth :" Label7.Caption = "Phone No. :" Label8.Caption = "Mobile :" Label9.Caption = "Address Proof : " Label10.Caption = "PAN :" Label11.Caption = "E-MAIL :" Label12.Caption = "DOB Proof :" Label13.Caption = "Occupation :" Label14.Caption = "New Customer" Frame1.Caption = "" Frame2.Caption = "" Command1.Caption = "Save" Command2.Caption = "Cancel" Command3.Caption = "Add Another" Command4.Caption = "Clear" Command5.Caption = "Exit" Text3.Visible = False Text6.Visible = False Text9.Visible = False Adodc1.Visible = False With Combo1 .AddItem "Voter Id" .AddItem "Driving License" .AddItem "Passport" .AddItem "Ration Card" .AddItem "Others" End With With Combo2 .AddItem "Voter Id" .AddItem "Driving License" .AddItem "Passport" .AddItem "Birth Certificate" .AddItem "Matriculation Admit" .AddItem "Others" End With Timer1.Interval = 90 Timer1.Enabled = True Command3.Enabled = False If Adodc1.Recordset.EOF = False Then Adodc1.Recordset.MoveLast End If id = Val(Label2.Caption) + 1 Adodc1.Recordset.AddNew Label2.Caption = id Text6.Visible = False Text9.Visible = False End Sub
Private Sub Text4_KeyPress(KeyAscii As Integer) If (KeyAscii < Asc("0") Or KeyAscii > Asc("9") Or Len(Text4.Text) = 11) And KeyAscii <> 8 Then KeyAscii = 0 i = MsgBox("Enter valid phone number", vbInformation) End If End Sub Page | 38
Private Sub Text5_KeyPress(KeyAscii As Integer) If (KeyAscii < Asc("0") Or KeyAscii > Asc("9") Or Len(Text5.Text) = 10) And KeyAscii <> 8 Then KeyAscii = 0 i = MsgBox("Enter valid mobile number", vbInformation) End If End Sub
Private Sub Text7_KeyPress(KeyAscii As Integer) If Len(Text7.Text) = 10 And KeyAscii <> 8 Then KeyAscii = 0 i = MsgBox("Enter valid PAN", vbInformation) End If End Sub
Private Sub Text8_LostFocus() Dim i As Integer Dim j As Integer Dim L As Integer Dim atflag As Integer Dim dotflag As Integer atflag = -1 dotflag = -1 L = Len(Text8.Text) For i = 1 To L If Mid(Text8.Text, i, 1) = "@" Then For j = i To L If Mid(Text8.Text, j, 1) = "." Then atflag = 1 dotflag = 1 End If Next j End If Next i If dotflag = -1 Or atflag = -1 Then i = MsgBox("Enter valid email id", vbCritical) Text8.Text = "" End If End Sub
Private Sub Timer1_Timer() Label3.Caption = Date & " " & Time End Sub
Page | 39
EDIT CUSTOMER PAGE
After Input
Page | 40
Private Sub Combo1_Click() If Combo1.Text = "Others" Then Text10.Text = "" Text10.Visible = True Else Text10.Text = Combo1.Text End If End Sub
Private Sub Combo2_Click() If Combo2.Text = "Others" Then Text11.Text = "" Text11.Visible = True Else Text11.Text = Combo2.Text End If End Sub
Private Sub Command1_Click() Adodc1.Recordset.MoveFirst If Text1.Text <> "" Then Do While Adodc1.Recordset.EOF = False If Text1.Text <> Label4.Caption Then Adodc1.Recordset.MoveNext Else Edit_customer.Height = 7710 Exit Sub End If Loop Else i = MsgBox("Enter valid id !", vbExclamation) Text1.Text = "" Text1.SetFocus Exit Sub End If i = MsgBox("Id not found !", vbInformation) Text1.Text = "" Text1.SetFocus End Sub
Private Sub Command2_Click() Adodc1.Recordset.MoveFirst Edit_customer.Height = 2080 i = MsgBox("Successfully Updated", vbInformation) End Sub
Private Sub Command3_Click() Adodc1.Recordset.CancelUpdate Edit_customer.Height = 2080 i = MsgBox("Operation Cancelled", vbInformation) End Sub
Private Sub Command4_Click() Unload Me End Sub
Private Sub DTPicker1_Change() Text4.Text = DTPicker1.Value End Sub
Private Sub DTPicker1_Click() Text4.Text = DTPicker1.Value End Sub
Private Sub Text5_KeyPress(KeyAscii As Integer) If (KeyAscii < Asc("0") Or KeyAscii > Asc("9") Or Len(Text5.Text) = 11) And KeyAscii <> 8 Then KeyAscii = 0 i = MsgBox("Enter valid phone number", vbInformation) End If End Sub
Private Sub Text6_KeyPress(KeyAscii As Integer) If (KeyAscii < Asc("0") Or KeyAscii > Asc("9") Or Len(Text6.Text) = 10) And KeyAscii <> 8 Then KeyAscii = 0 i = MsgBox("Enter valid mobile number", vbInformation) End If End Sub
Page | 42
Private Sub Text7_KeyPress(KeyAscii As Integer) If Len(Text7.Text) = 10 And KeyAscii <> 8 Then KeyAscii = 0 i = MsgBox("Enter valid PAN", vbInformation) End If End Sub
Private Sub Text8_KeyPress(KeyAscii As Integer) If Len(Text8.Text) = 29 And KeyAscii <> 8 Then KeyAscii = 0 i = MsgBox("Enter email with maximum of 30 characters. ", vbInformation) End If End Sub
Private Sub Text8_LostFocus() Dim i As Integer Dim j As Integer Dim L As Integer Dim atflag As Integer Dim dotflag As Integer atflag = -1 dotflag = -1 L = Len(Text8.Text) For i = 1 To L If Mid(Text8.Text, i, 1) = "@" Then For j = i To L If Mid(Text8.Text, j, 1) = "." Then atflag = 1 dotflag = 1 End If Next j End If Next i If dotflag = -1 Or atflag = -1 Then i = MsgBox("Enter valid email id", vbCritical) Text8.Text = "" End If End Sub
Private Sub Timer1_Timer() Label2.Caption = Date & " " & Time End Sub
Page | 43
VIEW CUSTOMER MENU
FIND SINGLE CUSTOMER PAGE
Page | 44
Private Sub Command1_Click() Adodc1.Recordset.MoveFirst If Text1.Text <> "" Then Do While Adodc1.Recordset.EOF = False If Text1.Text <> Label4.Caption Then Adodc1.Recordset.MoveNext Else Exit Sub End If Loop Else i = MsgBox("Enter valid ID !", vbInformation) Text1.Text = "" Text1.SetFocus Exit Sub End If i = MsgBox("ID not found !", vbExclamation) Text1.Text = "" Text1.SetFocus End Sub
Private Sub Timer1_Timer() Label2.Caption = Date & " " & Time End Sub
Page | 45
VIEW ALL CUSTOMER PAGE
Private Sub Command1_Click() Unload Me End Sub
Private Sub Form_Load() Adodc1.Visible = False Command1.Caption = "Exit" Label1.Caption = "All Customer Details" End Sub
Private Sub DataGrid1_KeyPress(KeyAscii As Integer) KeyAscii = 0 i = MsgBox("Data cannot be edited", vbCritical) End Sub
Page | 46
ACCOUNT MANAGEMENT MENU
ACCOUNT TYPE MENU
NEW ACCOUNT TYPE PAGE
Page | 47
After Input
Private Sub Command1_Click() If Text6.Text <> "" And Text2.Text <> "" And Text3.Text <> "" And Text4.Text <> "" And Text5.Text <> "" Then Adodc1.Recordset.Update Adodc1.Refresh Frame2.Enabled = False i = MsgBox("Successfully Updated", vbInformation) Frame1.Visible = False Frame2.Visible = False Else i = MsgBox("Field Empty", vbCritical) End If End Sub
Private Sub Command2_Click() Adodc1.Recordset.CancelUpdate Adodc1.Refresh Frame2.Enabled = False Frame1.Visible = False Frame2.Visible = False End Sub
Private Sub Command3_Click() Page | 48
Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer) Frame1.Visible = False Frame2.Visible = False If KeyAscii = 13 Then Text1.Text = UCase(Text1.Text) If Adodc1.Recordset.BOF = False Then Adodc1.Recordset.MoveFirst End If Do While Adodc1.Recordset.EOF = False If Text1.Text <> Text6.Text Then Adodc1.Recordset.MoveNext Else i = MsgBox("Enter New Acc Type !", vbCritical) Text1.SetFocus Exit Sub End If Loop Frame1.Visible = True Frame2.Visible = True
Private Sub Timer1_Timer() Label6.Caption = Date & " " & Time End Sub Page | 49
EDIT ACCOUNT TYPE PAGE
After input
Page | 50
Private Sub Command1_Click() Adodc1.Recordset.MoveFirst Adodc1.Refresh Frame1.Visible = False i = MsgBox("Updated Successfully", vbInformation) DataCombo1.Text = "" DataCombo1.Refresh End Sub
Private Sub Command2_Click() Adodc1.Recordset.CancelUpdate Adodc1.Refresh Frame1.Visible = False i = MsgBox("Cancel") DataCombo1.Text = "" DataCombo1.Refresh End Sub
Private Sub Command3_Click() Unload Me End Sub
Private Sub DataCombo1_Change() Adodc1.Recordset.MoveFirst Do While Adodc1.Recordset.EOF = False If DataCombo1.Text <> Label4.Caption Then Adodc1.Recordset.MoveNext Else Frame1.Visible = True Exit Sub End If Loop End Sub
Private Sub Timer1_Timer() Label2.Caption = Date & " " & Time End Sub
Page | 51
VIEW ALL ACCOUNT TYPE PAGE
Private Sub Command1_Click() Unload Me End Sub
Private Sub DataGrid1_KeyPress(KeyAscii As Integer) KeyAscii = 0 i = MsgBox("Data cannot be edited", vbCritical) End Sub
Private Sub Form_Load() Label1.Caption = "All Account Type Info." Command1.Caption = "Exit" Adodc1.Visible = False End Sub
Page | 52
NEW ACCOUNT PAGE
Dim new_chq_from As Integer Dim new_chq_to As Integer Dim acc_no As Integer
Private Sub Check1_Click() If Check1.Value = 1 Then Text7.Text = "YES" Frame5.Visible = True Else Text7.Text = "NO" Frame5.Visible = False End If End Sub
Private Sub Command2_Click() Text8.Text = "" Frame5.Visible = False Frame4.Visible = False Command1.Enabled = False Command2.Enabled = False Frame1.Enabled = True DataCombo2.Enabled = True Adodc3.Recordset.CancelUpdate Check1.Value = 0 End Sub
Private Sub Command3_Click() Unload Me End Sub
Private Sub DataCombo1_Change() Adodc1.Recordset.MoveFirst Do While Adodc1.Recordset.EOF = False If Text2.Text <> DataCombo1.Text Then Adodc1.Recordset.MoveNext Else Exit Sub End If Loop End Sub
Private Sub DataCombo2_Change() Dim new_accno As Integer If Adodc3.Recordset.EOF = False Then Adodc3.Recordset.MoveLast End If new_accno = Val(Label2.Caption) + 1 Adodc3.Recordset.AddNew Label2.Caption = new_accno Label2.Visible = True Text3.Text = Text2.Text Text4.Text = DataCombo2.Text DataCombo2.Enabled = False Frame1.Enabled = False Command1.Enabled = True Command2.Enabled = True Frame4.Visible = True Page | 54
End Sub
Private Sub DataCombo3_Change() Text15.Text = DataCombo3.Text End Sub
Private Sub DTPicker1_Change() Text6.Text = DTPicker1.Value End Sub
Private Sub DTPicker1_Click() Text6.Text = DTPicker1.Value End Sub
Private Sub DTPicker2_Change() Text12.Text = DTPicker2.Value End Sub
Private Sub DTPicker2_Click() Text12.Text = DTPicker2.Value End Sub
Private Sub Text5_LostFocus() If Val(Label10.Caption) > Val(Text5.Text) Then Text5.Text = "" Label10.ForeColor = vbRed
Text5.SetFocus Else Label10.ForeColor = vbBlack End If End Sub
Private Sub Text8_LostFocus() If Adodc4.Recordset.EOF = False Then Adodc4.Recordset.MoveLast End If Text9.Text = Val(Text18.Text) + 1 Text10.Text = Val(Text18.Text) + Val(Text8.Text) new_chq_from = Text9.Text new_chq_to = Text10.Text End Sub
Page | 56
FIND/EDIT ACCOUNT PAGE
Private Sub Command1_Click() Adodc1.RecordSource = "SELECT * FROM ACC_INFO3 WHERE ACC_NO=" & Val(Text1.Text) Adodc1.Refresh If Adodc1.Recordset.RecordCount <> 0 Then DataGrid1.Refresh Command2.Enabled = True Command4.Enabled = True Else i = MsgBox("Enter A Valid Account Number!", vbExclamation) Text1.Text = "" Text1.SetFocus End If End Sub
Private Sub Command2_Click() Adodc1.Recordset.Update Command2.Enabled = False Command4.Enabled = False End Sub
Private Sub Command3_Click() Unload Me End Sub
Page | 57
Private Sub Command4_Click() Adodc1.Recordset.CancelUpdate Command2.Enabled = False Command4.Enabled = False End Sub
Private Sub Form_Load() Timer1.Enabled = True Timer1.Interval = 100 Label1.Caption = Date & " " & Time Label2.Caption = "Enter Account no :" Label3.Caption = "Find/Edit Account Info." Text1.Text = "" Frame2.Caption = "Details" Command1.Caption = "Find" Command2.Caption = "Save" Command3.Caption = "Exit" Command4.Caption = "Cancel" Command2.Enabled = False Command4.Enabled = False Adodc1.Visible = False End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then Adodc1.RecordSource = "SELECT * FROM ACC_INFO3 WHERE ACC_NO=" & Val(Text1.Text) Adodc1.Refresh If Adodc1.Recordset.RecordCount <> 0 Then DataGrid1.Refresh Command2.Enabled = True Command4.Enabled = True Else i = MsgBox("Enter A Valid Account Number!", vbExclamation) Text1.Text = "" Text1.SetFocus End If End If End Sub
Private Sub Timer1_Timer() Label1.Caption = Date & " " & Time End Sub
Page | 58
EMPLOYEE MENU
NEW EMPLOYEE PAGE
Page | 59
Dim empid As Integer
Private Sub Combo1_Click() Text5.Text = Combo1.Text End Sub
Private Sub Combo2_Click() Text6.Text = Combo2.Text End Sub
Private Sub Combo3_Click() If Text9.Text <> "" Then Text10.Text = Combo3.Text Else i = MsgBox("Enter confirm password", vbCritical) Text9.SetFocus End If End Sub
Private Sub Command1_Click() Adodc1.Recordset.Update Adodc1.Refresh Command1.Enabled = False Command2.Enabled = False Command3.Enabled = True j = MsgBox("Add another record?", vbOKCancel) If j = 1 Then If Adodc1.Recordset.EOF = False Then Adodc1.Recordset.MoveLast End If empid = Val(Label2.Caption) + 1 Adodc1.Recordset.AddNew Label2.Caption = empid Command1.Enabled = True Command2.Enabled = True Command3.Enabled = False Option1.Value = False Option2.Value = False Text9.Text = "" Combo1.Text = "Select" Combo2.Text = "Select" Combo3.Text = "Select" Else Unload Me End If End Sub
Private Sub Command2_Click() Adodc1.Recordset.CancelUpdate Adodc1.Refresh Command1.Enabled = False Command2.Enabled = False 'Command3.Enabled = True j = MsgBox("Add another record?", vbOKCancel) If j = 1 Then If Adodc1.Recordset.EOF = False Then Adodc1.Recordset.MoveLast End If empid = Val(Label2.Caption) + 1 Adodc1.Recordset.AddNew Label2.Caption = empid Command1.Enabled = True Command2.Enabled = True 'Command3.Enabled = False Page | 60
Option1.Value = False Option2.Value = False Text9.Text = "" Combo1.Text = "Select" Combo2.Text = "Select" Combo3.Text = "Select" Else Unload Me End If End Sub
Private Sub Command3_Click() If Adodc1.Recordset.EOF = False Then Adodc1.Recordset.MoveLast End If empid = Val(Label2.Caption) + 1 Adodc1.Recordset.AddNew Label2.Caption = empid Command1.Enabled = True Command2.Enabled = True Command3.Enabled = False Option1.Value = False Option2.Value = False Text9.Text = "" End Sub
.AddItem "Administrator" End With With Combo3 .AddItem "User" .AddItem "Specialized" .AddItem "Admin" End With If Adodc1.Recordset.EOF = False Then Adodc1.Recordset.MoveLast End If empid = Val(Label2.Caption) + 1 Adodc1.Recordset.AddNew Label2.Caption = empid Combo1.Text = "Select" Combo2.Text = "Select" Combo3.Text = "Select" Text9.Text = "" Text8.Text = "" Text4.Visible = False Text5.Visible = False Text6.Visible = False Text10.Visible = False Adodc1.Visible = False End Sub
Private Sub Option1_Click() Text4.Text = Option1.Caption End Sub
Private Sub Option2_Click() Text4.Text = Option2.Caption End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer) If (KeyAscii < Asc("0") Or KeyAscii > Asc("9") Or Len(Text3.Text) = 10) And KeyAscii <> 8 Then KeyAscii = 0 i = MsgBox("Enter valid phone number", vbInformation) End If End Sub
Private Sub Text7_KeyPress(KeyAscii As Integer) If Len(Text7.Text) = 10 And KeyAscii <> 8 Then KeyAscii = 0 i = MsgBox("Enter valid PAN", vbInformation) End If End Sub
Private Sub Text8_LostFocus() Text9.SetFocus End Sub
Private Sub Text9_LostFocus() If Text9.Text <> Text8.Text Then i = MsgBox("Passwords do not match", vbCritical) End If End Sub
Page | 62
VIEW & EDIT EMPLOYEE PAGE
Private Sub Command1_Click() Adodc2.RecordSource = "SELECT * FROM EMP_INFO3 WHERE EMP_ID=" & DataCombo1.Text Adodc2.Refresh If Adodc2.Recordset.RecordCount = 0 Then i = MsgBox("Enter valid EmpId!!", vbInformation) End If End Sub
Private Sub Command2_Click() Adodc2.Recordset.Update i = MsgBox("Information Update", vbInformation) Page | 63
End Sub
Private Sub Command3_Click() Adodc2.Recordset.CancelUpdate i = MsgBox("Operation Cancelled", vbInformation) End Sub
Private Sub Command4_Click() Unload Me End Sub
Private Sub DataCombo1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then Adodc2.RecordSource = "SELECT * FROM EMP_INFO3 WHERE EMP_ID=" & DataCombo1.Text Adodc2.Refresh If Adodc2.Recordset.RecordCount = 0 Then i = MsgBox("Enter valid EmpId!!", vbInformation) End If End If End Sub
Private Sub Form_Load() Command1.Caption = "Find" Command2.Caption = "Save" Command3.Caption = "Cancel" Command4.Caption = "Exit" Label1.Caption = "View And Edit Employee Info." Label2.Caption = "Emp Id :" Frame1.Caption = "Detail" Adodc1.Visible = False Adodc2.Visible = False End Sub
Private Sub Command4_Click() Adodc6.Recordset.CancelUpdate Adodc6.Refresh DataCombo1.Enabled = True Frame3.Enabled = False Command3.Enabled = False Command4.Enabled = False i = MsgBox("Cancelled", vbInformation) End Sub
Private Sub Command5_Click() Unload Me End Sub
Private Sub DataCombo1_Change() If Adodc1.Recordset.BOF = False Then Adodc1.Recordset.MoveFirst End If Do While Adodc1.Recordset.EOF = False Page | 66
If DataCombo1.Text <> Text7.Text Then Adodc1.Recordset.MoveNext Else GoTo X End If Loop X: Dim trans_id As Integer If Adodc6.Recordset.EOF = False Then Adodc6.Recordset.MoveLast End If trans_id = Val(Label4.Caption) + 1 DataCombo1.Enabled = False 'If Frame4.Enabled = True Then Adodc6.Recordset.AddNew Label4.Caption = trans_id Label6.Caption = Text2.Text Label8.Caption = Date & " " & Time If Text2.Text = "D" Then Label20.Caption = trans_id Label22.Caption = DataCombo1.Text End If If Text2.Text = "W" Then Label12.Caption = trans_id Label14.Caption = DataCombo1.Text End If 'End If End Sub
Private Sub DataCombo2_Change() If Adodc2.Recordset.BOF = False Then Adodc2.Recordset.MoveFirst End If Do While Adodc2.Recordset.EOF = False If Text1.Text <> DataCombo2.Text Then Adodc2.Recordset.MoveNext Else If Text2.Text = "W" Then Frame3.Enabled = True Frame4.Enabled = False Command3.Enabled = True Command4.Enabled = True Command1.Enabled = False Command2.Enabled = False End If If Text2.Text = "D" Then Frame3.Enabled = False Frame4.Enabled = True Command1.Enabled = True Command2.Enabled = True Command3.Enabled = False Command4.Enabled = False End If Exit Sub End If Loop End Sub
Private Sub Text5_LostFocus() If Val(Text5.Text) <= (Val(Label18.Caption) - 500) Then Command3.Enabled = True Text5.ForeColor = vbBlack Else i = MsgBox("Insufficient Balance!!", vbExclamation) Text5.ForeColor = vbRed End If End Sub
Page | 68
STATEMENT PAGE
Private Sub Command1_Click() Adodc1.RecordSource = "SELECT * FROM ACC_INFO3 WHERE ACC_NO= " & Val(Text1.Text) Adodc1.Refresh If Adodc1.Recordset.RecordCount <> 0 Then Page | 69
Adodc2.RecordSource = "SELECT * FROM DEPOSIT_TRANS_VIEW3 WHERE ACC_NO= " & Val(Text1.Text) Adodc2.Refresh DataGrid1.Refresh Adodc3.RecordSource = "SELECT * FROM WITHDRAWAL_TRANS_VIEW3 WHERE ACC_NO= " & Val(Text1.Text) Adodc3.Refresh DataGrid2.Refresh
Else Adodc2.RecordSource = "SELECT * FROM DEPOSIT_TRANS_VIEW3 WHERE ACC_NO= " & Val(Text1.Text) Adodc2.Refresh DataGrid1.Refresh Adodc3.RecordSource = "SELECT * FROM WITHDRAWAL_TRANS_VIEW3 WHERE ACC_NO= " & Val(Text1.Text) Adodc3.Refresh DataGrid2.Refresh i = MsgBox("Account no. not valid", vbInformation) End If End Sub
Private Sub Command1_Click() If Text4.Text <> "" And Text2.Text <> "" And Text3.Text <> "" Then Adodc1.Recordset.Update Adodc1.Refresh Frame2.Enabled = False i = MsgBox("Successfully Updated", vbInformation) Frame1.Visible = False Frame2.Visible = False Text1.SetFocus Text1.Text = "" Else i = MsgBox("Fields Empty !", vbCritical) End If End Sub
Private Sub Command2_Click() Adodc1.Recordset.CancelUpdate Adodc1.Refresh Frame2.Enabled = False Frame1.Visible = False Frame2.Visible = False Text1.SetFocus Text1.Text = "" End Sub
Private Sub Command3_Click() Text2.Text = "" Text3.Text = "" End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer) Frame1.Visible = False Frame2.Visible = False If KeyAscii = 13 Then Page | 72
Adodc1.Refresh Text1.Text = UCase(Text1.Text) If Adodc1.Recordset.BOF = False Then Adodc1.Recordset.MoveFirst End If Do While Adodc1.Recordset.EOF = False If Text1.Text <> Text4.Text Then Adodc1.Recordset.MoveNext Else i = MsgBox("This Type Exists,Enter New Loan Type !", vbCritical) Text1.SetFocus Text1.Text = "" Exit Sub End If Loop Frame1.Visible = True Frame2.Visible = True Adodc1.Recordset.AddNew Text4.Text = Text1.Text Text2.SetFocus Frame2.Enabled = True End If End Sub
Private Sub Timer1_Timer() Label2.Caption = Date & " " & Time End Sub
Page | 73
EDIT LOAN TYPE PAGE
Private Sub Command1_Click() Adodc1.Recordset.MoveFirst Adodc1.Refresh Frame1.Visible = False i = MsgBox("Updated Successfully", vbInformation) DataCombo1.Text = "" DataCombo1.Refresh End Sub
i = MsgBox("Cancel") DataCombo1.Text = "" DataCombo1.Refresh End Sub
Private Sub Command3_Click() Unload Me End Sub
Private Sub DataCombo1_Change() Adodc1.Recordset.MoveFirst Do While Adodc1.Recordset.EOF = False If DataCombo1.Text <> Label4.Caption Then Adodc1.Recordset.MoveNext Else Frame1.Visible = True Exit Sub End If Loop End Sub
Private Sub DataGrid1_KeyPress(KeyAscii As Integer) KeyAscii = 0 i = MsgBox("Data cannot be edited", vbCritical) End Sub
Private Sub Form_Load() Label1.Caption = "All Loan Type Information" Command1.Caption = "Exit" Adodc1.Visible = False End Sub
Page | 76
NEW LOAN PAGE
Private Sub Command1_Click() Label4.Visible = False Frame3.Visible = False Command1.Enabled = False Command2.Enabled = False Adodc3.Recordset.Update Adodc3.Refresh Frame1.Enabled = True DataCombo2.Enabled = True End Sub
Private Sub Command2_Click() Label4.Visible = False Frame3.Visible = False Command1.Enabled = False Command2.Enabled = False Frame1.Enabled = True DataCombo2.Enabled = True Adodc3.Recordset.CancelUpdate Adodc3.Refresh End Sub Private Sub Command3_Click() Unload Me End Sub
Private Sub DataCombo1_Change() Frame3.Visible = True Adodc1.Recordset.MoveFirst Do While Adodc1.Recordset.EOF = False Page | 77
If Text1.Text <> DataCombo1.Text Then Adodc1.Recordset.MoveNext Else Exit Sub End If Loop End Sub
Private Sub DataCombo2_Change() Dim new_loan_no As Integer If Adodc3.Recordset.EOF = False Then Adodc3.Recordset.MoveLast End If new_loan_no = Val(Label4.Caption) + 1 Adodc3.Recordset.AddNew Label4.Caption = new_loan_no Label4.Visible = True Text6.Text = Text1.Text Text2.Text = DataCombo2.Text DataCombo2.Enabled = False Frame1.Enabled = False Command1.Enabled = True Command2.Enabled = True End Sub Private Sub DTPicker1_Change() Text4.Text = DTPicker1.Value End Sub Private Sub DTPicker1_Click() Text4.Text = DTPicker1.Value End Sub
Private Sub Command1_Click() Adodc1.Recordset.MoveFirst If Text1.Text <> "" Then Do While Adodc1.Recordset.EOF = False If Text1.Text <> Label5.Caption Then Adodc1.Recordset.MoveNext Else Frame2.Visible = True Text1.SetFocus Exit Sub End If Loop i = MsgBox("No record found !", vbInformation) Text1.Text = "" Text1.SetFocus Else i = MsgBox("Enter valid Loan No. !", vbInformation) Text1.Text = "" Text1.SetFocus Exit Sub End If End Sub
Private Sub Command2_Click() Adodc1.Recordset.MoveFirst Page | 79
Adodc1.Refresh Frame2.Visible = False Frame1.Enabled = True i = MsgBox("Updated Successfully", vbInformation) Text1.Text = "" Text1.SetFocus End Sub
Private Sub Command3_Click() Adodc1.Recordset.CancelUpdate Adodc1.Refresh Frame1.Enabled = True Frame2.Visible = False Frame1.Visible = True i = MsgBox("Operation Cancelled", vbInformation) Text1.Text = "" Text1.SetFocus End Sub
Private Sub Command4_Click() Unload Me End Sub
Private Sub DataCombo1_Change() Frame1.Enabled = False Text2.Text = DataCombo1.Text End Sub
Private Sub DTPicker1_Change() Text4.Text = DTPicker1.Value End Sub
Private Sub DTPicker1_Click() Text4.Text = DTPicker1.Value End Sub
Private Sub Timer1_Timer() Label2.Caption = Date & " " & Time End Sub Page | 80
VIEW LOAN MENU
VIEW SINGLE LOAN PAGE
Page | 81
Private Sub Command1_Click() Adodc1.Recordset.MoveFirst If Text1.Text <> "" Then Do While Adodc1.Recordset.EOF = False If Text1.Text <> Label10.Caption Then Adodc1.Recordset.MoveNext Else Text1.SetFocus view_single_loan.Height = 6090 Exit Sub End If Loop i = MsgBox("No record found !", vbInformation) Text1.Text = "" Text1.SetFocus Else i = MsgBox("Enter valid Loan No. !", vbInformation) Text1.Text = "" Text1.SetFocus Exit Sub End If End Sub
Private Sub Timer1_Timer() Label2.Caption = Date & " " & Time End Sub
Page | 82
VIEW ALL LOANS PAGE
Private Sub Command1_Click() Unload Me End Sub
Private Sub Form_Load() Adodc1.Visible = False Command1.Caption = "Exit" Label1.Caption = "All Customer Loan Details" End Sub
Private Sub DataGrid1_KeyPress(KeyAscii As Integer) KeyAscii = 0 i = MsgBox("Data cannot be edited", vbCritical) End Sub
Page | 83
DELETE LOAN MENU
DELETE A LOAN PAGE
Dim id As Integer Private Sub Command1_Click() Adodc1.Recordset.MoveFirst If Text1.Text <> "" Then Do While Adodc1.Recordset.EOF = False If Text1.Text <> Label10.Caption Then Adodc1.Recordset.MoveNext Else If Val(Label12.Caption) = 0 Then i = MsgBox("This Loan Has Already Been Closed !", vbInformation) Text1.Text = "" Text1.SetFocus Exit Sub End If If Adodc2.Recordset.EOF = False Then Adodc2.Recordset.MoveLast End If id = Val(Text2.Text) + 1 Adodc2.Recordset.AddNew Text2.Text = id Text3.Text = Val(Label10.Caption) Text4.Text = Date Page | 84
del_single_loan.Height = 4830 Frame1.Enabled = False Exit Sub End If Loop i = MsgBox("No record found !", vbInformation) Text1.Text = "" Text1.SetFocus Else i = MsgBox("Enter valid Loan No. !", vbInformation) Text1.Text = "" Text1.SetFocus Exit Sub End If End Sub
Private Sub Command2_Click() Label12.Caption = "0" Adodc1.Recordset.MoveFirst Adodc2.Recordset.Update Adodc2.Refresh Frame1.Enabled = True i = MsgBox("Successfully Deleted !", vbInformation) Text1.Text = "" del_single_loan.Height = 2400 End Sub
Private Sub Command3_Click() Adodc2.Recordset.CancelUpdate Adodc2.Refresh Frame1.Enabled = True Text1.Text = "" del_single_loan.Height = 2400 End Sub Private Sub Command4_Click() Unload Me End Sub
Private Sub Command1_Click() Adodc2.RecordSource = "SELECT * FROM LOAN_DEL3 WHERE LOAN_NO=" & DataCombo1.Text Adodc2.Refresh If Adodc1.Recordset.RecordCount = 0 Then i = MsgBox("Enter valid Loan No. !", vbInformation) End If End Sub
Private Sub Command2_Click() Unload Me End Sub
Private Sub DataGrid1_KeyPress(KeyAscii As Integer) KeyAscii = 0 i = MsgBox("Data cannot be edited", vbCritical) End Sub
Private Sub Check1_Click() If Check1.Value = 1 Then Label12.Visible = True Text7.Visible = True Text7.SetFocus Command5.Visible = True Label13.Visible = False Command6.Visible = False Else Label13.Visible = True Command6.Visible = True Label12.Visible = False Text7.Visible = False Command5.Visible = False End If End Sub Page | 87
Private Sub Combo1_Click() Text3.Text = Combo1.Text End Sub
Private Sub Command1_Click() Adodc1.Recordset.MoveFirst Adodc1.Refresh Create_Locker.Height = 2475 i = MsgBox("Successfully Updated !", vbInformation) End Sub
Private Sub Command2_Click() Adodc1.Recordset.CancelUpdate Adodc1.Refresh Create_Locker.Height = 2475 Check1.Value = 0 End Sub
Private Sub Command4_Click() Unload Me End Sub
Private Sub Command5_Click() Adodc1.Refresh Adodc1.Recordset.MoveFirst If Text7.Text <> "" Then Do While Adodc1.Recordset.EOF = False If Text7.Text <> Label4.Caption Then Adodc1.Recordset.MoveNext Else If Text3.Text <> "UNUSED" Then i = MsgBox("This Locker is NOT AVAILABLE !", vbExclamation) Create_Locker.Height = 2475 Text7.Text = "" Text7.SetFocus Else Create_Locker.Height = 7290 Text7.Text = "" Text7.SetFocus End If Exit Sub End If Loop Else i = MsgBox("Enter valid Locker No !", vbExclamation) Text7.Text = "" Text7.SetFocus Exit Sub End If i = MsgBox("Locker not found !", vbInformation) Text7.Text = "" Text7.SetFocus End Sub
Private Sub Command6_Click() Adodc1.Refresh Adodc1.Recordset.MoveFirst Do While Adodc1.Recordset.EOF = False If Text3.Text <> "UNUSED" Then Adodc1.Recordset.MoveNext Else Create_Locker.Height = 7290 Exit Sub Page | 88
End If Loop i = MsgBox("No Empty Locker !", vbInformation) End Sub
Private Sub DataCombo1_Change() Text2.Text = DataCombo1.Text End Sub
Private Sub DTPicker1_Change() Text5.Text = DTPicker1.Value End Sub
Private Sub DTPicker1_Click() Text5.Text = DTPicker1.Value End Sub
Private Sub DTPicker2_Change() Text6.Text = DTPicker2.Value End Sub
Private Sub DTPicker2_Click() Text6.Text = DTPicker2.Value End Sub
Private Sub Form_Load() Label1.Caption = "Create A Locker" Label3.Caption = "Locker No. :" Label5.Caption = "Charge(Rs.) :" Label6.Caption = "Acc/No. :" Label7.Caption = "Status :" Label8.Caption = "Due Status :" Label9.Caption = "Valid From :" Label10.Caption = "Valid To :" Label11.Caption = "Locker No. according to customer's choice(Yes/No) :" Label12.Caption = "Enter Locker No. :" Label13.Caption = "Find Available :" Check1.Caption = "Yes" Timer1.Enabled = True Timer1.Interval = 100 Label2.Caption = Date & " " & Time Command1.Caption = "Save" Command2.Caption = "Cancel" 'Command3.Caption = "Add Another" Command4.Caption = "Exit" Command5.Caption = "Find" Command6.Caption = "Find" Text2.Text = "" Text5.Text = "" Text6.Text = "" Text7.Text = "" Create_Locker.Height = 2475 Frame1.Caption = "Details" Frame2.Caption = "" Label12.Visible = False Text7.Visible = False Command5.Visible = False With Combo1 .AddItem "Active" .AddItem "Pending" End With Adodc1.Visible = False Adodc2.Visible = False End Sub Page | 89
VIEW/FIND LOCKERS PAGE
Private Sub Command1_Click() Unload Me End Sub
Private Sub DataGrid1_KeyPress(KeyAscii As Integer) KeyAscii = 0 i = MsgBox("Data cannot be edited !", vbCritical) Text1.SetFocus End Sub
Private Sub Form_Load() Label1.Caption = "View/Find Lockers" Label3.Caption = "Enter Locker No. :" Command1.Caption = "Exit" Timer1.Enabled = True Timer1.Interval = 100 Label2.Caption = Date & " " & Time Adodc1.Visible = False Text1.Text = "" End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then Adodc1.RecordSource = "SELECT * FROM LOCKER3 WHERE LOCKER_NO=" & Val(Text1.Text) Adodc1.Refresh If Adodc1.Recordset.RecordCount = 0 Then i = MsgBox("Enter Valid Locker No. !", vbExclamation) Adodc1.RecordSource = "SELECT * FROM LOCKER3" Adodc1.Refresh End If Text1.Text = "" End If End Sub Page | 90
UPDATE LOCKER PAGE
Private Sub Combo1_Click() Text1.Text = Combo1.Text End Sub
Private Sub Command1_Click() Adodc1.Recordset.MoveFirst Adodc1.Refresh Update_Locker.Height = 2100 i = MsgBox("Successfully Updated !", vbInformation) DataCombo1.Text = "" DataCombo1.SetFocus End Sub
Private Sub Command2_Click() Adodc1.Recordset.CancelUpdate Adodc1.Refresh Page | 91
Update_Locker.Height = 2100 DataCombo1.Text = "" DataCombo1.SetFocus End Sub
Private Sub Command3_Click() Unload Me End Sub
Private Sub Command4_Click() If Adodc1.Recordset.BOF = False Then Adodc1.Recordset.MoveFirst End If Do While Adodc1.Recordset.EOF = False If DataCombo1.Text <> Label5.Caption Then Adodc1.Recordset.MoveNext Else Update_Locker.Height = 7000 DataCombo1.Text = "" DataCombo1.SetFocus Exit Sub End If Loop i = MsgBox("Enter Valid Locker No!!", vbExclamation) Update_Locker.Height = 2100 Adodc1.Refresh DataCombo1.Text = "" DataCombo1.SetFocus End Sub
Private Sub DataCombo1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then If Adodc1.Recordset.BOF = False Then Adodc1.Recordset.MoveFirst End If Do While Adodc1.Recordset.EOF = False If DataCombo1.Text <> Label5.Caption Then Adodc1.Recordset.MoveNext Else Update_Locker.Height = 7000 DataCombo1.Text = "" DataCombo1.SetFocus Exit Sub End If Loop i = MsgBox("Enter Valid Locker No!!", vbExclamation) Update_Locker.Height = 2100 Adodc1.Refresh DataCombo1.Text = "" DataCombo1.SetFocus End If End Sub
Private Sub DTPicker1_Change() Text3.Text = DTPicker1.Value End Sub
Private Sub DTPicker1_Click() Text3.Text = DTPicker1.Value End Sub
Private Sub Form_Load() Label1.Caption = "Update Locker Details" Label2.Caption = Date & " " & Time Page | 92
Command1.Caption = "Update" Command2.Caption = "Cancel" Command3.Caption = "Exit" Command4.Caption = "Find" Update_Locker.Height = 2100 Frame1.Caption = "Edit Details" Frame2.Caption = "" Adodc1.Visible = False Timer1.Interval = 100 Timer1.Enabled = True With Combo1 .AddItem "Active" .AddItem "Pending" .AddItem "Closed" End With End Sub
Private Sub Timer1_Timer() Label2.Caption = Date & " " & Time End Sub
Page | 93
UPDATE LOCKER DUES PAGE
Dim n As Integer
Private Sub Command1_Click() Dim d As Single Dim i As Integer Dim s As Integer Dim z As Integer For i = 0 To n - 1 DataGrid1.Row = i DTPicker1.Value = DataGrid1.Columns(3).Value DTPicker2.Value = Label1.Caption DTPicker3.Value = DataGrid1.Columns(4).Value d = DTPicker2.Value - DTPicker1.Value d = d / 365 z = DTPicker3.Value - DTPicker2.Value 'MsgBox z Page | 94
If d >= 1 And z > 0 Then s = 0.1 * DataGrid1.Columns(1).Value * d DataGrid1.Columns(2).Value = DataGrid1.Columns(2).Value + s DataGrid1.Columns(3).Value = DTPicker2.Value End If Next End Sub
Private Sub Command2_Click() Unload Me End Sub
Private Sub DataGrid1_KeyPress(KeyAscii As Integer) KeyAscii = 0 a = MsgBox("Data Cannot be Edited !", vbCritical) End Sub
Private Sub Form_Load() Label3.Caption = "Updating Dues" Timer1.Enabled = True Timer1.Interval = 100 Label1.Caption = Date Label2.Caption = Time Command1.Caption = "Update" Command2.Caption = "Exit" Adodc1.Visible = False DTPicker1.Visible = False DTPicker2.Visible = False DTPicker3.Visible = False n = Adodc1.Recordset.RecordCount End Sub
Page | 95
RELEASE CLOSED LOCKER PAGE
Private Sub Command1_Click() Adodc1.RecordSource = "SELECT * FROM LOCKER3 WHERE STATUS='Closed' AND LOCKER_NO=" & DataCombo1.Text Adodc1.Refresh DataCombo1.Text = "" DataCombo1.SetFocus If Adodc1.Recordset.RecordCount = 0 Then i = MsgBox("Enter valid Locker No. !", vbExclamation) Adodc1.RecordSource = "SELECT * FROM LOCKER3 WHERE STATUS='Closed'" Adodc1.Refresh DataCombo1.Text = "" DataCombo1.SetFocus Command2.Enabled = False Command3.Enabled = True Else Page | 96
Command2.Enabled = True Command3.Enabled = False End If End Sub Private Sub Command2_Click() DataGrid1.Row = 0 DataGrid1.Columns(2).Value = 0 DataGrid1.Columns(3).Value = "UNUSED" DataGrid1.Columns(4).Value = 0 DataGrid1.Columns(5).Value = "" DataGrid1.Columns(6).Value = "" Adodc1.Recordset.Update i = MsgBox("Succesfully Updated", vbInformation) Command2.Enabled = False Command3.Enabled = True Adodc1.RecordSource = "SELECT * FROM LOCKER3 WHERE STATUS='Closed'" Adodc1.Refresh DataCombo1.SetFocus If Adodc1.Recordset.RecordCount = 0 Then DataCombo1.Enabled = False Command1.Enabled = False Command3.Enabled = False End If End Sub
Private Sub Command3_Click() Dim n As Integer Dim i As Integer n = Adodc1.Recordset.RecordCount For i = 0 To n - 1 DataGrid1.Row = i DataGrid1.Columns(2).Value = 0 DataGrid1.Columns(3).Value = "UNUSED" DataGrid1.Columns(4).Value = 0 DataGrid1.Columns(5).Value = "" DataGrid1.Columns(6).Value = "" Next Adodc1.Recordset.Update i = MsgBox("Succesfully Updated", vbInformation) Adodc1.Refresh DataCombo1.SetFocus Command2.Enabled = False Command3.Enabled = False If Adodc1.Recordset.RecordCount = 0 Then DataCombo1.Enabled = False Command1.Enabled = False Command3.Enabled = False End If End Sub
Private Sub Command4_Click() Unload Me End Sub
Private Sub DataCombo1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then Adodc1.RecordSource = "SELECT * FROM LOCKER3 WHERE STATUS='Closed' AND LOCKER_NO=" & DataCombo1.Text Adodc1.Refresh DataCombo1.Text = "" DataCombo1.SetFocus If Adodc1.Recordset.RecordCount = 0 Then i = MsgBox("Enter valid Locker No. !", vbExclamation) Adodc1.RecordSource = "SELECT * FROM LOCKER3 WHERE STATUS='Closed'" Adodc1.Refresh Page | 97
DataCombo1.Text = "" DataCombo1.SetFocus Command2.Enabled = False Command3.Enabled = True Else Command2.Enabled = True Command3.Enabled = False End If End If End Sub
Private Sub DataGrid1_KeyPress(KeyAscii As Integer) KeyAscii = 0 a = MsgBox("Data Cannot be Edited !", vbCritical) End Sub
Private Sub Form_Load() Label1.Caption = "Release Closed Locker" Label3.Caption = "Enter Locker No. :" Timer1.Enabled = True Timer1.Interval = 100 Label2.Caption = Date & " " & Time Command1.Caption = "Find" Command2.Caption = "Release" Command3.Caption = "Release All" Command4.Caption = "Exit" Command2.Enabled = False If Adodc1.Recordset.RecordCount = 0 Then DataCombo1.Enabled = False Command1.Enabled = False Command3.Enabled = False End If Adodc1.Visible = False Adodc2.Visible = False End Sub
Page | 98
DD MENU
CREATE DD PAGE
Dim dd_no As Integer Dim chrg As Integer Dim a As Integer
Private Sub Combo1_Click() Text8.Text = Combo1.Text Text9.Text = "Active" Command1.Enabled = True If Combo1.Text = "Cheque" Then chrg = a + 10 Else If Combo1.Text = "Cash" Then chrg = a Else Page | 99
chrg = a + 20 End If End If Text7.Text = chrg End Sub
Private Sub Command2_Click() Adodc1.Recordset.CancelUpdate Adodc1.Refresh Command1.Enabled = False Command3.Enabled = True Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text7.Text = "" Text8.Text = "" Text9.Text = "" Label13.Caption = "" DTPicker1.Value = Date End Sub
Private Sub Command3_Click() Command3.Enabled = False Combo1.Enabled = True Command2.Enabled = True Text2.SetFocus Adodc1.Refresh If Adodc1.Recordset.EOF = False Then Adodc1.Recordset.MoveLast End If dd_no = Val(Label13.Caption) + 1 Adodc1.Recordset.AddNew Label13.Caption = dd_no DTPicker1.Value = Date Text6.Text = Date End Sub
Private Sub Command4_Click() Unload Me End Sub
Private Sub DTPicker1_Change() Text6.Text = DTPicker1.Value End Sub Page | 100
Private Sub DTPicker1_Click() Text6.Text = DTPicker1.Value End Sub
Private Sub Form_Load() Label1.Caption = "Demand Draft Details" Label2.Caption = Date Label3.Caption = Time Label4.Caption = "DD No. :" Label5.Caption = "Applicant's Name :" Label6.Caption = "Amount :" Label7.Caption = "Favour Of :" Label8.Caption = "Service Branch :" Label9.Caption = "Date :" Label10.Caption = "Charge :" Label11.Caption = "Mode Of Transfer :" Label12.Caption = "Status :" Command1.Caption = "Save" Command2.Caption = "Cancel" Command3.Caption = "Add Another" Command4.Caption = "Exit" Timer1.Interval = 100 Timer1.Enabled = True DTPicker1.Value = Date Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text7.Text = "" Text8.Text = "" Text9.Text = "" Adodc1.Visible = False Frame1.Caption = "Details" Text6.Visible = False Text8.Visible = False With Combo1 .AddItem "Cash" .AddItem "Cheque" .AddItem "Account" End With Command3.Enabled = False Command1.Enabled = False Adodc1.Refresh If Adodc1.Recordset.EOF = False Then Adodc1.Recordset.MoveLast End If dd_no = Val(Label13.Caption) + 1 Adodc1.Recordset.AddNew Label13.Caption = dd_no Text6.Text = Date End Sub
Private Sub Text3_LostFocus() z = 0.005 * (Val(Text3.Text)) Text7.Text = Round(z + 0.5) a = Val(Text7.Text) End Sub
Private Sub Timer1_Timer() Label2.Caption = Date Label3.Caption = Time End Sub
Page | 101
UPDATE DD PAGE
Dim n As Integer Private Sub Command1_Click() Dim dt As Integer Dim i As Integer For i = 0 To n - 1 DataGrid1.Row = i DTPicker1.Value = DataGrid1.Columns(1).Value DTPicker2.Value = Date dt = DTPicker2.Value - DTPicker1.Value If dt >= 181 Then DataGrid1.Columns(3).Value = "Invalid" End If Next Command1.Enabled = False End Sub
Private Sub Command2_Click() Unload Me End Sub
Private Sub Form_Load() Label1.Caption = "Update Demand Draft" Timer1.Interval = 100 Timer1.Enabled = True Label2.Caption = Date & " " & Time Command1.Caption = "Update" Command2.Caption = "Exit" Command1.Enabled = True Adodc1.Visible = False DTPicker1.Visible = False DTPicker2.Visible = False n = Adodc1.Recordset.RecordCount End Sub
Private Sub Timer1_Timer() Label2.Caption = Date & " " & Time End Sub Page | 102
VIEW/FIND DD PAGE
Private Sub Command1_Click() Unload Me End Sub
Private Sub Command2_Click() Adodc1.RecordSource = "SELECT * FROM DD3 WHERE STAT='Invalid'" Adodc1.Refresh Text1.Text = "" Text1.SetFocus If Adodc1.Recordset.RecordCount = 0 Then a = MsgBox("No Invalid DD is present!", vbInformation) Adodc1.RecordSource = "SELECT * FROM DD3" Adodc1.Refresh Text1.Text = "" Text1.SetFocus End If End Sub
Private Sub Command3_Click() Adodc1.RecordSource = "SELECT * FROM DD3 WHERE STAT='Cleared'" Adodc1.Refresh Text1.Text = "" Text1.SetFocus If Adodc1.Recordset.RecordCount = 0 Then a = MsgBox("No Cleared DD is Present!", vbInformation) Adodc1.RecordSource = "SELECT * FROM DD3" Adodc1.Refresh Page | 103
Text1.Text = "" Text1.SetFocus End If End Sub
Private Sub Command4_Click() Adodc1.RecordSource = "SELECT * FROM DD3 WHERE STAT='Cancel'" Adodc1.Refresh Text1.Text = "" Text1.SetFocus If Adodc1.Recordset.RecordCount = 0 Then a = MsgBox("No Cancelled DD is Present!", vbInformation) Adodc1.RecordSource = "SELECT * FROM DD3" Adodc1.Refresh Text1.Text = "" Text1.SetFocus End If End Sub
Private Sub Command5_Click() Adodc1.RecordSource = "SELECT * FROM DD3" Adodc1.Refresh Text1.Text = "" Text1.SetFocus End Sub
Private Sub DataGrid1_KeyPress(KeyAscii As Integer) KeyAscii = 0 i = MsgBox("Data cannot be edited !", vbCritical) Text1.SetFocus End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then Adodc1.RecordSource = "SELECT * FROM DD3 WHERE DD_NO=" & Val(Text1.Text) Adodc1.Refresh If Adodc1.Recordset.RecordCount = 0 Then i = MsgBox("Enter Valid DD No. !", vbExclamation) Adodc1.RecordSource = "SELECT * FROM DD3" Adodc1.Refresh End If Text1.Text = "" Text1.SetFocus End If End Sub
Private Sub Timer1_Timer() Label2.Caption = Date & " " & Time End Sub Page | 104
CLEAR/CANCEL DD PAGE
Dim c As Integer Page | 105
Dim chrg As Integer
Private Sub Combo1_Click() Text8.Text = Combo1.Text If Combo1.Text = "Cheque" Then chrg = c + 10 Else If Combo1.Text = "Cash" Then chrg = c Else chrg = c + 20 End If End If Text7.Text = chrg Command5.Enabled = True End Sub
Private Sub Command1_Click() If Adodc1.Recordset.BOF = False Then Adodc1.Refresh Adodc1.Recordset.MoveFirst End If Do While Adodc1.Recordset.EOF = False If Text1.Text <> Label5.Caption Then Adodc1.Recordset.MoveNext Else If Text9.Text <> "Active" Then a = MsgBox("This DD cannot be Cleared or Cancelled!", vbCritical) Text1.Text = "" Text1.SetFocus Exit Sub Else Clear_Cancel_DD.Height = 6570 Text1.Text = "" Text1.SetFocus Exit Sub End If End If Loop a = MsgBox("Enter Valid DD No.!!", vbCritical) Adodc1.Refresh Text1.Text = "" Text1.SetFocus End Sub
Private Sub Command2_Click() Adodc1.Recordset.MoveFirst Adodc1.Refresh Clear_Cancel_DD.Height = 1905 Clear_Cancel_DD.Width = 5670 a = MsgBox("DD Cleared!", vbInformation) Option1.Value = False Option2.Value = False Text1.Text = "" Text1.SetFocus End Sub
Private Sub Command3_Click() i = MsgBox("Do you want to Add Another DD?", vbYesNo) If i = vbNo Then Adodc1.Recordset.MoveFirst Adodc1.Refresh Clear_Cancel_DD.Height = 1905 a = MsgBox("DD Cancelled!", vbInformation) Page | 106
Text1.Text = "" Text1.SetFocus Option1.Value = False Option2.Value = False Exit Sub Else Clear_Cancel_DD.Width = 11325 Command5.Enabled = False Text1.Text = "" Text1.SetFocus End If If Adodc2.Recordset.EOF = False Then Adodc2.Recordset.MoveLast End If dd = Val(Label23.Caption) + 1 Adodc2.Recordset.AddNew Label23.Caption = dd Text2.Text = Label7.Caption Text3.SetFocus Text4.Text = Label11.Caption Text6.Text = Date DTPicker1.Value = Date Label32.Caption = "Active" Command2.Enabled = False Command3.Enabled = False Command4.Enabled = False Frame1.Enabled = False End Sub
Private Sub Command4_Click() Unload Me End Sub
Private Sub Command5_Click() Adodc1.Recordset.MoveFirst Adodc1.Refresh Adodc2.Recordset.Update Adodc2.Refresh Clear_Cancel_DD.Width = 5670 Clear_Cancel_DD.Height = 1905 i = MsgBox("Previous DD was Cancelled and New DD has been succesfully Updated!", vbInformation) Option1.Value = False Option2.Value = False Text1.Text = "" Text1.SetFocus Command2.Enabled = True Command3.Enabled = True Command4.Enabled = True Frame1.Enabled = True End Sub
Private Sub Command6_Click() Unload Me End Sub
Private Sub Command7_Click() Adodc1.Recordset.MoveFirst Adodc1.Refresh Adodc2.Recordset.CancelUpdate Adodc2.Refresh
i = MsgBox("Previous DD was Cancelled !", vbInformation) Clear_Cancel_DD.Width = 5670 Clear_Cancel_DD.Height = 1905 Page | 107
.AddItem "Account" End With Timer1.Interval = 100 Timer1.Enabled = True Label2.Caption = Date & " " & Time Clear_Cancel_DD.Width = 5760 Clear_Cancel_DD.Height = 1905 End Sub
Private Sub Option1_Click() If Option1.Value = True Then Text9.Text = Option1.Caption If Text9.Text <> "Cleared" Then Command3.Enabled = True Command2.Enabled = False Else Command2.Enabled = True Command3.Enabled = False End If Text1.SetFocus End If End Sub
Private Sub Option2_Click() If Option2.Value = True Then Text9.Text = Option2.Caption If Text9.Text <> "Cleared" Then Command3.Enabled = True Command2.Enabled = False Else Command2.Enabled = True Command3.Enabled = False End If Text1.SetFocus End If End Sub
Private Sub Text3_LostFocus() z = 0.005 * (Val(Text3.Text)) Text7.Text = Round(z + 0.5) c = Val(Text7.Text) End Sub
Page | 109
REPORTS MENU
TOTAL DEPOSIT MENU
TOTAL WITHDRAWAL MENU
CHEQUE USAGE MENU
CUSTOMER ACCOUNT DETAILS MENU
Page | 110
DEPOSIT 5 YEAR REPORT
Page | 111
DEPOSIT MONTH-WISE REPORT
Page | 112
WITHDRAWAL 5 YEAR REPORT
Page | 113
WITHDRAWAL MONTH-WISE REPORT
Page | 114
ACCOUNT STATS REPORT
Page | 115
A/C WISE CHEQUE REPORT
Page | 116
COMPARATIVE CHEQUE REPORT
Page | 117
DD REPORT
Page | 118
LOCKER REPORT
Page | 119
LOAN REPORT
Page | 120
CUSTOMER A/C REPORT
Page | 121
SELECTED CUSTOMER A/C REPORT
Page | 122
TRANSACTION REPORT
Page | 123
EMPLOYEE ATTENDANCE REPORT
Page | 124
LOGOUT MENU
Page | 125
FUTURE SCOPE
Insurance policies and the concept of debit or credit card are yet to cover. These facilities can be included with this banking system in future. Photo authentication of customers can also be included with this system. For superior customer service we can add a net banking system with this LAN based banking system where customer can make a direct interaction with this system.
Page | 126
BIBLIOGRAPHY
Software Engineering Principles And Practices by Deepak Jain Systems Analysis and Design by Igor Hawryskiewycz Software Engineering by Pressman www.vb6.us www.visualbasic.freetutes