Sie sind auf Seite 1von 55

UNIVERSITY OF WAH

All glories be to almighty Allah, the eternal creature of this universe, the most
beneficent, the merciful, the gracious and compassionate and all praises, respects
and darood-o-salam are due to his holy prophet (PBUH) whose blessings and
exaltations flourished our thoughts and thrived our ambition
We are highly indebted to our supervisor SIR SAJID & SIR MUZAMIL for her
valuable instruction, unfailing encouragement and step-to-step guidance during the
research period and project work. Without her help it would have been impossible
to complete this task. Special thanks to our principle SIR SHEAZAD MALIK. For
his best and every possible co-operation.
Finally we offer our humble gratituad to our affectionate parents, brothers and
sisters for their help, encouragement and well wish for our success.

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

DEDICATIONS

WE DEDICATE OUR ACHIEVEMENT TO


OUR LOVING MOTHER AND FATHER
WITHOUT WHOM WE ARE NOTHING
AT ALL.

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

TABLE OF CONTENTS

➢ INTRODUCTION
➢ WHY PROJECT DEVELOPED IN VB
➢ PROBLEM STATEMENT
➢ DRAWBACKS OF EXISTING SYSTEM
➢ ADVANTAGES OF PURPOSED SYSTEM
➢ FEASIBILITY STUDY
➢ SYSTEM DESIGN
➢ SYSTEM IMPLEMENTATION
➢ DATA FLOW DIAGRAMS (DFDs)
➢ PROJECT LAYOUT & RELATION LAYOUT
➢ PROJECT FLOW
➢ FINAL COMPLICATION

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

WHY THE PROJECT IS DEVELOPED IN VB


When we decided to make the project of “Admission system of university of wah” we think
much that weather work in packages are in language it is quit difficult for anyone to decide
weather to work in package or language as each language has its own limitation we examine the
advantage, disadvantages, flexibility and facilities of different packages and languages and
decided to make our project in languages. Many facilities that attract us to select VB for our
project.
1. VB is sophisticated programming facility and provide magnificent programming
facilities. it is very easy to use and we can get max out put providing min input.
2. Its commands are very easy and frequent.
3. It is very powerful data base management.
4. it allows us to create ,update ,display and print a data base .
5. Sufficient number of database and field in each database is available.
6. It allows us to control input edit data perform mathematical computation and
procedure and produce screen or printed out put.
7. Index sorting facilities provides easy approach to records in specific order easily.
8. Sufficient number of different files in available.
9. It has the menu editor commands to create menu in the program.
10. Active X controls are available to use build in window object.

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

BENEFITS OF PURPOSED SYSTEM


The purpose information system retrieval system regarding check in and check out and pay
system of is designed after conducting detailed analysis of the existing system. The purposed
system is there fore designed keeping in mind the demands and requirements of the organization.
The system proposal is composed of two portion deals with the computerization of processing in
information and second portoin deal with the pre and post processing portion of the purposed
system. A purely analytic approach has been made to solve the difficulty and problems in best
and benefiting manner. We will discuss both these portions separately, but before we will discuss
the purposed system. Let we firstly define the objective and goals of the purposed system
because it is important to establish some objective that the purposed system must achieve

1.UPDATION.
Updating was one of the worst problems in previous system, correlation was of errors in the
recorded data was not so easy and the manual updation didn’t look too good.

2.STATIONARY AND SPACE.


In the previous system the paper work was needed for storing and maintaining record, which in
turned needed a lot of space. This unnecessary wastage of stationary and space was too reduce in
the computerize system to great extend.

3.SECURITY.
the computerizes system give us security of record in form of password. It gives us backup
facilities that will be prepared on floppy disk. The purposed system has to be more users friendly
in many aspects like easy data entry, efficient reporting and sophisticated output, easy quick
searching of record.

4.PRINTING FACILITY.
In the manual system, when information was retrieved, it written or typed by user him self.
While in the computerized system we have to provide printing facility. The request for required
information was given and printed reports on the paper using printer.

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

DRAW BACKS OF
EXISTING SYSTEM
In the following lines drawbacks or limitations of the present system are discussed. These
limitations are other then the facts, which every manual system has. The following are the
drawbacks of manual system.
1.THE TIME FACTOR
The time factor plays very important role in the efficiency of system. This factor is making all
the organizational realization. As the present is operating is manually so its speed to query or
posting of new entries is totally tedious.

2.STORAGE MEDIA.
Its the factor several register are maintained for this purpose. And daily payment of customer
kept on different register. Updating of these payments some time create problems. Search of
desired records wastes a lot of time.

3.MANUAL CALCULATION.
The main purpose of the study is to computerized the access of information record and different
queries related to information and also to generate the required reports.

