0% found this document useful (0 votes)
62 views3 pages

Processing System

The document is a Visual Basic code for a banking control application that manages customer records, allowing users to add, update, delete, and navigate through records. It includes functionalities for depositing and withdrawing amounts, as well as searching for specific customer IDs. The application interacts with a database using ADODB connections and recordsets to perform operations on customer data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
62 views3 pages

Processing System

The document is a Visual Basic code for a banking control application that manages customer records, allowing users to add, update, delete, and navigate through records. It includes functionalities for depositing and withdrawing amounts, as well as searching for specific customer IDs. The application interacts with a database using ADODB connections and recordsets to perform operations on customer data.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Dim cn As New ADODB.

Connection
Dim rc As New [Link]
Private Sub cmdadd_Click()
clear
[Link]
[Link] = False
End Sub
Private Sub cmdupdate_Click()
rc(0) = [Link]
rc(1) = [Link]
rc(2) = [Link]
rc(3) = [Link]
rc(4) = [Link]
rc(5) = [Link]
rc(6) = [Link]
[Link]
ref
If [Link] Then
MsgBox "Record Modified", vbInformation, "Banking Control..."
Else
[Link] = True
MsgBox "Record Saved", vbInformation, "Banking Control..."
End If
End Sub
Private Sub cmdpre_click()
If Not [Link] Then
[Link]
[Link] = True
End If
[Link]
If [Link] Then [Link]
disp
End Sub
Private Sub cmdnext_Click()
If Not [Link] Then
[Link]
[Link] = True
End If
If [Link] Then [Link]
disp
End Sub
Private Sub cmdfind_Click()
If Not [Link] Then
[Link]
[Link] = True
End If
[Link]
On Error GoTo AD

FO = InputBox("Enter the Customer ID to Find", "Banking Controls...")


If FO = "" Then
Else
[Link] "id=""&FO&"""
disp
Exit Sub
AD:
MsgBox "NO RECORD FOUND", vbCritical, "Banking Control..."
End If
End Sub
Private Sub cmddelete_Click()
If Not [Link] Then
[Link]
[Link] = True
End If
If Not [Link] Then
b = MsgBox("Do you want to delete record", vbInformation + vbYesNo, "Banking
Control...")
If b = vbYes Then
[Link]
MsgBox "Record Deleted", vbInformation, "Banking Controls..."
End If
Else
MsgBox "No Records to delete", vbCritical, "Banking Controls..."
End If
ref
End Sub
Private Sub cmdwd_Click()
Dim p As New [Link]
wd = InputBox("Enter the Amount to withdraw...", "Banking Control...")
[Link] "select balance from pritto 1", cn, adOpenKeyset, adLockOptimistic
If wd <> "" Then
[Link] = Val([Link]) - Val(wd)
p(0) = Val([Link])
[Link]
End If
[Link]
ref
disp
End Sub
Private Sub cmddep_Click()
Dim p As New [Link]
d = InputBox("Enter the Amount to Deposit...", "Banking Control...")
[Link] "Select balance from pritto 1", cn, adOpenKeyset, adLockOptimistic
If d <> "" Then
[Link] = Val([Link]) + Val(d)
p(0) = Val([Link])
[Link]

End If
[Link]
ref
disp
End Sub
Private Sub form_Load()
[Link] "dsn=emp", "cse", "cse"
[Link] "select * from pritto", cn, adOpenKeyset, adLockOptimistic
If Not [Link] Then
[Link]
disp
End If
[Link] "Saving account"
[Link] "Current account"
End Sub
Private Sub disp()
[Link] = rc(0)
[Link] = rc(1)
[Link] = rc(2)
[Link] = rc(3)
[Link] = rc(4)
[Link] = rc(5)
[Link] = rc(6)
End Sub
Private Sub clear()
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
[Link] = ""
End Sub
Private Sub txtid_GotFocus()
'[Link]
End Sub
Private Sub ref()
[Link]
[Link] "select * from pritto 1", cn, adOpenKeyset, adLockOptimistic
End Sub
Private Sub txtamount_GotFocus()
If Not [Link] Then
[Link]
Else
[Link]
End If
End Sub

You might also like