Atm Bank Mgt
-
Upload
mohammed-rashid -
Category
Documents
-
view
228 -
download
1
Transcript of Atm Bank Mgt
-
8/3/2019 Atm Bank Mgt
1/60
A t m
AUTOMATION
1
-
8/3/2019 Atm Bank Mgt
2/60
ABOUT PROJECT
Automation of ATM:
The project has been developed using Visual Basic as Back End and MS-Access and
the front End. It deals with ATM Banking. For any bank and atomatic teller machine
would be necessary since banks would not be open 24 hourse. In order to help the
account holder to either withdraw the money or to even deposit the money during
anytime of the day and ATM would cater to the needs. The ATM has facilities to
withdraw and deposit the money during anytime of the day ie 24 hours even if the
bank is closed. Maintenance of the account holders details, his minimum balance and
current balance and would be an important factor and needs to be updated in his
account immediately after every transaction takes place. Also the system should be
able to indicate whether the account holder is having minimum balance or not when
ever the account holder tries to withdraw amount exceeding the amount.
Hence the automation of the ATM system caters to the need of customer who do
transactions 24 hours even when the bank is closed. Here ATM automation is done
for Bank.
The automated ATM system would have the following facilities:
1. Add a new account holder:
1. Maintain the details of the customer and view the records of customers.
The administrator can only carry out this job of creating new account holders and and
maintaining their personal details. No other user can access this part of the system.
When adding new account holders for new customer, simply select administrator from
the menu. And by entering the password the new account holder entry form appears.
A new account number code will be provided by the Automated ATM system. All
necessary information regarding the new account holder may be entered. Simply
follow all instructions displayed on screen to perform the operation.
2
-
8/3/2019 Atm Bank Mgt
3/60
2. Account Holder
If an account holder wants to carry out the transactions he may first enter his account
number provided to him and then enter the pass word and then enter the transaction
form. The transaction form contains various operations like:withdraw, deposit, status,
details, back to main screen and logout.
1. Withdraw: An Account Holder may perform the operation of withdraw by
clicking on the respective button. Immediately another option which asks the
account holder to enter the amount of withdrawal is displayed. account holder
the enter the withdrawal amount and the checking whether there is minimum
balance of rupees 5000 and the current balance are checked by the system. The
transaction of withdrawal is completed only if the conditions are satisfied ie.,
the minimum balance should be 5000 rupees and the withdrawal amount must
not exceed the current balance.
2. Deposit: The account holder may deposit any amount in to his account by
clicking the deposit button when the system asks the account holder to deposit
the amount in to his account and then by clicking the ok button the transaction
is completed.
3. Status: This displays the account holders information like: his id balance,
minimum balance and the account type at any given time. This helps the
account holder to keep track of hyis current balance details at any given time.
4. details: This displays the account holders number, name, address, phone
email id, current balance, minimum balance and the account type at any given
time.
5. Back: This leads the account holder to the previous login option.
6. Logout: The account holder may logout at any given time during the
operation.
3
-
8/3/2019 Atm Bank Mgt
4/60
OVERVIEW OF THE WORKING PLACE
Computer Lab
To provide excellent knowledge of the latest technology, Reliance
Computers, J.P. Nagar has a well-equipped computer laboratory. It has got thirty
Pentium III Computers all networked using cat 5 cables. Also, the lab has server
room which contains one Windows NT Server, one Linux Server and one Backup
Domain Controller.
4
-
8/3/2019 Atm Bank Mgt
5/60
SYNOPSIS
Title of the project: AUTOMATION OF ATM Bank
Object of the project:
TO AUTOMATE THE ATM SYSTEM OF BANK
The project has been developed using Visual Basic as Back End and MS-Access and
the front End. It deals with ATM Banking. For any bank and atomatic teller machine
would be necessary since banks would not be open 24 hourse. In order to help the
account holder to either withdraw the money or to even deposit the money during
anytime of the day and ATM would cater to the needs. The ATM has facilities to
withdraw and deposit the money during anytime of the day ie 24 hours even if the
bank is closed. Maintenance of the account holders details, his minimum balance and
current balance and would be an important factor and needs to be updated in his
account immediately after every transaction takes place. Also the system should be
able to indicate whether the account holder is having minimum balance or not when
ever the account holder tries to withdraw amount exceeding the amount.
5
-
8/3/2019 Atm Bank Mgt
6/60
SYSTEM ANALYSIS AND DESIGN (SAD)
In business, SAD refers to the process of examining a business situation with
the intent of improving it through better procedures and methods.
OVERVIEW OF SAD:
System development mainly consists of two major components, System
analysis and System design. System Design is the process of planning a new
business system or one to replace the existing or a complement system.
But before planning is done, the process of understanding the old system and
to determine the best use of the computer is an exercise, which is available. System
analysis is the process of gathering interpreting facts, diagnosing the problem and
using information to recommend improvements to the system.
THE SYSTEM DEVELOPMENT LIFE CYCLE CONSISTS OF THE
FOLLOWING ACTIVITIES:
Preliminary investigation
Requirement determination
Feasibility study
Design of the system
Software development
Software testing
Implementation and evaluation
6
-
8/3/2019 Atm Bank Mgt
7/60
7
SSystem lifecycleInvestigation
nalysis
Feasibility
Design
Development
Maintenance
Evaluation
Implementation
Testing
-
8/3/2019 Atm Bank Mgt
8/60
EXISTING SYSTEM
Place of Data collection: Reliance Computers
No. 456, I Floor,
9th Cross, 80 Feet road,
2nd Phase, J.P. Nagar
Bangalore-560078.
Date of Data Collection: 25-November-2004
Methods used for data collection
Interview and observations of existing system (manual system).
Observations made during problem analysis
We found that the records maintained contained redundant data, which could be
eliminated through computerized system.
Access to particular database is time consuming and difficult.
Updating any one database would have to be manually reflected in all other related
databases. So automatic updating was not possible throughout the database.
Report generation and querying is tedious and time consuming.
Security was not viable and safe i.e., high risk of manipulation by unauthorized user
existed.
Various objects/entities existing and their relationships were identified.
8
-
8/3/2019 Atm Bank Mgt
9/60
PROBLEM DEFINITION
Presently in the manual system, it is difficult to maintain all records. The
records maintained, contained redundant data, which could be eliminated through
computerized system. Access to particular database is time consuming and tedious.
Moreover, updating any one database would have to be manually reflected in
all other related databases. So automatic updating was not possible throughout the
database.
Report generation and querying is tedious and time consuming. Security was
not viable and safe i.e. high risk of manipulation by unauthorized user is there.
PROPOSED SYSTEM
We observed many defects in the existing manual system, which also lacked
many features. The proposed system aims at eliminating all problems observed in the
existing system, during system analysis phase. The proposed system will accept the
account holders number, check for validity and allow him to carry out transactions
like deposit and withdrawal of amount. The account holder will not be able to
withdraw unless he maintains the necessary balance. The administrator may create
new accounts for new account holders.
OBJECTIVES:-
Eliminating data redundancy and improving system deficiency.
Easy and quick access to database and easy updating.
Effective and fast report generation.
Reliable and no risk security features.
User friendliness.
9
-
8/3/2019 Atm Bank Mgt
10/60
-
8/3/2019 Atm Bank Mgt
11/60
DATA DICTIONARY
DATA STORES
Tyre Sales database
11
-
8/3/2019 Atm Bank Mgt
12/60
SYSTEM DESIGN
A computer procedure is a series of operations designed to manipulate data to
produce a computer system. The procedure may be a single program or a sequence of
programs.
The detailed design of the computer procedure follows acceptance by
management of an outline design proposal. The aim now is to design procedure at
lower levels of detail, which will define the detailed steps, to be taken to produce
definitions together with data specifications for programmers for which requires
programs can be written.
Design Tools
System analysts use various tools to specify compute procedures. Not all of
them are used to design this project. Some of the design tools used are:
1. Input Design
2. Error avoidance and Detection
3. Output Design
Input Design
Input design is a part of overall system design, which requires careful
attention. Often the collection of input data is the most expensive process of the
system. One of the early activities of input design is to determine the nature of the
input data. If data going into the system is incorrect, then the processing and the
output will magnify the errors.
One of the early activities of input design is to determine the nature of the
input data. This is done partially in logical system design but it now needs to make
more explicit.
12
-
8/3/2019 Atm Bank Mgt
13/60
Integrated Business Management
Error avoidance and detection
Every effort must be made to ensure that input data remains accurate from the
stage at which it is recorded and documented to the stage of acceptance. While every
effort is made to avoid errors during the presentation of input data, a proportion of
errors are likely to be present. This project Integrated Business Management
restricts user from entering erroneous data.
Data Validation
Computer input procedures must also be designed to detect errors in the data
at a lower level of detail that is beyond the capability of the control procedures. These
are combined with the design of the input process itself.
The validation procedures must be designed to check each record, data item or
field against certain criteria specified by the systems analysts or the programmer.
Each type or record had codes to be checked for acceptability.
Output Design
Outputs from computer systems are required primarily to communicate the
results of processing to users. They are also used to provide a permanent copy of
these results for later consultation. Any data not yet defined must be identified and
recorded before any output design can proceed. The outputs can be in the form of
operational documents, reports, and replies to queries or summarizing graphs.
13
-
8/3/2019 Atm Bank Mgt
14/60
OPERATIONAL DEFINITIONS AND CONCEPTS:
CONNECTION:
A connection according to Visual Basic is a link that is created between a
connection object and the database so as to bring the data from the backend to the
front-end application.
CONNECTION OBJECT:
A connection object is an object which establishes a connection to the
database be it a local file or a remote SQL server.
COMMAND OBJECT:
A command object is an object, which executes commands against the
database and is basically used to manipulate the data present.
ADO CONNECTIVITY:
We create a connection to a data source by setting the connection property of
the ADO data control. The property specifies the type and location of the database
and that we need to access.
RECORD SET:
The object holds the results of execution of the command object on a database.
Record sets can be created without any explicit Connection. The record set is a set of
records, which is connected to the database by the record set object.
DATA ENVIRONMENT:
The Data Environment Active X designer has helped us to design a connection
and command hierarchy with points and click operations. The records retrieved by the
command object can be dropped on a form where they are mapped to data bound
controls.
14
-
8/3/2019 Atm Bank Mgt
15/60
DATA REPORT:
Generating hierarchical multi-page reports with running totals (such as report
for the data retrieved by the command hierarchy) and the data report designer does
print them properly.
PESSIMISTIC LOCKING:
Pessimistic locking is a sure but very restricted method with pessimistic
locking all the pages that contain the records we have requested are locked. No one
else can modify them. (But they can read them)
RECORD COUNT:
The no of records retrieved is returned by the record count property.
TABLE:
Table is a set of records.
ENTITY:
The basic object that the E-R Model represents is an Entity, which is a thing in
the real world with an independent existence.
ATTRIBUTES:
A property that describes an entity is an attribute.
DATABASE:
Database is a data repository, which contains the set of inter- related data
items.
PRIMARY KEY:
A candidate key whose values are used to identify tuples in a relation is known
as primary key. Each primary key value for a record is unique in nature.
15
-
8/3/2019 Atm Bank Mgt
16/60
MEHODOLOGY OF STUDY
The methodology of study applied is Prototyping model.
This model suggests that a prototype of the existing system was prepared along
with the code design and testing but each of this phases is was not done thoroughly.
After the approval of the client the actual development of the software began and
tested for its accuracy.
16
-
8/3/2019 Atm Bank Mgt
17/60
SYSTEM DEVELOPMENT
HARDWARE CONFIGURATION:
The following is the configuration of the system used to develop the software:
1.Processor : Pentium II
2.Memory : 64 MB RAM
3.Frequency : 533 MHz
4.Hard Disk : 10.2 GB
5.Keyboard : Samsung
6.Mouse : Logitech
The following is the required configuration to run the software:
1.Processor : 486
2.Memory : 16 MB RAM
3.Frequency : 100 MHz
4.Hard Disk : 1.2 GB
5.Keyboard : Any Type
6.Mouse : Any Type
17
-
8/3/2019 Atm Bank Mgt
18/60
OPERATING SYSTEM:
Windows NT Client Workstation
SOFTWARE SPECIFICATION
Platform : Windows 98
Front End : Visual Basic 6.0
Back End : MS-Access
VISUAL BASIC
Microsoft visual basic 6.0 is a front-end graphical user interface tool used to
design user-friendly packages, run on Microsoft Windows 95 and windows 98. Visual
basic is very easy to use. Many of the features that is difficult to program in other
languages practically easy in Visual Basic.
What Visual Basic can do?
* Incorporate standard windows user-interface elements such as windows, menus,
buttons, scroll bars, and so on.
* Create, read and write to text, database and binary files.
* Read Windows Bitmaps, Metafiles and PC Paint Brush documents.
* Address database in formats such as SQL, Microsoft access and others.
18
-
8/3/2019 Atm Bank Mgt
19/60
ACCESS
ACCESS is the acronym for relational Database Management System. We
know the concept of Relational Database only since 1980's. But the idea of the
database Management System is definitely quite old. The most prominent RDBMS
packages are ORACLE, SYBASE. A DBMS stores, processes and retrieves data. A
Relational Database is a collection of related data.
Data storage in a computerized system in every business enterprise maintains
large volumes of data for its operations. With more and more people accessing this
data for their work the need to maintain its integrity and relevance increase. Normally,
with the tradition methods of storing data and information in files the changes that the
data uses its integrity and validity are very high.
It is a relational database management systems (RDBMS). It offers the
capabilities of relational systems. The database server or backend is used to managed
data base tables optimally among multiple clients use concurrently request the server
for the same data it also enforces data integrity across all client applications and
controls data base access the other security requirements.
INTERNAL DATA TYPES:-
Char Data Type:- The Char data type can store alphanumeric values.
Varchar2 Data Type:- The Varchar2 data type can store alphanumeric values.
Long Data Type:- Its length would be restricted based on memory space available in
the computer.
Number Data Type:- The number data type can store positive numbers, negative,
zeros, fixed point numbers and floating point numbers.
19
-
8/3/2019 Atm Bank Mgt
20/60
SYSTEM TESTING AND IMPLEMENTATION
Testing and Debugging
To ensure that the system works properly, the programs will have to undergo
several process of testing. Testing of the computerization system is one of the crucial
periods. The program designed and written may be syntactically and semantically
correct but logically incorrect or may be in another order. The programs may work
well for some time but will be faced by lots of bugs floating hence giving trouble to
the user. It is therefore recommended to remove the maximum of those bugs as
possible. This can be achieved by carrying out particular a series of testing to ensure
the perfect running of the system.
System Testing
After the link testing, the application will be tested with real-life data. The
system testingwill be accomplished with the help of the user. Hence, the remaining
bugs will be completely removed. Some realistic data will be placed in the master file
and the testing will be carried out.
Input Screen design
20
-
8/3/2019 Atm Bank Mgt
21/60
21
-
8/3/2019 Atm Bank Mgt
22/60
22
-
8/3/2019 Atm Bank Mgt
23/60
23
-
8/3/2019 Atm Bank Mgt
24/60
24
-
8/3/2019 Atm Bank Mgt
25/60
25
-
8/3/2019 Atm Bank Mgt
26/60
26
-
8/3/2019 Atm Bank Mgt
27/60
27
-
8/3/2019 Atm Bank Mgt
28/60
28
-
8/3/2019 Atm Bank Mgt
29/60
-
8/3/2019 Atm Bank Mgt
30/60
30
-
8/3/2019 Atm Bank Mgt
31/60
31
-
8/3/2019 Atm Bank Mgt
32/60
32
-
8/3/2019 Atm Bank Mgt
33/60
33
-
8/3/2019 Atm Bank Mgt
34/60
Coding
Private Sub admin_Click()
Form9.Show
Unload Form2
Unload Form3
Unload Form4
Unload Form5
Unload Form6
Unload Form7
Unload Form1
End Sub
Private Sub ext_Click()
End
End Sub
Private Sub MDIForm_Load()
'admin.Enabled = False
mi.Enabled = False
mu.Enabled = False
mtst.Enabled = False
mts.Enabled = False
mww.Enabled = False
mds.Enabled = False
mng.Enabled = False
End Sub
Private Sub mds_Click()
Form4.Show
Unload Form2
Unload Form3
Unload Form1
Unload Form5
Unload Form6
34
-
8/3/2019 Atm Bank Mgt
35/60
Unload Form7
Unload Form8
End Sub
Private Sub mi_Click()
MDIForm1.mi.Enabled = False
MDIForm1.mu.Enabled = False
MDIForm1.mtst.Enabled = False
MDIForm1.mts.Enabled = False
MDIForm1.mww.Enabled = False
MDIForm1.mds.Enabled = False
MDIForm1.mng.Enabled = False
Form1.Show
Unload Form2
Unload Form3
Unload Form4
Unload Form5
Unload Form6
Unload Form7
Unload Form8
End Sub
Private Sub mng_Click()
Form7.Show
Unload Form2
Unload Form3
Unload Form4
Unload Form5
Unload Form6
Unload Form1
Unload Form8
End Sub
35
-
8/3/2019 Atm Bank Mgt
36/60
Private Sub mts_Click()
Form5.Show
Unload Form2
Unload Form3
Unload Form4
Unload Form1
Unload Form6
Unload Form7
Unload Form8
End Sub
Private Sub mtst_Click()
Form3.Show
Unload Form2
Unload Form1
Unload Form4
Unload Form5
Unload Form6
Unload Form7
Unload Form8
End Sub
Private Sub mu_Click()
Form2.Show
Unload Form1
Unload Form3
Unload Form4
Unload Form5
Unload Form6
Unload Form7
Unload Form8
End Sub
Private Sub mww_Click()
36
-
8/3/2019 Atm Bank Mgt
37/60
Form6.Show
Unload Form2
Unload Form3
Unload Form4
Unload Form5
Unload Form1
Unload Form7
Unload Form8
End Sub
Dim sd As Boolean
Dim db As Database
Private Sub Command1_Click()
'On Error GoTo abc
Data1.DatabaseName = App.Path & "\atm.mdb"
Data1.RecordSource = "select * from user_identi where user_id='" & Text1.Text &
"'"
Data1.Refresh
sd = True
Dim s As String
s = Text1.Text
If Data1.Recordset.EOF Then
MsgBox "Your ID doesn't found", vbCritical, "Warning"
Text1.SetFocus
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
Exit Sub
Else
Form2.Label1.Caption = Data1.Recordset("user_name")
Form2.Show
37
-
8/3/2019 Atm Bank Mgt
38/60
Me.Hide
SendKeys "{Home}+{End}"
End If
End Sub
Private Sub Command3_Click()
End
End Sub
Private Sub Command4_Click()
End
End Sub
Private Sub Form_GotFocus()
MDIForm1.mi.Enabled = False
MDIForm1.mu.Enabled = False
MDIForm1.mtst.Enabled = False
MDIForm1.mts.Enabled = False
MDIForm1.mww.Enabled = False
MDIForm1.mds.Enabled = False
MDIForm1.mng.Enabled = False
End Sub
Private Sub Form_Load()
Set db = OpenDatabase(App.Path & "\atm.mdb")
Text1.Text = ""
'da.Open "dsn=sachin;server=matrix;uid=sachin;pwd=dhillan"
End Sub
Private Sub Form_Unload(Cancel As Integer)
'If sd = True Then rd.Close
'da.Close
End Sub
38
-
8/3/2019 Atm Bank Mgt
39/60
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Call Command1_Click
End If
End Sub
Private Sub Text1_LostFocus()
Text1.Text = UCase(Left(Text1.Text, 1)) & Mid(Text1.Text, 2)
ad = Text1.Text
End Sub
Dim db As Database
Dim res As Recordset
Dim rd, unf As Recordset
Dim da, con As Connection
Dim a As Integer
Private Sub Command1_Click()
If Text1.Text = "" Then
Text1.SetFocus
MsgBox "Please Enter a Password", vbInformation, "Warning"
Exit Sub
ElseIf Text2.Text = "" Then
Text2.SetFocus
MsgBox "Please Enter a Password", vbInformation, "Warning"
Exit Sub
ElseIf Text3.Text = "" Then
Text3.SetFocus
MsgBox "Please Enter a Password", vbInformation, "Warning"
Exit Sub
End If
Dim s As String
s = Form1.Text1.Text
Data1.DatabaseName = App.Path & "\atm.mdb"
39
-
8/3/2019 Atm Bank Mgt
40/60
Data1.RecordSource = "select * from user_identi where user_ID='" & s & "'"
Data1.Refresh
If Data1.Recordset.NoMatch Then
MsgBox "Doesn't Exit ", vbInformation, "Warning"
Exit Sub
End If
If Data1.Recordset(4) Text1.Text Then
a = a + 1
If a = 1 Then
b = MsgBox("Please Enter a Corect Password", , "Login......")
Text1.SetFocus
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
ElseIf a = 2 Then
b = MsgBox("Please Enter a Corect Password", , "Login")
Text1.SetFocus
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
ElseIf a = 3 Then
a = MsgBox("Hey user" & vbCrLf & "Don't be Over Smart", , "Login")
End
End If
ElseIf Data1.Recordset(4) = Text1.Text Then
Text1.Text = ""
Form7.Show
MDIForm1.mi.Enabled = True
MDIForm1.mu.Enabled = True
MDIForm1.mtst.Enabled = True
MDIForm1.mts.Enabled = True
MDIForm1.mww.Enabled = True
MDIForm1.mds.Enabled = True
MDIForm1.mng.Enabled = True
Unload Me
End If
40
-
8/3/2019 Atm Bank Mgt
41/60
End Sub
Private Sub Command2_Click()
Text1.SetFocus
Command3.Visible = True
Label3.Visible = True
Label4.Visible = True
Text2.Visible = True
Text3.Visible = True
Text1.Text = ""
Text2.Text = ""
Text2.PasswordChar = "+"
Text3.Text = ""
Text3.PasswordChar = "+"
End Sub
Private Sub Command3_Click()
If Text1.Text = "" And Text2.Text = "" And Text3.Text = "" Then
Beep
MsgBox ("First Enter your Password")
Text1.SetFocus
Exit Sub
End If
If Text2.Text Text3.Text Then
MsgBox ("Your both Password doesn't match" & vbCrLf & "Please Correct it")
Text3.SetFocus
Text3.SelStart = 0
Text3.SelLength = Len(Text3.Text)
Exit Sub
Else
Data1.DatabaseName = App.Path & "\atm.mdb"
Data1.RecordSource = "select * from user_identi where user_ID='" &
Form1.Text1.Text & "'"
Data1.Refresh
41
-
8/3/2019 Atm Bank Mgt
42/60
Data1.Recordset.Edit
Data1.Recordset("user_passwd") = Text3.Text
Data1.Recordset.Update
MsgBox ("Your Password has been Changed")
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text2.Visible = False
Text3.Visible = False
Command3.Visible = False
Label3.Visible = False
Label4.Visible = False
End If
Form7.Show
Me.Hide
End Sub
Private Sub Command4_Click()
Form1.Show
Unload Me
End Sub
Private Sub Form_Load()
Data1.DatabaseName = App.Path & "\atm.mdb"
Data1.RecordSource = "select * from user_identi"
Data1.Refresh
Text1.Text = ""
Text1.PasswordChar = "*"
Command3.Visible = False
Label3.Visible = False
Label4.Visible = False
Text2.Visible = False
Text3.Visible = False
End Sub
42
-
8/3/2019 Atm Bank Mgt
43/60
Private Sub Form_Paint()
Text1.SetFocus
End Sub
Private Sub Form_Unload(Cancel As Integer)
'rec.Close
'Data.Close
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Call Command1_Click
End If
End Sub
Private Sub Text1_LostFocus()
Text1.Text = LCase(Text1.Text)
End Sub
Private Sub Text2_LostFocus()
Text2.Text = LCase(Text2.Text)
End Sub
Private Sub Text3_LostFocus()
Text3.Text = LCase(Text3.Text)
End Sub
Private Sub Command1_Click()
Unload Me
Load Form1
Form7.Show
End Sub
Private Sub Form_Load()
Data1.DatabaseName = App.Path & "\atm.mdb"
Data1.RecordSource = "select * from user_account"
43
-
8/3/2019 Atm Bank Mgt
44/60
Data1.Refresh
Text1.Text = Data1.Recordset!user_id
Text2.Text = Data1.Recordset!balance
Text3.Text = Data1.Recordset!min_balance
Text4.Text = Data1.Recordset!ac_type
End Sub
Dim dt As Connection
Dim rs As Recordset
Private Sub Command1_Click()
If Text2.Text = "" Then
Text2.SetFocus
MsgBox "Please Enter a Correct Amount", vbInformation, "Warning"
Exit Sub
ElseIf Text2.Text
-
8/3/2019 Atm Bank Mgt
45/60
Data1.Recordset.Update
MsgBox ("Your Balance has been Updated")
Text1.Text = ""
Text2.Text = ""
'Form7.Show
'Unload Me
End Sub
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
End Sub
Private Sub Command3_Click()
Form7.Show
Unload Me
End Sub
Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
End Sub
Private Sub Label1_Click()
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii >= 48 And KeyAscii
-
8/3/2019 Atm Bank Mgt
46/60
End Sub
Dim dt As Connection
Dim rs As Recordset
Private Sub Command1_Click()
Form7.Show
Unload Me
End Sub
Private Sub Form_Load()
'Set dt = New Connection
'Set rs = New Recordset
'dt.ConnectionString = "Provider=MSDASQL.1;Persist Security Info=False;User
ID=sachin;Mode=ReadWrite;Extended Properties=" & "DRIVER={Microsoft ODBC
for Oracle};pwd=dhillan;UID=sachin;SERVER=matrix;"
'dt.Open
'rs.Open "select * from user_identi,user_account where
user_identi.user_id=user_account.user_id", dt, adOpenDynamic, adLockPessimistic
'rs.MoveFirst
'rs.Find "user_id = '" & Form1.Text1.Text & "'"
Data1.DatabaseName = App.Path & "\atm.mdb"
Data2.DatabaseName = App.Path & "\atm.mdb"
Data1.RecordSource = "select * from user_identi"
Data1.Refresh
Data2.RecordSource = "select * from user_account"
Data2.Refresh
Data1.Recordset.FindFirst "user_id='" & Form1.Text1.Text & "'"
Data2.Recordset.FindFirst "user_id='" & Form1.Text1.Text & "'"
Text1.Text = Data1.Recordset!user_id
Text2.Text = Data1.Recordset!user_name
Text3.Text = Data1.Recordset!user_add
Text4.Text = Data1.Recordset!user_ph
Text5.Text = Data1.Recordset!e_mail
46
-
8/3/2019 Atm Bank Mgt
47/60
Text6.Text = Data2.Recordset!balance
Text7.Text = Data2.Recordset!min_balance
Text8.Text = Data2.Recordset!ac_type
End Sub
Private Sub Form_Unload(Cancel As Integer)
'rs.Close
'dt.Close
End Sub
Private Sub Command1_Click()
Dim s, d As Double
If Text1.Text = "" Then
Text1.SetFocus
MsgBox "Please Enter a value", vbInformation, "Warning"
Exit Sub
End If
Data1.Recordset.MoveFirst
Data1.Recordset.FindFirst "user_id='" & Form1.Text1.Text & "'"
s = Val(Data1.Recordset("balance"))
If s = 5000 Then
Data1.Recordset.Edit
Data1.Recordset("balance") = Str(d)
Data1.Recordset.Update
MsgBox ("Your withdraw is Completed")
Text1.Text = ""
Else
MsgBox ("Sorry User" & vbCrLf & "'Cause after withdraw will be
-
8/3/2019 Atm Bank Mgt
48/60
End Sub
Private Sub Command2_Click()
Form7.Show
Unload Me
End Sub
Private Sub Form_Load()
Data1.DatabaseName = App.Path & "\atm.mdb"
Data1.RecordSource = "select * from user_account"
Data1.Refresh
End Sub
Private Sub Command1_Click()
Form6.Show
Unload Me
End Sub
Private Sub Command2_Click()
Form4.Show
Unload Me
End Sub
Private Sub Command3_Click()
Form3.Show
Unload Me
End Sub
Private Sub Command4_Click()
Form5.Show
Unload Me
End Sub
Private Sub Command5_Click()
48
-
8/3/2019 Atm Bank Mgt
49/60
MDIForm1.mi.Enabled = False
MDIForm1.mu.Enabled = False
MDIForm1.mtst.Enabled = False
MDIForm1.mts.Enabled = False
MDIForm1.mww.Enabled = False
MDIForm1.mds.Enabled = False
MDIForm1.mng.Enabled = False
Form1.Show
Unload Me
Form1.Text1.Text = ""
Form1.Text1.SetFocus
End Sub
Private Sub Command6_Click()
Form2.Show
Unload Me
End Sub
Private Sub Form_Load()
End Sub
Dim da As Connection
Dim rs, ss As Recordset
'Sub ent()
'Set sd = New Connection
'Set ss = New Recordset
'Set ss = sd.Execute("insert into user_account values('" & Text1.Text & "','" &
Text6.Text & "','" & Text7.Text & "','" & Text8.Text & "')")
'End Sub
Private Sub Command1_Click()
If Text2.Text = "" Then
49
-
8/3/2019 Atm Bank Mgt
50/60
Text2.SetFocus
MsgBox "Value Required", vbInformation, "Warning"
Exit Sub
ElseIf Text3.Text = "" Then
Text3.SetFocus
MsgBox "Value Required", vbInformation, "Warning"
Exit Sub
ElseIf Text4.Text = "" Then
Text4.SetFocus
MsgBox "Value Required", vbInformation, "Warning"
Exit Sub
ElseIf Text5.Text = "" Then
Text5.SetFocus
MsgBox "Value Required", vbInformation, "Warning"
Exit Sub
ElseIf Text6.Text = "" Then
Text6.SetFocus
MsgBox "Value Required", vbInformation, "Warning"
Exit Sub
ElseIf Text7.Text = "" Then
Text7.SetFocus
MsgBox "Value Required", vbInformation, "Warning"
Exit Sub
ElseIf Text8.Text = "" Then
Text8.SetFocus
MsgBox "Value Required", vbInformation, "Warning"
Exit Sub
ElseIf Text9.Text = "" Then
Text9.SetFocus
MsgBox "Value Required", vbInformation, "Warning"
Exit Sub
ElseIf Text10.Text = "" Then
Text10.SetFocus
MsgBox "Value Required", vbInformation, "Warning"
50
-
8/3/2019 Atm Bank Mgt
51/60
Exit Sub
End If
If Text9.Text Text10.Text Then
Text10.SetFocus
Text10.SelStart = 0
Text10.SelLength = Len(Text10.Text)
MsgBox ("Your Confirm Password doesn't match")
Exit Sub
End If
Data1.DatabaseName = App.Path & "\atm.mdb"
Data2.DatabaseName = App.Path & "\atm.mdb"
Data1.RecordSource = "select * from user_identi"
Data1.Refresh
Data2.RecordSource = "select * from user_account"
Data2.Refresh
Data1.Recordset.AddNew
Data1.Recordset!user_id = Text1.Text
Data1.Recordset!user_name = Text2.Text
Data1.Recordset!user_passwd = Text3.Text
Data1.Recordset!user_add = Text4.Text
Data1.Recordset!user_ph = Val(Text5.Text)
Data1.Recordset!e_mail = Text5.Text
Data1.Recordset.Update
Data2.Recordset.AddNew
Data2.Recordset!user_id = Text1.Text
Data2.Recordset!balance = Text6.Text
Data2.Recordset!min_balance = Text7.Text
Data2.Recordset!ac_type = Text8.Text
Data2.Recordset.Update
'ss.Close
'rd.Close
'da.Close
MsgBox ("New Entery is Completed")
Command1.Enabled = False
51
-
8/3/2019 Atm Bank Mgt
52/60
End Sub
Private Sub Command2_Click()
Call Form_Load
End Sub
Private Sub Command3_Click()
Form1.Show
Unload Me
End Sub
Private Sub Form_Load()
Dim uid As String * 20
Data1.DatabaseName = App.Path & "\atm.mdb"
Data1.RecordSource = "select user_id from user_identi"
Data1.Refresh
Data1.Recordset.MoveLast
uid = Data1.Recordset("user_id")
str_uid = Left(uid, 1)
num_uid = Mid(uid, 2)
new_id = CInt(num_uid) + 1
Text1.Text = str_uid & "00" & new_id
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii >= 65 And KeyAscii = 97 And KeyAscii
-
8/3/2019 Atm Bank Mgt
53/60
If KeyAscii >= 48 And KeyAscii = 48 And KeyAscii = 48 And KeyAscii
-
8/3/2019 Atm Bank Mgt
54/60
Dim a As Integer
Private Sub Command1_Click()
Data1.DatabaseName = App.Path & "/atm.mdb"
Data1.RecordSource = "select * from admin"
Data1.Refresh
If Text1.Text Data1.Recordset("pass") Then
a = a + 1
If a = 1 Then
b = MsgBox("Please Enter a Corect Password", , "Login......")
Text1.SetFocus
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
ElseIf a = 2 Then
b = MsgBox("Please Enter a Corect Password", , "Login")
Text1.SetFocus
Text1.SelStart = 0
Text1.SelLength = Len(Text1.Text)
ElseIf a = 3 Then
a = MsgBox("Hey user" & vbCrLf & "Don't be Over Smart", , "Login")
End
End If
ElseIf Data1.Recordset("pass") = Text1.Text Then
Text1.Text = ""
Form8.Show
Unload Me
End If
End Sub
Private Sub Command2_Click()
Form1.Show
Unload Me
End Sub
Private Sub Form_Load()
54
-
8/3/2019 Atm Bank Mgt
55/60
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Call Command1_Click
End If
End Sub
Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA"
(ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal
lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long)
As Long
Dim ld As Integer
Dim s As Integer
Private Sub Command1_Click()
End
End Sub
Private Sub Label6_Click()
ShellExecute Me.hwnd, "Open", "www.rescueindia.net", ByVal 0&, "", 3
End Sub
Private Sub Form_Load()
End Sub
Private Sub Timer1_Timer()
Dim r As Byte
Dim g As Byte
Dim b As Byte
r = Rnd() * 255
g = Rnd() * 255
b = Rnd() * 255
55
-
8/3/2019 Atm Bank Mgt
56/60
-
8/3/2019 Atm Bank Mgt
57/60
Private Sub ext_Click()
End
End Sub
Private Sub MDIForm_Load()
'admin.Enabled = False
mi.Enabled = False
mu.Enabled = False
mtst.Enabled = False
mts.Enabled = False
mww.Enabled = False
mds.Enabled = False
mng.Enabled = False
End Sub
Private Sub mds_Click()
Form4.Show
Unload Form2
Unload Form3
Unload Form1
Unload Form5
Unload Form6
Unload Form7
Unload Form8
End Sub
Private Sub mi_Click()
MDIForm1.mi.Enabled = False
MDIForm1.mu.Enabled = False
MDIForm1.mtst.Enabled = False
MDIForm1.mts.Enabled = False
MDIForm1.mww.Enabled = False
MDIForm1.mds.Enabled = False
57
-
8/3/2019 Atm Bank Mgt
58/60
MDIForm1.mng.Enabled = False
Form1.Show
Unload Form2
Unload Form3
Unload Form4
Unload Form5
Unload Form6
Unload Form7
Unload Form8
End Sub
Private Sub mng_Click()
Form7.Show
Unload Form2
Unload Form3
Unload Form4
Unload Form5
Unload Form6
Unload Form1
Unload Form8
End Sub
Private Sub mts_Click()
Form5.Show
Unload Form2
Unload Form3
Unload Form4
Unload Form1
Unload Form6
Unload Form7
Unload Form8
End Sub
58
-
8/3/2019 Atm Bank Mgt
59/60
-
8/3/2019 Atm Bank Mgt
60/60
Bibliography:
1. Visual basic Complete Reference :
Author: Tony Stevenson2. Programming Microsoft Visual Basic 6.0
Author: Francesco BalenaPublisher: Microsoft Press
3. MS-Access-Complete Reference
Author: Virginia Andersen, Virginia Andersen
http://www.amazon.com/exec/obidos/search-handle-url/index=books&field-author=Virginia%20%20Andersen/104-9993770-8514364http://www.amazon.com/exec/obidos/search-handle-url/index=books&field-author=Virginia%20Andersen/104-9993770-8514364http://www.amazon.com/exec/obidos/search-handle-url/index=books&field-author=Virginia%20%20Andersen/104-9993770-8514364http://www.amazon.com/exec/obidos/search-handle-url/index=books&field-author=Virginia%20Andersen/104-9993770-8514364