4.RECORD SECURITY.
In the present system the record of “ADMISSION SYSTEM” and other information are kept
on the papers and register. The documents and registers are not secured and accessible to one.

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

5.REPORT GENRATION.
The reports generated in the present systems needs a lot of hard work if processed in the present
method because first the form designed by using the package then record are typed on this form
hence the chances of errors remains the same.

6.REQUIRED OUTPUT.
Since this project is mainly concerned with providing the relevant information to the concerned
parents in which different types of searches are involved. So many numbers of above-mentioned
categories may be required at any time.

7.REDUNDANCY.
there is high level of redundancy from storage point of view in the present system. All
information stored on the paper needs more space to be occupied, which in turn causes wastage
of time, stationary, space, and effort the duplication of work in also considerable.

8.WASTAGE OF TIME.
Huge registers have to be maintained for the purpose of handling data related information, which
results in wastage of time and stationary. A single report may be repeated two or three times
before compiling final reports.

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

FEASIBILITY STUDY
The key consideration are involve in feasibility analysis. We check the new system and its
implementation in the light of feasibility study. For implementation of new system, we consider
these three keys, which are discussed as follows.

1.Operational Feasibility.
In the purposed system, no extra staff is required. And present staff can sufficiently handle the
purposed system, if they have simple knowledge of pc computers. If the maximum benefits are
required on the urgently basis then the present staff can replace by the people having good
knowledge about pc computers.

⇒ Hardware selection
In the view of hardware selection for the purposed system, we work on the following guidelines.
1. First of all analyze the requirement of user.
2. Hardware has maximum storage capacity to store data.
3. Hardware, which has produce results extremely high speed.
4. Hardware, which is more reliable and valid up to long period.
5. Printer having maximum speed of printing.
In the view of above consideration the following hardware which can provide maximum
benefits to user.
⇒ Pentium III
⇒ LG monitor
⇒ Laser printer

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

⇒ SOFTWARE SELECTION
In the vie of soft ware selection we work on the following points.
1. User’s specification.
2. Easy to use.
3. Reliable.
4. Provide backup facility.
5. Minimum cost.
6. Capacity and feasibility.
In the view of above we consider the following software as under.
⇒ Windows 2000
⇒ Visual basic & access

2.ECONOMIC FEASIBILITY.
At this stage it is very important how much time is required to pay back in this purposed system.
We consider only the time taken to return the original investment.

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

3. TECHNICAL FEASIBILITY
Technical feasibility is very important aspect that we have to consider very serio9usly while
doing our feasibility study. If there is already computer system exists and administration has
some fear about handling of such huge type of data through computer. But after some very
detailed meeting with staff. The seemed to understand the purposed system is the only the
solution of problem.

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

IMPLEMENTATION
In this chapter it is explained that how the present system has to be replaced by the
new system.
This is called implementation. The objective of implementation is to transform the
purposed function in the functioning form.
Be used in this chapter first of all the possible methods that can to implement the
proposed system are discussed and at the end in view of the need of the organization
are suitable method of implementing the new system is to proposed.
After deciding a suitable method of implementation it was carried out in the following
steps.

➢ Planning and scheduling of the implementation process..


➢ Final system testing.
➢ Establishment of standard of the organization.
➢ Conversion phase.

There are four conversion methods, which are used to implement system.
These four methods are:

1.direct conversion.
2.parallel conversion.
3.pilot conversion.
4.piecemeal conversion.

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

1.DIRECT CONVERSION

in this method of conversion the present system is stop and new system is implemented at once.
This method is mostly adopted in such cases when the proposed system is entirely different from
the present system. So all the activities of a present system are finished before a prepossessed
time and after the new system is started.

2.PARALLEL IMPLIMENTATION

this method of conversion the old system continuous to work in parallel with the new system
until the new system is fully checked for its accuracy when the organization is fully satisfied that
the new system is producing the desire result when old system abandoned. In other words the old
system runs with the new system until the new one proves it’s worth.
1. When the result produced by the new and old system are more or less same then this
method is more useful then the other methods.
2. Even if the system flops due to any reason the old system is available as a backup.
3. The efficiency of new system can be compared with old system and if the results are
satisfactory then implementation.

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

3.GRADUAL CONVERSION
In this method new system implemented in a part of the organization. When system starts
functioning correctely then it is implemented in the other organization. Mostly a subsystem of a
new system introduced in old system in order to check its performance. In this type of
implementation there is gape between abandoning as the version of the direct conversion.
This method has no particular advantage over the other methods. If the new system gets failed
then this system can produce result. Before implementing the new system all the restriction all
the implement icon of the organization were kept in mind and following suggestion were made
for each method. This data of the organization is frequently searched so direct conversion is not
possible as in case of any minor failure. The organization will not be able to provide in the time
pilot conversion is not possible. Since we are never sure that even if the pilot subsystem is
successful the remaining will work successfully. The place meal method has no considerable
advantages so the most suitable method of the organization is the parallel conversion.

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

