Professional Documents
Culture Documents
SYSTEM MODEL
System Diagram -bank management system in vb 6.0 using ms access.
DATA MODEL
E-R Diagram
ER Diagram – System Diagram -bank management system in vb 6.0 using ms access.
Tables
Using the E-R Diagram we can create a relational model of the database.
It means we can create tables with the database. To create a new database
go to the Microsoft Access Database and create a new blank database. If
you have MS Access 2007 or Higher save the database
with (.mdb) extension. Otherwise, Visual Basic 6 may not recognize the
database file.
Create three four tables within the database with appropriate data-types
given in the following figures.
Advertisements
Bran
ch Table – Bank Management System
Cust
omer Table – Bank Management System
Tran
saction Table – Bank Management System
Emp
loyee Table – Bank Management System
MODULES AND FORMS
The modules used in this application are given below
frmBankManagement
frmLogin
frmMENU(MDI Form)
frmBranch
frmCustomer
frmEmployee
frmTransaction
Module1.bas
Components of frmBankManagement
Name : cmdLogin
Caption : LOGIN
Unload Me
frmLogin.Show
End Sub
Components of frmLogin
Name : txtUserID
Text : 'leave blank'
Name : txtPassword
Text : Password
Buttons
Name : cmdLogin
Caption : Login
Name : cmdCancel
Caption : Cancel
Option Explicit
LoginSucceeded = False
Me.Hide
End Sub
Else
MsgBox "Invalid Password, try again!", ,
"Login" txtPassword.SetFocus
SendKeys "{Home}+{End}"
Exit Sub
End If
Wend
rs.Close
rec.Close
End Sub
Name : lblBID
Caption : BRANCH ID
Name : lblBcode
Caption :BRANCH CODE
Caption :BRANCH CODE
Name : lblLocation
Caption : LOCATION
Name : lblTotEmp
Caption : TOTAL EMPLOYEE
Text-boxes
Name: txtBID
Text : 'leave blank'
Name : txtBcode
Text : 'leave blank'
Name : txtLocation
Text : 'leave blank'
Name : txtTotEmp
Text : 'leave blank'
Buttons
Name : cmdAdd
Caption : &ADD
Name : cmdDel
Caption : &DELETE
Name : cmdUpdate
Caption: &UPDATE
Name : cmdDisplay
Caption : &DISPLAY
Name : cmdClr
Caption : &CLEAR
Name : cmdExit
Caption : &EXIT
DataGrids
Advertisements
Name : DataGrid1
total = rs.Fields(0).Value
End Sub
End Sub
End Sub
rs.CursorLocation = adUseClient
Set DataGrid1.DataSource = rs
End Sub
End Sub
total = rs.Fields(0).Value
End Sub
Call loadcon
End Sub
Components of frmCustomer
Form Customer Details – Bank Management System
Labels
Name :lblAno
Name :lblAname
Name : lblAddress
Caption : BALANCE
Name : lblBrankID
Caption : BRANCH ID:
Text-Boxes
Name : txtAno
Name : txtAname
Name : txtAddress
Name : txtBalance
Name : txtBID
Buttons
Name : cmdAdd
Caption : &ADD
Name : cmdDel
Caption : &DELETE
Name : cmdClr
Caption : &CLEAR
Name : cmdExit
Caption : &EXIT
Name : cmdUPDATE
Caption : &UPDATE
Name : cmdDisplay
Caption : &DISPLAY
Code for frmCustomer
End Sub
txtAno = ""
txtAname = ""
txtAddress = ""
txtBalance = ""
txtBID = ""
End Sub
End Sub
Unload Me
con.Close
End Sub
End Sub
Caption : EID
Name : lblEname
Name : lblDesig
Caption : DESIGNATION
Name : lblSalary
Caption : SALARY
Name : lblWeekoff
Caption :WEEKOFF
Name : lblBranchID
Caption : BRANCH ID
Text-boxes
Name : txtEID
Name : txtEname
Name : txtDesig
Name ; txtSalary
Name : txtWeekoff
Name : txtBID
Buttons
Name : cmdAdd
Caption : &ADD
Name : cmdDel
Caption : &DELETE
Name : cmdUpdate
Caption : &UPDATE
Name : cmdDisplay
Caption : &DISPLAY
Name : cmdClr
Caption : &CLEAR
Name : cmdExit
Caption : &EXIT
DataGrid
Name : DataGrid 1
End Sub
txtEID = ""
txtEname = ""
txtDesig = ""
txtSalary = ""
txtWeekoff = ""
txtBID = ""
End Sub
txtEID = ""
End Sub
End Sub
Unload Me
con.Close
End Sub
End Sub
Private Sub Form_Load()
loadcon
End Sub
Components of frmTransaction
Name : lblBID
Caption : BRANCH ID
Name :lblAno
Caption : ACCOUNT NO
Name : lblWDraw
Caption : WITHDRAW
Name : lblDEPOSIT
Caption : lblDeposit
Name : lblDate
Caption : DATE
Text-boxes
Name : txtTID
Name ; txtBID
Name : txtAno
Name : txtWDraw
Name : txtDeposit
Name : txtDate
Buttons
Name : cmdAdd
Caption : &ADD
Name : cmdDel
Caption : &DELETE
Name : cmdUpdate
Caption : &UPDATE
Name : cmdDisplay
Caption : &DISPLAY
Name : cmdClr
Caption : &CLEAR
Name : cmdExit
Caption : &EXIT
Data Grids
Name : Data Grid 1
End Sub
txtTID = ""
txtBID = ""
txtAno = ""
txtWDraw = ""
txtDeposit = ""
txtDate = ""
End Sub
End Sub
End Sub
End Sub
Private Sub Form_Load()
Call loadcon
MsgBox ("connected")
End Sub
frmBranch
frmCustomer
frmEmployee
frmTransaction
Go to the property of each form and set the MDI Child to ‘True’.