You are on page 1of 64

INDEX

Sr.No Point No. Description Page No.


1 Chapter 1 Introduction 2
1.1 Accounting Management 3
1.2 Existing System 4
1.3 Scope of work 5
1.4 System Specification 6
2 Chapter 2 Proposed System 7
2.1 Objective of System 8
2.2 About o.s. 9
3 Chapter 3 Coding of Project 11
3.1 Technology 11
3.2 Front End-VB 11
3.3 Back End Access 17
4 Chapter 4 Project Information 18
4.1 About Project 18
4.2 Study of Project 19
4.3 Dataflow Diagram 21
4.4 Database Design 26
4.5 Database Table Design 27
4.6 Form Design 29
4.7 Report 54
4.8 Testing 55
5 Chapter 5 Conclusion 59
6 Chapter 6 Bibliography 60
5.1 References 60

[Type text]
1. Introduction
The client uses MS Access, and maintains their Deposit list, customer list,
Transaction list and prints the Transaction, however it is not possible them to share
the data from multiple system in multi user environment, there is lot of duplicate
work, and chance of mistake. When the product price are changed they need to
update each and every Accessl file. There is no option to find and print previous
saved Transaction. There is no security; any body can access any report and
sensitive data, also no reports to find out the sales volume, stock list, and summary
report. This eBilling and invoicing system is used to overcome the entire problem
which they are facing currently, and making complete atomization of manual
billing and invoicing system.

[Type text]
1.1 Accounting management:

By studying about some Banks in your area, we find that, in the various
Banks which has not using any computer application for their Banking transaction.
Therefore there is no any better performance in banking transactions. So these
Banks are losing more time for the Banking transactions such as withdrawal,
deposit, loan, etc. And its also taking more time for calculation of various
amounts and taking more time for finding any particular data and information of
the customers

So we have an idea for making your banks work performance very fast than the
human being. For that we have developed application software for your bank. In
our application there are various facilities for your bank such as withdrawal,
deposit, loans etc can be performed faster than the human beings. We developed a
Banks database application which keeps your all Banks data and information of
the customers for future use.

Our application can search any records as your requirement very quickly than the
human beings, for which your staff take more time. This application increases your
work performance than previous work efficiency. And it calculates any calculation
very quickly and provides approximately 100% efficient result.

So, it is better to keep your database application for your Bank to make a better
works, calculations, finding records, storing records and other many Banking
transactions.

[Type text]
1.2 Existing System:

System analysis is a detailed study of the various operations performed by a system


and their relationships within and outside of the system. Analysis begins when a
user or manager begins a study of the program using existing system.

During analysis, data collected on the various files, decision points and
transactions handled by the present system. The commonly used tools in the
system are Data Flow Diagram, interviews, etc. training, experience and common
sense are required for collection of relevant information needed to develop the
system.. A good analysis model should provide not only the mechanisms of
problem understanding but also the framework of the solution. Then the proposed
system should be analyzed thoroughly in accordance with the needs.

System analysis can be categorized into four parts.

System planning and initial investigation


Information gathering
Applying analysis tools for structured analysis
Feasibility study
Cost/benefit analysis

[Type text]
1.3 Scope of work:

1. Efficiently maintains the details about the patient

2. Simultaneously updates changes made to any data, item in the entire data base.

3. It is faster than manual system


4. With the growing importance of hospital industry in providing health care to
people across the country,
5 It is very important compare to the manually work, because it is too much time
consuming.

6: We can easily access The data of Account as well as deposits, withdrawals,


transactions

[Type text]
1.4 System Specification:

Hardware Requirements

Processor : Intel Pentium P4 or above

Clock speed : 500 MHZ

System bus : 32 bits

RAM : 512MB of RAM

HDD : 40 GB or higher

Monitor : LCD Monitor

Keyboard : 108 keys

Mouse : 2 button mouse

Software Requirements

OS : MS WINDOWS XP

Front End : Visual Basic 6.0

Back End : Microsoft Access 2007

[Type text]
2. Proposed System:

The drawback of the existing system is that it is very difficult to retrieve data
from case files. It is difficult to handle the whole system manually and it is less
accurate and to keep the data in case files for future reference because it may get
destroyed. Moreover it is very difficult to retrieve data. Redundancy of data may
occur and this may lead to the inconsistency. The manual system is so time-
consuming.

The proposed system is very easy to operate. Speed and accuracy are the main
advantages of proposed system. There is no redundancy of data. The data are
stored in the computers secondary memories like hard disk, etc. it can be easily
receive and used at any time. The proposed system will easily handle all the data
and the work done by the existing systems. The proposed systems eliminate the
drawbacks of the existing system to a great extent and it provides tight security to
data.