INTRODUCTION

Today almost every organization has a great deal for efficient data processing in order to cope
with the increasing complexity of the problem. Data base system is necessary to provide the
management with required information for decision–making planning and control activities.
Computers provide extended capability for the information of data base management system to
get maximum out put of the information available.
With the advances in computer technology, more accurate and timely information is available to
decision makers at all organizational levels.
Manual methods are insufficient to cope with increasing

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

Problems statements
The world is changing very fastly. Technological advancement has brought tremendous changes
in the social and economical structure of the society. It has gently affected the human behavior as
well. Now man no longer waits for a place of information instead of eager to get as quickly as
possible. The old and crud conventional method are dying now versatile and sophisticated tools
are being applied foe information retrievals, computerization is the need of the day.

1. Record keeping
Record keeping is bid problem in existing system. All data recorded on registers, which become
time consuming process, particularly in rush days. Registers were unable to provide up to date
information about the payment and bills of customers.

2.Updating Of Information
The registers present i n the stores can not provide latest and up to date information about any
type of record

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

SYSTEM DESIGN
The system design consists of three major steps. They are interlinking with each other. Each of
this step in system designing has its own importance, there fore each step is described in detail
bellow.
➢ Input designing
➢ Output designing
➢ File designing

1.Input Design

The first practical step in system designing is input design based on the need of the output. The
information in the new form can not be entered into the computer ,because it is the wastage of
precious computer memory.
Another important point in the input design is result of output of a system. If an information in
the processing not in the output, it is useless for a computer as far as any other system is
concerned. Hence it is just wastage of computer memory.
Computer memory can be also be saved by the use of codes. The fixed or distinct set of
information need in every record. In this system this technique is use for different set of
information.

2.Output Design

In output designing two types of out are generated by the system named:
⇒ Screen output
⇒ Printed output
The reports are designed in such a manner so that each code used in input is replaced by its
value. The information required for a report is provided by the system. The format for the output
can be seen in the appendix b of this report. These reports fulfill the requirement of the

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
management. The information represented in this reports are accurate and reliable, so that one of
the objective can be achieved.
A special attention given to screen designing. The entire screen in the system designed to make
sure that user does not face any difficulty in the system. The screen is designed by the extended
ASCII character b/w 177 and 223. This technique is adopted to make the screen beautiful. For
the operations of addition, edit, and report a separator memory provided. The design of each
screen is provided in the appendix.

3.FILE DESIGN

The file designing of the fundamental importance in a system. There fore the files in the
purposed system are designed after the detail analysis of the structure of the information required
in the

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

reports. The classification format and retrieval of information are also considered before the
designing. The feature extension of the system is also considered.
The files are designed on the basis of specification of information format of input designing,
processing, and output designing.

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

DFDs

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

Project Layouts

Private Sub MDIForm_Load()


Form1.Show
End Sub

Private Sub mnucusts_Click()


FRMcUSTOMERS.Show
End Sub

Private Sub mnudept_Click()


frmdep.Show
End Sub

Private Sub mnudesig_Click()


frmdsg.Show
End Sub

Private Sub mnuempss_Click()


EMPLOYEES.Show
End Sub

Private Sub mnuexit_Click()


Unload Me
End Sub

Private Sub mnuexp_Click()


RPTEXPENCES.Show
End Sub

Private Sub mnuexps_Click()


EXPENCES.Show
End Sub

Private Sub mnuexptypes_Click()


EXPENCETYPE.Show
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

Private Sub mnupurchase_Click()


PURCHASE.Show
End Sub

Private Sub mnuraw_Click()


RAWMETERIAL.Show
End Sub

Private Sub mnusales_Click()


SALES.Show
End Sub

Private Sub mnusuppliers_Click()


SUPPLIER.Show
End Sub

Private Sub mundeprep_Click()


rptsales.Show
End Sub

Private Sub repcusts_Click()


rptCustomers.Show
End Sub

Private Sub repdesig_Click()


RPTDESIGNATION.Show
End Sub

Private Sub repemps_Click()


rptemployees.Show
End Sub

Private Sub repexptype_Click()


RPTexpencetypes.Show
End Sub

Private Sub reppurc_Click()


rptpurchase.Show
End Sub

Private Sub repsales_Click()


rptsales.Show
End Sub

Private Sub spk_Click()


frmAbout.Show
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

Dim Spark As ADODB.Recordset

Private Sub cmdadd_Click()


Spark.AddNew
AddEditRec
txtCUATOMERID.Text = Spark.RecordCount + 10
txtCOMPANYNAME.SetFocus
End Sub

Private Sub cmddel_Click()


