Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
0 with MS Access
The bank management system in vb 6.0 using ms access. must do the following tasks.
E-R Diagram
Create three four tables within the database with appropriate data-types given in
the following figures.
(A) frmBankManagement
(B) frmLogin
(C) frmMENU [MDI Form]
(D) frmBranch
(E) frmCustomer
(F) frmEmployee
(G) frmTransaction
Components of frmBankManagement
FORM -bank management system in vb 6.0 using ms access.
FORM -bank management system in vb 6.0 using ms access.
Labels:
Name : lblBankManagement
Buttons:
Name : cmdLogin
Caption : LOGIN
Unload Me
frmLogin.Show
End Sub
C#Copy
Components of frmLogin
Form Login - Bank Management System
Form Login � Bank Management System
Labels
Name : lblUserID
Caption : UserID:
Name : lblPassword
Caption : Password:
Text-boxes
Name : txtUserID
Name : txtPassword
Text : Password
Buttons
Name : cmdLogin
Caption : Login
Name : cmdCancel
Caption : Cancel
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
Name : lblBcode,/p>
Name : lblLocation
Caption : LOCATION
Name : lblTotEmp
Text-boxes
Name: txtBID
Name : txtBcode
Name : txtLocation
Name : txtTotEmp
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
Name : DataGrid1
total = rs.Fields(0).Value
End Sub
End Sub
End Sub
rs.CursorLocation = adUseClient
rs.Open "SELECT * FROM Branch",
con, adOpenDynamic, adLockPessimistic
Set DataGrid1.DataSource = rs
End Sub
Unload Me
con.Close
End Sub
total = rs.Fields(0).Value
End Sub
Call loadcon
End Sub
C#Copy
Components of frmCustomer
Form Customer Details - bank management system in vb 6.0 using ms access.
Form Customer Details � Bank Management System
Labels
Name :lblAno
Name :lblAname
Name : lblAddress
Caption : BALANCE
Name : lblBrankID
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
End Sub
txtAno = ""
txtAname = ""
txtAddress = ""
txtBalance = ""
txtBID = ""
End Sub
End Sub
End Sub
Unload Me
con.Close
End Sub
End Sub
Name : lblEID
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
loadcon
End Sub
C#Copy
Components of frmTransaction
Form Transaction - Bank Management System
Form Transaction � Bank Management System
Labels
Name : lblTID
Caption : TRANSACTION ID
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
Call loadcon
MsgBox ("connected")
End Sub
C#Copy
frmMENU [ MDI Form ]
The MDI form is that form which has MENU and when you click on any one of the menu
item, it opens up another MDI Child form.
We will set MDI Child property for following forms
frmBranch
frmCustomer
frmEmployee
frmTransaction
Go to the property of each form and set the MDI Child to �True�.
Set MDI Child to True
Set MDI Child to True
Under Project 1 , [Right Click] the Forms > [Click] Add > [Click] MDI Form.
Create MDI Form
Create MDI Form
Configure Menu using the Menu Editor in MDI Form and write appropriate code for the
form.
frmTransaction.Show
End Sub
C#Copy
Code for Module1.Bas
Most of the forms in the application need to connect to the database, so you may
have to write code for connectivity with Microsoft Access Database repeatedly in
each form.
Instead of writing the code for connectivity in each form, we write it once in a
Module and call the function from the form. In this way, we save time to write the
same code many times.
Note; To know more about creating a new Module go to one of the previous Visual
Basic 6 posts.