[Type text]
2.1 Objective of system:

The purpose of the project entitled as ACCOUNTING MANAGEMENT


SYSTEM is to computerize the Front Office Management of Account to develop
software which is user friendly, simple, fast, and cost effective. It deals with the
collection of Deposits, Withdrawals, Transactions etc

System analysis is a detailed study of the various operations performed by a


system and their relationships within and outside of the system. Analysis begins
when a user or manager begins a study of the program using existing system.

2.2 FEASIBILITY STUDY


An important outcome of the preliminary investigation is the determination
that the system requested is feasible. Feasibility study is carried out to select the
best system that meets the performance requirements.
Feasibility study is both necessary and prudent to evaluate the feasibility of
the project at the earliest possible time. It involves preliminary investigation of the
project and examines whether the designed system will be useful to the
organization. Months or years of effort, thousand for millions of money and untold
professional embarrassment can be averted if an in-conceived system is recognized
early in the definition phase.
The different types of feasibility are: Technical feasibility, Operational
feasibility, Economical feasibility.

[Type text]
2.2.1 Technical feasibility

Technical Feasibility deals with the hardware as well as software


requirements. Technology is not a constraint to type system development. We have
to find out whether the necessary technology, the proposed equipments have the
capacity to hold the data, which is used in the project, should be checked to carry
out this technical feasibility.
The technical feasibility issues usually raised during the feasibility
stage of investigation includes these
This software is running in windows 2000 Operating System, which can be easily
installed.
The hardware required is Pentium based server.
The system can be expanded.

2.2.2 Behavioral Feasibility

This feasibility test asks if the system will work when it is developed and
installed.
Operational feasibility in this project:
The proposed system offers greater level of user-friendliness.
The proposed system produces best results and gives high performance. It can be
implemented easily .So this project is operationally feasible.
2.2.3 Economical feasibility
Economical Feasibility deals about the economical impact faced by the
organization to implement a new system. Financial benefits must equal or exceed
the costs. The cost of conducting a full system, including software and hardware
cost for the class of application being considered should be evaluated. Economic
Feasibility in this project:

The cost to conduct a full system investigation is possible.


There is no additional manpower requirement.
There is no additional cost involved in maintaining the proposed system.

[Type text]
2.3 About Operating System:

Windows XP is a line of operating systems developed by Microsoft for use on


general purpose computer systems, including home and business desktops,
notebook computers and media centers. The letters XP stand for experience.
Windows XP is the successor to both Windows 2000 and Windows Me and is first
consumer oriented operating system produced by Microsoft to be built on the
Windows NT kernel and architecture.

The most common editions of operating systems are Windows XP home


edition, which is targeted at home users, and Windows XP professional, which has
additional features such as, support for Windows server domain and two physical
processors and is targeted at power users and business clients.

Windows XP Tablet PC edition is designed to run the ink-aware Tablet PC


platform. Two separate 64 bit versions of Windows XP were also released,
Windows XP 64 bit edition for IA-64(Itanium) processors and Windows XP
Professional x64 edition for x86-64 processors.

[Type text]
Introduction to
Microsoft Visual Basic6.0
And
Microsoft Access2000

[Type text]
3.1 TECHNOLOGY

OPERATING SYSTEM - WINDOWS 98

Assortment of appropriate Operating system and Programming


language for any project is very important. Basically it depends upon the nature of
project and its system requirements. Windows provides a Multitasking
Environment, enabling user to run various applications at a time. Windows offer
many advantages to both the user and the programmer besides GUIs such as point-
and-click capabilities and multitasking.

3.2 FRONT END - MICROSOFT VISUAL BASIC 6.0

Microsoft Visual Basic development system is the most productive tool for
creating fast business solutions for Windows and the Web. A comprehensive, rapid
application development environment helps development environment help
developers quickly create and deploy client /server applications, plus easily
program for the Internet using familiar Visual Basic programming tools and
techniques.

[Type text]
The important requirements for a rapid, application-development client/server tool
include:

Comprehensive resources necessary for successful Windows 2000


development.
High-performance, scalable application and component creation.
Increased data application development productivity & control.
Greater service application development support.
A robust extensibility model for third party support & availability of
components and add in technology.
Enterprise application development.

With the introduction of Visual Basic 6.0, Microsoft builds upon its critically
acclaimed RAD enterprise development platform with the features that extended
and enhance the currently robust development environment. These features are
based on five design themes, in turn derived from these customer requirements.

Windows 2000 Development with Visual Basic:

The Microsoft Visual Basic development system now provides the


comprehensive resources necessary for successful Windows 2000 development.
From building e-commerce Web technologies, such as network and component
load balancing, to scalable data driven business applications, Visual Basic 6.0 has
what you need.