If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes Then
Spark.Delete adAffectCurrent
Spark.MoveFirst
FirstDisabled
End If
End Sub

Private Sub cmdedit_Click()


AddEditRec
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
Private Sub cmdexit_Click()
If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes Then
Unload Me
End If
End Sub

Private Sub cmdfind_Click()


Set frmSearch.rstName = Spark
frmSearch.Show
End Sub

Private Sub cmdfirst_Click()


Spark.MoveFirst
FirstDisabled
End Sub
Private Sub cmdlast_Click()
Spark.MoveLast
lastdisabled
End Sub
Private Sub cmdnext_Click()
If Spark.AbsolutePosition = Spark.RecordCount Then
Spark.MoveLast
lastdisabled
Else
Spark.MoveNext
AllEnabled
End If
End Sub

Private Sub cmdprev_Click()


If Spark.AbsolutePosition = 1 Then
Spark.MoveFirst
FirstDisabled
Else
Spark.MovePrevious
AllEnabled
End If
End Sub

Private Sub cmdsave_Click()


If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes Then
Spark.Update
SaveRec
Else
Spark.CancelUpdate
SaveRec
End If
End Sub

Private Sub Form_Load()

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
Set Spark = DESparklette.rsCUSTOMERS
Frame1.Enabled = False
Spark.MoveFirst
FirstDisabled
Me.Height = 7860
Me.Width = 10335
cmdsave.Enabled = False
End Sub

Sub FirstDisabled()
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub lastdisabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = False
cmdlast.Enabled = False
End Sub

Sub AllEnabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub AddEditRec()
Frame1.Enabled = True
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = False
cmdlast.Enabled = False
cmdadd.Enabled = False
cmdedit.Enabled = False
cmdsave.Enabled = True
cmdfind.Enabled = False
cmdexit.Enabled = False
cmddel.Enabled = False
End Sub
Sub SaveRec()
Frame1.Enabled = False
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
cmdadd.Enabled = True
cmdedit.Enabled = True
cmdsave.Enabled = False

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
cmdfind.Enabled = True
cmdexit.Enabled = True
cmddel.Enabled = True

Dim Spark As ADODB.Recordset

Private Sub cmdadd_Click()


Spark.AddNew
AddEditRec
txtDEPTID.Text = Spark.RecordCount + 1
txtDEPARTNAME.SetFocus
End Sub

Private Sub cmddel_Click()


If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes Then
Spark.Delete adAffectCurrent
Spark.MoveFirst
FirstDisabled
End If
End Sub

Private Sub cmdedit_Click()


AddEditRec
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

Private Sub cmdexit_Click()


If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes Then
Unload Me
End If
End Sub

Private Sub cmdfind_Click()


Set frmSearch.rstName = Spark
frmSearch.Show
End Sub

Private Sub cmdfirst_Click()


Spark.MoveFirst
FirstDisabled
End Sub
Private Sub cmdlast_Click()
Spark.MoveLast
lastdisabled
End Sub
Private Sub cmdnext_Click()
If Spark.AbsolutePosition = Spark.RecordCount Then
Spark.MoveLast
lastdisabled
Else
Spark.MoveNext
AllEnabled
End If
End Sub

Private Sub cmdprev_Click()


If Spark.AbsolutePosition = 1 Then
Spark.MoveFirst
FirstDisabled
Else
Spark.MovePrevious
AllEnabled
End If
End Sub

Private Sub cmdsave_Click()


If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes Then
Spark.Update
SaveRec
Else
Spark.CancelUpdate
SaveRec
End If
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
Private Sub Form_Load()
Set Spark = DESparklette.rsDEPARTMENTS
Frame1.Enabled = False
Spark.MoveFirst
FirstDisabled
Me.Height = 7320
Me.Width = 9495
cmdsave.Enabled = False
End Sub

Sub FirstDisabled()
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub lastdisabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = False
cmdlast.Enabled = False
End Sub

Sub AllEnabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub AddEditRec()
Frame1.Enabled = True
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = False
cmdlast.Enabled = False
cmdadd.Enabled = False
cmdedit.Enabled = False
cmdsave.Enabled = True
cmdfind.Enabled = False
cmdexit.Enabled = False
cmddel.Enabled = False
End Sub
Sub SaveRec()
Frame1.Enabled = False
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
cmdadd.Enabled = True
cmdedit.Enabled = True

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
cmdsave.Enabled = False
cmdfind.Enabled = True
cmdexit.Enabled = True
cmddel.Enabled = True
End Sub

Dim Spark As ADODB.Recordset

Private Sub cmdadd_Click()


Spark.AddNew
AddEditRec
txtDESIGID.Text = Spark.RecordCount + 1
txtDESIGDESC.SetFocus
End Sub

Private Sub cmddel_Click()


If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes Then
Spark.Delete adAffectCurrent
Spark.MoveFirst

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
FirstDisabled
End If
End Sub

Private Sub cmdedit_Click()


AddEditRec
End Sub

Private Sub cmdexit_Click()


If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes Then
Unload Me
End If
End Sub

Private Sub cmdfind_Click()


Set frmSearch.rstName = Spark
frmSearch.Show
End Sub

Private Sub cmdfirst_Click()


Spark.MoveFirst
FirstDisabled
End Sub
Private Sub cmdlast_Click()
Spark.MoveLast
lastdisabled
End Sub
Private Sub cmdnext_Click()
If Spark.AbsolutePosition = Spark.RecordCount Then
Spark.MoveLast
lastdisabled
Else
Spark.MoveNext
AllEnabled
End If
End Sub

Private Sub cmdprev_Click()


If Spark.AbsolutePosition = 1 Then
Spark.MoveFirst
FirstDisabled
Else
Spark.MovePrevious
AllEnabled
End If
End Sub

Private Sub cmdsave_Click()


If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes Then
Spark.Update

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
SaveRec
Else
Spark.CancelUpdate
SaveRec
End If
End Sub

Private Sub Form_Load()


Set Spark = DESparklette.rsDESIGNATION
Frame1.Enabled = False
Me.Height = 9000
Me.Width = 9195
cmdsave.Enabled = False
End Sub

Sub FirstDisabled()
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub lastdisabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = False
cmdlast.Enabled = False
End Sub

Sub AllEnabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub AddEditRec()
Frame1.Enabled = True
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = False
cmdlast.Enabled = False
cmdadd.Enabled = False
cmdedit.Enabled = False
cmdsave.Enabled = True
cmdfind.Enabled = False
cmdexit.Enabled = False
cmddel.Enabled = False
End Sub
Sub SaveRec()
Frame1.Enabled = False
cmdfirst.Enabled = True

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
cmdadd.Enabled = True
cmdedit.Enabled = True
cmdsave.Enabled = False
cmdfind.Enabled = True
cmdexit.Enabled = True
cmddel.Enabled = True

Dim Spark As ADODB.Recordset

Private Sub cmdadd_Click()


Spark.AddNew
AddEditRec
txtPLNO.Text = Spark.RecordCount + 100
txtNAME.SetFocus
End Sub

Private Sub cmddel_Click()


If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes Then
Spark.Delete adAffectCurrent

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
Spark.MoveFirst
FirstDisabled
End If
End Sub

Private Sub cmdedit_Click()


AddEditRec
End Sub

Private Sub cmdexit_Click()


If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes Then
Unload Me
End If
End Sub

Private Sub cmdfind_Click()


Set frmSearch.rstName = Spark
frmSearch.Show
End Sub

Private Sub cmdfirst_Click()


Spark.MoveFirst
FirstDisabled
End Sub
Private Sub cmdlast_Click()
Spark.MoveLast
lastdisabled
End Sub
Private Sub cmdnext_Click()
If Spark.AbsolutePosition = Spark.RecordCount Then
Spark.MoveLast
lastdisabled
Else
Spark.MoveNext
AllEnabled
End If
End Sub

Private Sub cmdprev_Click()


If Spark.AbsolutePosition = 1 Then
Spark.MoveFirst
FirstDisabled
Else
Spark.MovePrevious
AllEnabled
End If
End Sub

Private Sub cmdsave_Click()


If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes Then

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
Spark.Update
SaveRec
Else
Spark.CancelUpdate
SaveRec
End If
End Sub

Private Sub Form_Load()


Set Spark = DESparklette.rsEMPLOYEES
Frame1.Enabled = False
Spark.MoveFirst
FirstDisabled
Me.Height = 7710
Me.Width = 9765
cmdsave.Enabled = False
End Sub

Sub FirstDisabled()
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub lastdisabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = False
cmdlast.Enabled = False
End Sub

Sub AllEnabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub AddEditRec()
Frame1.Enabled = True
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = False
cmdlast.Enabled = False
cmdadd.Enabled = False
cmdedit.Enabled = False
cmdsave.Enabled = True
cmdfind.Enabled = False
cmdexit.Enabled = False
cmddel.Enabled = False
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
Sub SaveRec()
Frame1.Enabled = False
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
cmdadd.Enabled = True
cmdedit.Enabled = True
cmdsave.Enabled = False
cmdfind.Enabled = True
cmdexit.Enabled = True
cmddel.Enabled = True

Dim Spark As ADODB.Recordset

Private Sub cmdadd_Click()


Spark.AddNew
AddEditRec
txtEXPENCEID.Text = Spark.RecordCount + 1
txtDESCRIPTION.SetFocus
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