[Type text]
Windows 2000 Developer's Readiness Kit
Visual studio installer.
MSDN Library Subscription.
Microsoft Data Engine.

High Performance, Scalable Application and Component Creation

The goal of any development tool is to facilitate the developer's need for
quick and efficient creation and deployment of high performance, scalable
applications. Visual Basic 6.0 works to address these needs through the delivery of
a quick-executing, native-code environment. Tens of millions of Visual Basic
based applications in use today stand as a testament to the success of Visual Basic
in this area. With Visual Basic 6.0, Microsoft made improvements in the following
areas:

Deliver native-code compiled performance


Accelerated Microsoft Win 32 API based forms.
Provide scalable solutions.
Facilitate the development of thread-safe, persist able components.

Data-Centric Application Development

Ninety-five percent of developers using Visual Basic create solutions that


access either local or remote database and the vast majority of all corporate
applications are data-centric. In fact, a recent tracking study revealed that Visual

[Type text]
Basic is the most popular development tool used in Conjunction with Microsoft
SQL Server and Oracle Servers. Clearly, developers require more productive ways
to connect to and manipulate data with reduced complexity and open to access to a
wide variety of data sources.

While developing Visual Basic 6.0, Microsoft addressed these important


needs by focusing on the following data-productivity objectives:

Provide faster and more comprehensive data access.


Provide an integrated set of data base design and programming tool.
Simplify the creation of data-centric application for the mobile user.
Provide support for the latest data base management technology using ActiveX
Data Objects (ADO) and OLEDB.
Provide easier access to more data types.
Simplify the creation of reusable data consumers.

Server Application Development and Deployment

In recent years, PC-based enterprise client /server development has


gained widespread acceptance. At the center of these installations is Win 32 or
Internet based server applications. In response to this, Microsoft has enhanced
Visual Basic with the existing new server application features. Microsoft focused
on the following objectives to optimize Visual Basic 6.0 for server application
development.

[Type text]
Enable the creation of HTML based Web applications.
Utilize Web sites both inside and outside the corporate firewall as a
measure to reduce deployment costs.
Debug middle tier components running under Microsoft Transaction
Server.
Package and deploy middle-tier components with ease and peace of
mind.

Client Development Support


At the heart of the success Visual Basic has enjoyed is the ability it gives
developer to quickly create robust, powerful, and professional client applications,
components and user interfaces. Visual basic 6.0 provides the following
improvements that enhance client application development:

ActiveX Control creation that gives developers the ultimate in


Win32 flexibility.

Creation of browser-independent applications.

Enterprise Application Development

As the use of information technology changes to meet new business

needs, the very definition of enterprise applications is evolving. While enterprise

infrastructure and applications vary widely across organizations, common

attributes of enterprise applications include:

[Type text]
Being component based for flexibility and scalability.
Requiring life cycle support, including design, development, management
and analysis.
Requiring more sophisticated database architectures.
Being developed by teams.
Being distributed in nature, integrated with desperate backend system.

3.3 Back End: Microsoft Access

Microsoft access delivers powerful tools for managing and analyzing data.
With XML support, developers can create highly sophisticated

Enterprise - wide database solutions that integrate easily with the web. One can
find comprehensive tools that make building databases more intuitive Features like
Microsoft Pivot table and the Microsoft Pivot chart greatly improve data analysis
capabilities. Microsoft Access is one of the most versatile applications. This
versatility is evidenced by the rich set of tools that even the Most experienced
database user can take advantage of, offering the same level of simplicity for first
time database user. Access extends this versatility by giving developers and more
experienced users new functionality, enabling them to access and analyze their
important data as well as build powerful new data base solution. At same time,
access makes it easy for beginning users to discover and use more of the existing
application.

[Type text]
Project Information

4.1 About Project

This project is of ACCOUNTING MANAGEMENT SYSTEM.

In this project Microsoft Visual Basic has been used as Front End and Microsoft
Access as the back end.

.
Advantages of the System

Advantages of the system over manual record handling are as follows:

Removes redundancy.
Reduces errors.
Provides better protection.
Makes work easier.
Reduces manual labor.

[Type text]
4.2 Study of project through Classical Model

A system model is a systematic approach towards software development.


Before any building is built it is necessary to make the drawing of that building,
similar is the case with any software. Here also before any coding of the software
begins, it is necessary to make the model of the software.

A model basically specifies all the steps to be followed during the system

development. This makes the task of the engineer quite simple and helps him build

software, which is less error prone.

Tasks accomplished by system modeling are:

Define the processes that serve the needs of the view under consideration.
Represent the behavior of the processes and the assumptions on which
behavior is based.
Explicitly define both exogenous and endogenous input to the model.
Represent all linkages that will enable the engineer to better understand the
view.

[Type text]
The model used is shown below:

SYSTEM DEVELOPMENT LIFE CYCLE

A crucial phase in the System Development Life Cycle (SDLC)


Is the successful implementation of the new system design? Implementation includes all
those activities that take place to convert from the old system to the new one. The new
system may be completely new, replacing an existing manual or automated system or it
may be major modification to an existing system. In either case, proper implementation
becomes necessary so that a reliable system based on the requirements of the
organization can be provided.
Successful Implementation may not guarantee improvement in the
organization using the new system, but improper installation will prevent it. It has
been observed that even the best system cannot show good results if the analyst
managing the implementation does not attend to every important detail. This is the
area where the system analyst needs to work most carefully

The proposed system is very simple to implement. As specified prior, the


required Hardware and Software are sufficient for implementing this software. The
implementation process is quite similar to most softwares. So the implementations
of this software become easy.

[Type text]
4.3 DATA FLOW DIAGRAM

Data flow oriented techniques advocate that the major data items

handled by a system must be first identified and then the processing

required on these data items to produce the desired outputs should be

determined. The DFD (also called as bubble chart) is a simple

graphical formalism that can be used to represent a system in terms of

input data to the system, various processing carried out on these data,

and the output generated by the system. It was introduced by De

Macro (1978), Gane and Sarson (1979).The primitive symbols used

for constructing DFDs are:

Symbols used in DFD

A circle represents a process.

A rectangle represents external entity

A square defines a source or destination of the system data.

[Type text]
An arrow identifies dataflow.

Double line with


one end closed indicates data store

[Type text]
[Type text]
[Type text]
4.4 DATABASE DESIGN

A database is an organized mechanism that has the capability of

storing information through which a user can retrieve stored information in

an effective and efficient manner. The data is the purpose of any database

and must be protected.

The database design is a two level process. In the first step, user

requirements are gathered together and a database is designed which will

meet these requirements as clearly as possible. This step is called

Information Level Design and it is taken independent of any individual

Database Management System (DBMS).

In the second step, this Information level design is transferred into a

design for the specific DBMS that will be used to implement the system in

question. This step is called Physical Level Design, concerned with the

characteristics of the specific DBMS that will be used. A database design

runs parallel with the system design. The organization of the data in the

database is aimed to achieve the following two major objectives.

Data Integrity

Data independence

[Type text]
4.5 DATABASE TABLE DESIGN

Table Name: - Account Table

Primary key: Account ID

Table Name: - Customers Table

Primary key: Customer ID

[Type text]
Table Name: - Deposits Table

Primary key: TransactionID

Table Name: - Withdrawals Table

Primary key: TransactionID

[Type text]
4.6 Form design
MAIN FORM:

[Type text]
CODING:

'frmCustomers
Private Sub cboAccType_Click()
Set rsTemp = New ADODB.Recordset

[Type text]
rsTemp.Open "Select * FROM tblAccTypes WHERE AccountName='"
& cboAccType.Text & "'", cnBank, adOpenKeyset, adLockOptimistic
If rsTemp.RecordCount > 0 Then lblMin = rsTemp(4)
End Sub

Private Sub cmdNavigate_Click(Index As Integer)


Select Case Index
Case Is = 0 'Move First
Call MoveToFirst(rsCustomers)
Call DisplayCustomers(rsCustomers)
Case Is = 1 'Move Previous
Call MoveToPrev(rsCustomers)
Call DisplayCustomers(rsCustomers)
Case Is = 2 'Move Next
Call MoveToNext(rsCustomers)
Call DisplayCustomers(rsCustomers)
Case Is = 3 'Move Last
Call MoveToLast(rsCustomers)
Call DisplayCustomers(rsCustomers)
End Select
End Sub

[Type text]
Private Sub cmdOptions_Click(Index As Integer)
Dim i As Integer
Select Case Index
Case Is = 0 'Add
For i = 0 To 4: cmdOptions(i).Enabled = False: Next i
cmdOptions(1).Enabled = True: cmdOptions(2).Enabled = True
Call UnLock_Form_Controls(Me)
Call clear_Form_Controls(Me)
Call GenerateNewCustomerCode
txtCustomer(0).Locked = True
txtCustomer(1).SetFocus
rsCustomers.AddNew
txtDateJoined.Value = Date
Case Is = 1 'Save
If txtCustomer(9).Text = "" Then txtCustomer(9).Text = "N/A"
For i = 0 To 10
If txtCustomer(i).Text = "" Then
Call Messager
txtCustomer(i).SetFocus
Exit Sub
[Type text]
End If
Next i