Private Sub cmddel_Click()


If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes Then
Spark.Delete adAffectCurrent
Spark.MoveFirst
FirstDisabled
End If
End Sub

Private Sub cmdedit_Click()


AddEditRec
End Sub

Private Sub cmdexit_Click()


If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes Then
Unload Me
End If
End Sub

Private Sub cmdfind_Click()


Set frmSearch.rstName = Spark
frmSearch.Show
End Sub

Private Sub cmdfirst_Click()


Spark.MoveFirst
FirstDisabled
End Sub
Private Sub cmdlast_Click()
Spark.MoveLast
lastdisabled
End Sub
Private Sub cmdnext_Click()
If Spark.AbsolutePosition = Spark.RecordCount Then
Spark.MoveLast
lastdisabled
Else
Spark.MoveNext
AllEnabled
End If
End Sub

Private Sub cmdprev_Click()


If Spark.AbsolutePosition = 1 Then
Spark.MoveFirst
FirstDisabled
Else
Spark.MovePrevious
AllEnabled
End If

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
End Sub

Private Sub cmdsave_Click()


If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes Then
Spark.Update
SaveRec
Else
Spark.CancelUpdate
SaveRec
End If
End Sub

Private Sub Form_Load()


Set Spark = DESparklette.rsEXPENCETYPE
Frame1.Enabled = False
Spark.MoveFirst
FirstDisabled
Me.Height = 8235
Me.Width = 8640
cmdsave.Enabled = False
End Sub

Sub FirstDisabled()
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub lastdisabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = False
cmdlast.Enabled = False
End Sub

Sub AllEnabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub AddEditRec()
Frame1.Enabled = True
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = False
cmdlast.Enabled = False
cmdadd.Enabled = False
cmdedit.Enabled = False
cmdsave.Enabled = True

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
cmdfind.Enabled = False
cmdexit.Enabled = False
cmddel.Enabled = False
End Sub
Sub SaveRec()
Frame1.Enabled = False
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
cmdadd.Enabled = True
cmdedit.Enabled = True
cmdsave.Enabled = False
cmdfind.Enabled = True
cmdexit.Enabled = True
cmddel.Enabled = True
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

Dim Spark As ADODB.Recordset

Private Sub cmdadd_Click()


Spark.AddNew
AddEditRec
End Sub

Private Sub cmddel_Click()


If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes Then
Spark.Delete adAffectCurrent
Spark.MoveFirst
FirstDisabled
End If
End Sub

Private Sub cmdedit_Click()


AddEditRec
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
Private Sub cmdexit_Click()
If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes Then
Unload Me
End If
End Sub

Private Sub cmdfind_Click()


Set frmSearch.rstName = Spark
frmSearch.Show
End Sub

Private Sub cmdfirst_Click()


Spark.MoveFirst
FirstDisabled
End Sub
Private Sub cmdlast_Click()
Spark.MoveLast
lastdisabled
End Sub
Private Sub cmdnext_Click()
If Spark.AbsolutePosition = Spark.RecordCount Then
Spark.MoveLast
lastdisabled
Else
Spark.MoveNext
AllEnabled
End If
End Sub

Private Sub cmdprev_Click()


If Spark.AbsolutePosition = 1 Then
Spark.MoveFirst
FirstDisabled
Else
Spark.MovePrevious
AllEnabled
End If
End Sub

Private Sub cmdsave_Click()


If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes Then
Spark.Update
SaveRec
Else
Spark.CancelUpdate
SaveRec
End If
End Sub

Private Sub Form_Load()

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
Set Spark = DESparklette.rsEXPENCES
Frame1.Enabled = False
Spark.MoveFirst
FirstDisabled
Me.Height = 8385
Me.Width = 9420
cmdsave.Enabled = False
End Sub

Sub FirstDisabled()
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub lastdisabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = False
cmdlast.Enabled = False
End Sub

Sub AllEnabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub AddEditRec()
Frame1.Enabled = True
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = False
cmdlast.Enabled = False
cmdadd.Enabled = False
cmdedit.Enabled = False
cmdsave.Enabled = True
cmdfind.Enabled = False
cmdexit.Enabled = False
cmddel.Enabled = False
End Sub
Sub SaveRec()
Frame1.Enabled = False
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
cmdadd.Enabled = True
cmdedit.Enabled = True
cmdsave.Enabled = False

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
cmdfind.Enabled = True
cmdexit.Enabled = True
cmddel.Enabled = True

Dim Spark As ADODB.Recordset

Private Sub cmdadd_Click()


Spark.AddNew
AddEditRec
End Sub

Private Sub cmddel_Click()


If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes Then
Spark.Delete adAffectCurrent
Spark.MoveFirst

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
FirstDisabled
End If
End Sub

Private Sub cmdedit_Click()


AddEditRec
End Sub

Private Sub cmdexit_Click()


If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes Then
Unload Me
End If
End Sub

Private Sub cmdfind_Click()


Set frmSearch.rstName = Spark
frmSearch.Show
End Sub

Private Sub cmdfirst_Click()


Spark.MoveFirst
FirstDisabled
End Sub
Private Sub cmdlast_Click()
Spark.MoveLast
lastdisabled
End Sub
Private Sub cmdnext_Click()
If Spark.AbsolutePosition = Spark.RecordCount Then
Spark.MoveLast
lastdisabled
Else
Spark.MoveNext
AllEnabled
End If
End Sub

Private Sub cmdprev_Click()


If Spark.AbsolutePosition = 1 Then
Spark.MoveFirst
FirstDisabled
Else
Spark.MovePrevious
AllEnabled
End If
End Sub

Private Sub cmdsave_Click()


If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes Then
Spark.Update

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
SaveRec
Else
Spark.CancelUpdate
SaveRec
End If
End Sub

Private Sub Form_Load()


Set Spark = DESparklette.rsPURCHASE
Frame1.Enabled = False
Spark.MoveFirst
FirstDisabled
Me.Height = 9000
Me.Width = 8685
cmdsave.Enabled = False
End Sub

Sub FirstDisabled()
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub lastdisabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = False
cmdlast.Enabled = False
End Sub

Sub AllEnabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub AddEditRec()
Frame1.Enabled = True
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = False
cmdlast.Enabled = False
cmdadd.Enabled = False
cmdedit.Enabled = False
cmdsave.Enabled = True
cmdfind.Enabled = False
cmdexit.Enabled = False
cmddel.Enabled = False
End Sub
Sub SaveRec()

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
Frame1.Enabled = False
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
cmdadd.Enabled = True
cmdedit.Enabled = True
cmdsave.Enabled = False
cmdfind.Enabled = True
cmdexit.Enabled = True
cmddel.Enabled = True
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

Dim Spark As ADODB.Recordset

Private Sub cmdadd_Click()


Spark.AddNew
AddEditRec
txtMATRIALID.Text = Spark.RecordCount + 1
txtDESCRIPTION.SetFocus
End Sub

Private Sub cmddel_Click()


If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes Then
Spark.Delete adAffectCurrent
Spark.MoveFirst
FirstDisabled
End If
End Sub

Private Sub cmdedit_Click()


AddEditRec
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

Private Sub cmdexit_Click()


If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes Then
Unload Me
End If
End Sub

Private Sub cmdfind_Click()


Set frmSearch.rstName = Spark
frmSearch.Show
End Sub

Private Sub cmdfirst_Click()


Spark.MoveFirst
FirstDisabled
End Sub
Private Sub cmdlast_Click()
Spark.MoveLast
lastdisabled
End Sub
Private Sub cmdnext_Click()
If Spark.AbsolutePosition = Spark.RecordCount Then
Spark.MoveLast
lastdisabled
Else
Spark.MoveNext
AllEnabled
End If
End Sub

Private Sub cmdprev_Click()


If Spark.AbsolutePosition = 1 Then
Spark.MoveFirst
FirstDisabled
Else
Spark.MovePrevious
AllEnabled
End If
End Sub

Private Sub cmdsave_Click()


If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes Then
Spark.Update
SaveRec
Else
Spark.CancelUpdate
SaveRec
End If
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
Private Sub Form_Load()
Set Spark = DESparklette.rsRAWMATRIAL
Frame1.Enabled = False
Me.Height = 8160
Me.Width = 8880
cmdsave.Enabled = False
End Sub
Sub FirstDisabled()
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub lastdisabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = False
cmdlast.Enabled = False
End Sub
Sub AllEnabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub AddEditRec()
Frame1.Enabled = True
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = False
cmdlast.Enabled = False
cmdadd.Enabled = False
cmdedit.Enabled = False
cmdsave.Enabled = True
cmdfind.Enabled = False
cmdexit.Enabled = False
cmddel.Enabled = False
End Sub
Sub SaveRec()
Frame1.Enabled = False
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
cmdadd.Enabled = True
cmdedit.Enabled = True
cmdsave.Enabled = False
cmdfind.Enabled = True
cmdexit.Enabled = True
cmddel.Enabled = True

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
End Sub

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH

Dim Spark As ADODB.Recordset

Private Sub cmdadd_Click()


Spark.AddNew
AddEditRec
End Sub

Private Sub cmddel_Click()


If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes Then
Spark.Delete adAffectCurrent
Spark.MoveFirst
FirstDisabled
End If
End Sub

Private Sub cmdedit_Click()

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
AddEditRec
End Sub

Private Sub cmdexit_Click()