If CCur(txtCustomer(10).Text) < CCur(lblMin.Caption) Then


MsgBox "Opening balance should be atleast " & lblMin.Caption
& " for this type of Account", vbInformation
Exit Sub
End If
z=0
For X = 0 To 13
Select Case X
Case Is = 3: rsCustomers(X) = cboContactTitle.Text
Case Is = 11: rsCustomers(X) = txtDateJoined.Value
Case Is = 12: rsCustomers(X) = cboAccType.Text
Case Else: rsCustomers(X) = txtCustomer(z).Text: z = z + 1
End Select
Next X
For i = 0 To 4: cmdOptions(i).Enabled = True: Next i
cmdOptions(1).Enabled = False: cmdOptions(2).Enabled = False
Call Lock_Form_Controls(Me)

[Type text]
Case Is = 2 'Cancel
rsCustomers.CancelUpdate
For i = 0 To 4: cmdOptions(i).Enabled = True: Next i
cmdOptions(1).Enabled = False: cmdOptions(2).Enabled = False

Call DisplayCustomers(rsCustomers)
Call Lock_Form_Controls(Me)
Case Is = 3 'Edit
For i = 0 To 4: cmdOptions(i).Enabled = False: Next i
cmdOptions(1).Enabled = True: cmdOptions(2).Enabled = True
Call UnLock_Form_Controls(Me)
txtCustomer(0).Locked = True
Case Is = 4 'Delete
If (MsgBox("Sure To Delete?", vbYesNo + vbQuestion, "Confirm
Delete")) = vbYes Then
With rsCustomers
If .BOF = True And .EOF = True Then
MsgBox "Nothing to delete", vbInformation
Exit Sub
End If
.Delete

[Type text]
Call clear_Form_Controls(Me)
.MoveFirst
Call DisplayCustomers(rsCustomers)
End With
Call Lock_Form_Controls(Me)
End If
End Select
End Sub
Public Sub GenerateNewCustomerCode()
Dim lastnumber As Long, newnumber As Long
With rsCustomers
If .BOF = True And .EOF = True Then
lastnumber = 2004000
Else
.MoveLast
lastnumber = !CustomerID
End If

newnumber = lastnumber + 1
txtCustomer(0).Text = newnumber
End With
[Type text]
End Sub
Private Sub Form_Load()
Call create_navigation_buttons(Me)
txtDateJoined.Value = Date
With cboContactTitle
.AddItem "MR."
.AddItem "MRS."
.AddItem "MISS."
.AddItem "DR."
.AddItem "PROFF."
.AddItem "SIR."
.AddItem "REV."
.AddItem "FR."
End With
Call connectDatabase
For X = 1 To rsAccTypes.RecordCount
cboAccType.AddItem rsAccTypes(1) '!AccountName
rsAccTypes.MoveNext
Next X
Call DisplayCustomers(rsCustomers)
Call Lock_Form_Controls(Me)
[Type text]
End Sub

Public Sub DisplayCustomers(myrs As Recordset)


Dim z As Integer
With myrs
If .BOF = True And .EOF = True Then Exit Sub
On Error Resume Next
z=0
For X = 0 To 13
Select Case X
Case Is = 3: cboContactTitle.Text = myrs(X)
Case Is = 11: txtDateJoined.Value = myrs(X)
Case Is = 12: cboAccType.Text = myrs(X)
Case Else: txtCustomer(z).Text = myrs(X): z = z + 1
End Select
Next X
StatusBar1.SimpleText = CStr("Record :" & .AbsolutePosition & "
of " & .RecordCount)
End With
End Sub

[Type text]
Private Sub txtCustomer_LostFocus(Index As Integer)
If Index = 10 Then
If IsNumeric(txtCustomer(10).Text) = False And Not
(txtCustomer(10).Text = "") Then
MsgBox "Invalid Input", vbOKOnly + vbCritical, "Error"
txtCustomer(10).Text = ""
txtCustomer(10).SetFocus
End If
End If
End Sub

[Type text]
CODING:
'frmDeposits
Dim currBalance As Currency
Private Sub cboCustomerNo_Click()
Set rsTemp = New ADODB.Recordset
rsTemp.Open "Select * FROM tblCustomers WHERE CustomerID='"
& cboCustomerNo.Text & "'", cnBank, adOpenKeyset,
adLockOptimistic
With rsTemp
[Type text]
If .RecordCount > 0 Then
txtDeposits(1).Text = !AccountNo
txtDeposits(2).SetFocus
Else
MsgBox "Invalid Customer Code", vbInformation
txtDeposits(1).Text = ""
Exit Sub
End If
.Close
End With
Set rsTemp = New ADODB.Recordset
rsTemp.Open "Select * FROM tblCustomers WHERE CustomerID='"
& cboCustomerNo.Text & "'", cnBank, adOpenKeyset,
adLockOptimistic
If rsTemp.RecordCount > 0 Then
lblBalance.Caption = rsTemp(13)
Else
Exit Sub
End If
rsTemp.Close
End Sub

[Type text]
Private Sub cmdOptions_Click(Index As Integer)
Dim i As Integer
Select Case Index
Case Is = 0
If cboCustomerNo.Text = "" Then
Call Messager
cboCustomerNo.SetFocus
Exit Sub
End If

If txtDeposits(1).Text = "" Then


MsgBox "Please Enter the Customer Correctly.", vbInformation
cboCustomerNo.SetFocus
Exit Sub
End If

For i = 0 To 5
If txtDeposits(i).Text = "" Then
Call Messager
txtDeposits(i).SetFocus
Exit Sub
[Type text]
End If
Next i
i=0
For X = 0 To 7
Select Case X
Case Is = 1
rsDeposit(X) = cboCustomerNo.Text
Case Is = 7
rsDeposit(X) = txtDated.Value
Case Else
rsDeposit(X) = txtDeposits(i).Text
i=i+1
End Select
Next X
rsDeposit.Update
currBalance = (CCur(lblBalance.Caption) +
CCur(txtDeposits(3).Text))

Set rsTemp = New ADODB.Recordset


rsTemp.Open "Select * FROM tblCustomers WHERE
CustomerID='" & cboCustomerNo.Text & "'", cnBank, adOpenKeyset,
adLockOptimistic
[Type text]
If rsTemp.RecordCount > 0 Then
rsTemp(13) = currBalance
Else
Exit Sub
End If
rsTemp.Update
rsTemp.Close

If Check1.Value = 1 Then
DataEnvironment1.rsCommand1.Filter = "TransactionID='" &
txtDeposits(0).Text & "'"
DataReport1.Show
End If
Case Is = 1
rsDeposit.CancelUpdate
End Select
Unload Me
End Sub

Private Sub Form_Load()


With cmdOptions(0)

[Type text]
.Picture = LoadPicture(App.Path & "\pictures\n2.jpg")
End With
For i = 1 To 1
Load cmdOptions(i)
With cmdOptions(i)
.Visible = True
.Left = cmdOptions(i - 1).Left + cmdOptions(i - 1).Width + 25
If i = 1 Then
.Picture = LoadPicture(App.Path & "\pictures\n3.jpg")
Else
.Picture = LoadPicture(App.Path & "\pictures\n10.jpg")
End If
End With
Next i

Call connectDatabase

For X = 1 To rsCustomers.RecordCount
cboCustomerNo.AddItem rsCustomers(0)
rsCustomers.MoveNext
Next X
[Type text]
Call clear_Form_Controls(Me)
Call GenerateNewTransactCode
rsDeposit.AddNew
End Sub

Public Sub GenerateNewTransactCode()


Dim lastnumber As Long, newnumber As Long
If rsDeposit.BOF = True And rsDeposit.EOF = True Then
lastnumber = 1000
Else
rsDeposit.MoveLast
lastnumber = rsDeposit(0)
End If
newnumber = lastnumber + 1
txtDeposits(0).Text = newnumber
End Sub

Private Sub optCash_Click(Index As Integer)


Select Case Index
Case Is = 0
txtDeposits(5).Text = "N/A"
[Type text]
txtDeposits(5).Locked = True
txtDeposits(4).Text = "CASH"
txtDeposits(4).Locked = True
Case Is = 1
txtDeposits(4).Text = "CHEQUE"
txtDeposits(4).Locked = True
txtDeposits(5).Text = ""
txtDeposits(5).Locked = False
txtDeposits(5).SetFocus
Case Is = 2
txtDeposits(4).Locked = False
txtDeposits(4).SetFocus
txtDeposits(4).Text = ""
txtDeposits(5).Text = "N/A"
txtDeposits(5).Locked = True
End Select
End Sub

Private Sub txtDeposits_LostFocus(Index As Integer)


If Index = 3 Then

[Type text]
If IsNumeric(txtDeposits(3).Text) = False And Not
(txtDeposits(3).Text = "") Then
MsgBox "Invalid Input", vbOKOnly + vbCritical, "Error"
txtDeposits(3).Text = ""
txtDeposits(3).SetFocus
End If
End If
End Sub

[Type text]
CODING
'frmWithdrawal
Private Sub cmdOptions_Click(Index As Integer)
Dim i As Integer
Select Case Index
Case Is = 0
If cboCustomerNo.Text = "" Then
Call Messager

[Type text]
cboCustomerNo.SetFocus
Exit Sub
End If
If txtDeposits(1).Text = "" Then
MsgBox "Please Enter the Customer Correctly.", vbInformation
cboCustomerNo.SetFocus
Exit Sub
End If

For i = 0 To 3
If txtDeposits(i).Text = "" Then
Call Messager
txtDeposits(i).SetFocus
Exit Sub
End If
Next i
If (Val(lblBalance.Caption) - Val(txtDeposits(3).Text)) <
Val(Label3.Caption) Then
MsgBox "Money cant be withdrawn as the account balance has
reached minimum!"
Exit Sub

[Type text]
End If
i=0
For X = 0 To 5
Select Case X
Case Is = 1
rsWithdrawal(X) = cboCustomerNo.Text
Case Is = 5
rsWithdrawal(X) = txtDated.Value
Case Else
rsWithdrawal(X) = txtDeposits(i).Text
i=i+1
End Select
Next X
rsWithdrawal.Update

Set rsTemp = New ADODB.Recordset


rsTemp.Open "Select * FROM tblCustomers WHERE
CustomerID='" & cboCustomerNo.Text & "'", cnBank, adOpenKeyset,
adLockOptimistic
If rsTemp.RecordCount > 0 Then
rsTemp(13) = Val(lblBalance.Caption) -
Val(txtDeposits(3).Text)
[Type text]
Else
Exit Sub
End If
rsTemp.Update
rsTemp.Close

If Check1.Value = 1 Then
DataEnvironment1.rsCommand2.Filter = "TransactionID='" &
txtDeposits(0).Text & "'"
DataReport2.Show
End If
Case Is = 1
rsDeposit.CancelUpdate
End Select
Unload Me
End Sub

Private Sub Form_Load()


With cmdOptions(0)
.Picture = LoadPicture(App.Path & "\pictures\n2.jpg")
End With

[Type text]
For i = 1 To 1
Load cmdOptions(i)
With cmdOptions(i)
.Visible = True
.Left = cmdOptions(i - 1).Left + cmdOptions(i - 1).Width + 25
If i = 1 Then
.Picture = LoadPicture(App.Path & "\pictures\n3.jpg")
Else
.Picture = LoadPicture(App.Path & "\pictures\n10.jpg")
End If
End With
Next i

Call connectDatabase

For X = 1 To rsCustomers.RecordCount
cboCustomerNo.AddItem rsCustomers(0)
rsCustomers.MoveNext
Next X

Call clear_Form_Controls(Me)
[Type text]
Call GenerateNewTransactCode
rsWithdrawal.AddNew
End Sub
Public Sub GenerateNewTransactCode()
Dim lastnumber As Long, newnumber As Long
If rsWithdrawal.BOF = True And rsWithdrawal.EOF = True Then
lastnumber = 15000
Else
rsWithdrawal.MoveLast
lastnumber = rsWithdrawal(0)
End If
newnumber = lastnumber + 1
txtDeposits(0).Text = newnumber
End Sub
Private Sub cboCustomerNo_Click()
Set rsTemp = New ADODB.Recordset
Set rsTemp2 = New ADODB.Recordset
rsTemp.Open "Select * FROM tblCustomers WHERE CustomerID='"
& cboCustomerNo.Text & "'", cnBank, adOpenKeyset,
adLockOptimistic
With rsTemp

[Type text]
If .RecordCount > 0 Then
txtDeposits(1).Text = !AccountNo
txtDeposits(2).SetFocus
Else
MsgBox "Invalid Customer Code", vbInformation
txtDeposits(1).Text = ""
Exit Sub
End If
.Close
End With

Set rsTemp = New ADODB.Recordset


rsTemp.Open "Select * FROM tblCustomers WHERE CustomerID='"
& cboCustomerNo.Text & "'", cnBank, adOpenKeyset,
adLockOptimistic
If rsTemp.RecordCount > 0 Then
lblBalance.Caption = rsTemp(13)
Else
Exit Sub
End If

[Type text]
rsTemp2.Open "Select * FROM tblAccTypes WHERE
AccountName='" & rsTemp(12) & "'", cnBank, adOpenKeyset,
adLockOptimistic
Label3.Caption = rsTemp2(4)
rsTemp2.Close
rsTemp.Close
End Sub

[Type text]
[Type text]
[Type text]
4.7 Report:
1. The label Box:
.It
allows you to display text that you dont want the user to change, such as a
caption

Under a Graphic, when u wants to print the invoice, you need to know if the
customer is going to pay

By cash or check or credit card.

The command Buttons:


Creates a button that the user can choose to carry out a command. The user

Will click on this button and the computer will perform the task associated with

The button.

2. The Text Box control:


In order to display or accept user input in the form of text like, Customer ID, name
,age etc. it is used to display text and allows the user to edit the data in the box.

A text box control is also called an edit field or edit control.

3. The picture Box:


A picture box control can display a graphic from a bitmap, icon or metafile

, as well as enhanced metafile, GPEG, or GIF.it clips the graphic if the control

Isnt large enough to display the entire image.

4. The Data Control:


The data control is part of standard toolbox. It has buttons for moving from

Record too record ,you have buttons to move the next or last record and to move

The previous and first record .you can also set the caption property for the data

[Type text]
4.8 TESTING

Testing is a process of executing a program with the interest of finding

an error. A good test is one that has high probability of finding the yet

undiscovered error. Testing should systematically uncover different classes

of errors in a minimum amount of time with a minimum amount of efforts.

Two classes of inputs are provided to test the process

1. A software configuration that includes a software requirement

specification, a design specification and source code.

2. A software configuration that includes a test plan and procedure, any

testing tool and test cases and their expected results.

Testing is divided into several distinct operations:

1. Unit Testing

Unit test comprises of a set tests performed by an individual

program prior to the integration of the unit into large system. A

program unit is usually the smallest free functioning part of the whole

system. Module unit testing should be as exhaustive as possible to

ensure that each representation handled by each module has bee

tested. All the units that makeup the system must be tested

independently to ensure that they work as required.

[Type text]
During unit testing some errors were raised and all of them were

rectified and handled well. The result was quiet satisfactory and it worked

well.

2. Integration Testing

Integration testing is a system technique for constructing the program

structure while at the same time conducting tests to uncover errors

associated with interfacing. The objective is to take unit tested modules and

build a program structure that has been dictated by design. Bottom-up

integration is the traditional strategy used to integrate the components of a

software system into functioning whole.

Bottom-up integration consists of unit test followed by testing of the

entire system. A sub-system consists of several modules that communicated

with other defined interface.

The system was done the integration testing. All the modules were tested

for their compatibility with other modules .They test was almost successful.

All the modules coexisted very well, with almost no bugs. All the modules

were encapsulated very well so as to not hamper the execution of other

modules.

[Type text]
3. Validation Testing

After validation testing, software is completely assembled as a package,

interfacing errors that have been uncovered and corrected and the final series

of software test; the validation test begins. Steps taken during software

design and testing can greatly improve the probability of successful

integration in the larger system. System testing is actually a series of

different tests whose primary purpose is to fully exercise the compute

based system.

4. Recovery Testing

It is a system that forces the software to fail in a variety of ways and

verifies that the recovery is properly performed.

5. Security Testing

It attempts to verify that protection mechanisms built into a system will

in fact protect it from improper penetration. The systems security must of

course be tested from in vulnerability form frontal attack.

6. Stress Testing

Stress tools are designed to confront programs with abnormal

situations. Stress testing executes a system in a manner that demands

resources in abnormal quantity and volume.

[Type text]
7. Black Box Testing

Black box testing is done to find out the following information as shown

in below:

1. Incorrect or missing functions.

2. Interface errors.

3. Errors or database access.

4. Performance error.

5. Termination error.

The mentioned testing is carried out successfully for this

application according to the users requirement specification.

8. Test Data Output

After preparing test data, the system under study is tested using

the test data. While testing the system using test data, errors are again

uncovered and corrected by using above testing and corrections are

also noted for future use.

[Type text]
5. Conclusion & Advantageous

5.1 Conclusion:

The ACCOUNTING MANAGEMENT SYSTEM is a great improvement over the

manual system using case fields and paper. The computerization of the system has

sped up the process. In the current system, the front office managing is very slow.

The hospital managing system was thoroughly checked and tested with dummy

data and thus is found to be very reliable.

Advantages:

It is fast, efficient and reliable

Avoids data redundancy and inconsistency

Very user-friendly

Easy accessibility of data

Number of personnel required is considerably less

Provides more security and integrity to data

[Type text]
6. Bibliography:

Books

A Complete Guide to Programming in Visual Basic .6.0

-Mohammed Azam

A Complete Visual Basic 6 Training Course: How to Programme:

Package

-Harvey M deitel,Paul j deitel,Tem R Neito

Advanced Programming Using Visual Basic: Version 6.0

-Julia Case Bradley

Access 20037Power Programming with VBA

-Allen G Taylor

Advanced MS Visual Basic

-Peter Morris

5.1 Reference:
www.associatedcontent.com

www.members.tripod.com

www.project-download.com

[Type text]
[Type text]

You might also like