If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes Then
Unload Me
End If
End Sub

Private Sub cmdfind_Click()


Set frmSearch.rstName = Spark
frmSearch.Show
End Sub

Private Sub cmdfirst_Click()


Spark.MoveFirst
FirstDisabled
End Sub
Private Sub cmdlast_Click()
Spark.MoveLast
lastdisabled
End Sub
Private Sub cmdnext_Click()
If Spark.AbsolutePosition = Spark.RecordCount Then
Spark.MoveLast
lastdisabled
Else
Spark.MoveNext
AllEnabled
End If
End Sub

Private Sub cmdprev_Click()


If Spark.AbsolutePosition = 1 Then
Spark.MoveFirst
FirstDisabled
Else
Spark.MovePrevious
AllEnabled
End If
End Sub

Private Sub cmdsave_Click()


If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes Then
Spark.Update
SaveRec
Else
Spark.CancelUpdate
SaveRec
End If

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
End Sub

Private Sub Form_Load()


Set Spark = DESparklette.rsSALESORDER
Frame1.Enabled = False
Spark.MoveFirst
FirstDisabled
Me.Height = 9000
Me.Width = 9090
cmdsave.Enabled = False
End Sub
Sub FirstDisabled()
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub lastdisabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = False
cmdlast.Enabled = False
End Sub
Sub AllEnabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub AddEditRec()
Frame1.Enabled = True
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = False
cmdlast.Enabled = False
cmdadd.Enabled = False
cmdedit.Enabled = False
cmdsave.Enabled = True
cmdfind.Enabled = False
cmdexit.Enabled = False
cmddel.Enabled = False
End Sub
Sub SaveRec()
Frame1.Enabled = False
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
cmdadd.Enabled = True
cmdedit.Enabled = True

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
cmdsave.Enabled = False
cmdfind.Enabled = True
cmdexit.Enabled = True
cmddel.Enabled = True

Dim Spark As ADODB.Recordset

Private Sub cmdadd_Click()


Spark.AddNew
AddEditRec
txtSUPPLYERID.Text = Spark.RecordCount + 1
txtCOMPANYNAME.SetFocus
End Sub

Private Sub cmddel_Click()


If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes Then
Spark.Delete adAffectCurrent
Spark.MoveFirst
FirstDisabled
End If

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
End Sub

Private Sub cmdedit_Click()


AddEditRec
End Sub

Private Sub cmdexit_Click()


If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes Then
Unload Me
End If
End Sub

Private Sub cmdfind_Click()


Set frmSearch.rstName = Spark
frmSearch.Show
End Sub

Private Sub cmdfirst_Click()


Spark.MoveFirst
FirstDisabled
End Sub
Private Sub cmdlast_Click()
Spark.MoveLast
lastdisabled
End Sub
Private Sub cmdnext_Click()
If Spark.AbsolutePosition = Spark.RecordCount Then
Spark.MoveLast
lastdisabled
Else
Spark.MoveNext
AllEnabled
End If
End Sub

Private Sub cmdprev_Click()


If Spark.AbsolutePosition = 1 Then
Spark.MoveFirst
FirstDisabled
Else
Spark.MovePrevious
AllEnabled
End If
End Sub

Private Sub cmdsave_Click()


If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes Then
Spark.Update
SaveRec
Else

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
Spark.CancelUpdate
SaveRec
End If
End Sub

Private Sub Form_Load()


Set Spark = DESparklette.rsSUPPLIER
Frame1.Enabled = False
Spark.MoveFirst
FirstDisabled
Me.Height = 8355
Me.Width = 8625
cmdsave.Enabled = False
End Sub

Sub FirstDisabled()
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub lastdisabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = False
cmdlast.Enabled = False
End Sub

Sub AllEnabled()
cmdfirst.Enabled = True
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
End Sub
Sub AddEditRec()
Frame1.Enabled = True
cmdfirst.Enabled = False
cmdprev.Enabled = False
cmdnext.Enabled = False
cmdlast.Enabled = False
cmdadd.Enabled = False
cmdedit.Enabled = False
cmdsave.Enabled = True
cmdfind.Enabled = False
cmdexit.Enabled = False
cmddel.Enabled = False
End Sub
Sub SaveRec()
Frame1.Enabled = False
cmdfirst.Enabled = True

RESEARCH IS CONDUCTED BY:


UNIVERSITY OF WAH
cmdprev.Enabled = True
cmdnext.Enabled = True
cmdlast.Enabled = True
cmdadd.Enabled = True
cmdedit.Enabled = True
cmdsave.Enabled = False
cmdfind.Enabled = True
cmdexit.Enabled = True
cmddel.Enabled = True
End Sub

RESEARCH IS CONDUCTED BY:

Das könnte Ihnen auch gefallen