University of Wah

download University of Wah

of 55

Transcript of University of Wah

  • 8/9/2019 University of Wah

    1/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:

  • 8/9/2019 University of Wah

    2/55

    UNIVERSITY OF WAH

    DEDICATIONS

    WE DEDICATE OUR ACHIEVEMENT TOOUR LOVING MOTHER AND FATHERWITHOUT WHOM WE ARE NOTHINGAT ALL.

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    3/55

    UNIVERSITY OF WAH

    TABLE OF CONT ENTS

    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:

  • 8/9/2019 University of Wah

    4/55

    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 anddecided 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:

  • 8/9/2019 University of Wah

    5/55

    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 ininformation 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 didnt 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 requiredinformation was given and printed reports on the paper using printer.

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    6/55

    UNIVERSITY OF WAH

    DRAW BACKS OF

    EXISTING SYSTEMIn 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:

  • 8/9/2019 University of Wah

    7/55

    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 wastageof 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:

  • 8/9/2019 University of Wah

    8/55

    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 selectionIn 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:

  • 8/9/2019 University of Wah

    9/55

    UNIVERSITY OF WAH

    SOFTWARE SELECTIONIn the vie of soft ware selection we work on the following points.

    1. Users 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:

  • 8/9/2019 University of Wah

    10/55

    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 verydetailed meeting with staff. The seemed to understand the purposed system is the only the

    solution of problem.

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    11/55

    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:

  • 8/9/2019 University of Wah

    12/55

    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 systemuntil 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 its 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:

  • 8/9/2019 University of Wah

    13/55

    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:

  • 8/9/2019 University of Wah

    14/55

    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 decisionmaking 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:

  • 8/9/2019 University of Wah

    15/55

    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 toolsare 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:

  • 8/9/2019 University of Wah

    16/55

    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 ofinformation 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:

  • 8/9/2019 University of Wah

    17/55

    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 eachscreen 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:

  • 8/9/2019 University of Wah

    18/55

    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:

  • 8/9/2019 University of Wah

    19/55

    UNIVERSITY OF WAH

    DFDs

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    20/55

    UNIVERSITY OF WAH

    Project Layouts

    Private Sub MDIForm_Load()Form1.ShowEnd Sub

    Private Sub mnucusts_Click()FRMcUSTOMERS.ShowEnd Sub

    Private Sub mnudept_Click()frmdep.ShowEnd Sub

    Private Sub mnudesig_Click()frmdsg.ShowEnd Sub

    Private Sub mnuempss_Click()EMPLOYEES.ShowEnd Sub

    Private Sub mnuexit_Click()Unload MeEnd Sub

    Private Sub mnuexp_Click()RPTEXPENCES.ShowEnd Sub

    Private Sub mnuexps_Click()EXPENCES.ShowEnd Sub

    Private Sub mnuexptypes_Click()EXPENCETYPE.ShowEnd Sub

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    21/55

    UNIVERSITY OF WAH

    Private Sub mnupurchase_Click()PURCHASE.ShowEnd Sub

    Private Sub mnuraw_Click()RAWMETERIAL.ShowEnd Sub

    Private Sub mnusales_Click()SALES.ShowEnd Sub

    Private Sub mnusuppliers_Click()SUPPLIER.ShowEnd Sub

    Private Sub mundeprep_Click()rptsales.Show

    End Sub

    Private Sub repcusts_Click()rptCustomers.ShowEnd Sub

    Private Sub repdesig_Click()RPTDESIGNATION.ShowEnd Sub

    Private Sub repemps_Click()rptemployees.ShowEnd Sub

    Private Sub repexptype_Click()RPTexpencetypes.ShowEnd Sub

    Private Sub reppurc_Click()rptpurchase.ShowEnd Sub

    Private Sub repsales_Click()rptsales.ShowEnd Sub

    Private Sub spk_Click()frmAbout.ShowEnd Sub

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    22/55

    UNIVERSITY OF WAH

    Dim Spark As ADODB.Recordset

    Private Sub cmdadd_Click()Spark.AddNewAddEditRectxtCUATOMERID.Text = Spark.RecordCount + 10txtCOMPANYNAME.SetFocusEnd Sub

    Private Sub cmddel_Click()If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes ThenSpark.Delete adAffectCurrentSpark.MoveFirst

    FirstDisabledEnd IfEnd Sub

    Private Sub cmdedit_Click()AddEditRecEnd Sub

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    23/55

    UNIVERSITY OF WAH

    Private Sub cmdexit_Click()If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes ThenUnload MeEnd IfEnd Sub

    Private Sub cmdfind_Click()Set frmSearch.rstName = SparkfrmSearch.ShowEnd Sub

    Private Sub cmdfirst_Click()Spark.MoveFirstFirstDisabledEnd SubPrivate Sub cmdlast_Click()Spark.MoveLastlastdisabledEnd Sub

    Private Sub cmdnext_Click()If Spark.AbsolutePosition = Spark.RecordCount ThenSpark.MoveLastlastdisabledElseSpark.MoveNextAllEnabledEnd IfEnd Sub

    Private Sub cmdprev_Click()If Spark.AbsolutePosition = 1 ThenSpark.MoveFirstFirstDisabledElseSpark.MovePreviousAllEnabledEnd IfEnd Sub

    Private Sub cmdsave_Click()If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes ThenSpark.Update

    SaveRecElseSpark.CancelUpdateSaveRecEnd IfEnd Sub

    Private Sub Form_Load()

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    24/55

    UNIVERSITY OF WAH

    Set Spark = DESparklette.rsCUSTOMERSFrame1.Enabled = FalseSpark.MoveFirstFirstDisabledMe.Height = 7860Me.Width = 10335cmdsave.Enabled = FalseEnd Sub

    Sub FirstDisabled()cmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub lastdisabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = False

    cmdlast.Enabled = FalseEnd Sub

    Sub AllEnabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub AddEditRec()Frame1.Enabled = Truecmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Falsecmdlast.Enabled = Falsecmdadd.Enabled = Falsecmdedit.Enabled = Falsecmdsave.Enabled = Truecmdfind.Enabled = Falsecmdexit.Enabled = Falsecmddel.Enabled = FalseEnd SubSub SaveRec()

    Frame1.Enabled = Falsecmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = Truecmdadd.Enabled = Truecmdedit.Enabled = Truecmdsave.Enabled = False

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    25/55

    UNIVERSITY OF WAH

    cmdfind.Enabled = Truecmdexit.Enabled = Truecmddel.Enabled = True

    Dim Spark As ADODB.Recordset

    Private Sub cmdadd_Click()Spark.AddNewAddEditRectxtDEPTID.Text = Spark.RecordCount + 1txtDEPARTNAME.SetFocusEnd Sub

    Private Sub cmddel_Click()If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes ThenSpark.Delete adAffectCurrent

    Spark.MoveFirstFirstDisabledEnd IfEnd Sub

    Private Sub cmdedit_Click()AddEditRecEnd Sub

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    26/55

    UNIVERSITY OF WAH

    Private Sub cmdexit_Click()If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes ThenUnload MeEnd IfEnd Sub

    Private Sub cmdfind_Click()Set frmSearch.rstName = SparkfrmSearch.ShowEnd Sub

    Private Sub cmdfirst_Click()Spark.MoveFirstFirstDisabledEnd SubPrivate Sub cmdlast_Click()Spark.MoveLastlastdisabled

    End SubPrivate Sub cmdnext_Click()If Spark.AbsolutePosition = Spark.RecordCount ThenSpark.MoveLastlastdisabledElseSpark.MoveNextAllEnabledEnd IfEnd Sub

    Private Sub cmdprev_Click()If Spark.AbsolutePosition = 1 ThenSpark.MoveFirstFirstDisabledElseSpark.MovePreviousAllEnabledEnd IfEnd Sub

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

    Spark.UpdateSaveRecElseSpark.CancelUpdateSaveRecEnd IfEnd Sub

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    27/55

    UNIVERSITY OF WAH

    Private Sub Form_Load()Set Spark = DESparklette.rsDEPARTMENTSFrame1.Enabled = FalseSpark.MoveFirstFirstDisabledMe.Height = 7320Me.Width = 9495cmdsave.Enabled = FalseEnd Sub

    Sub FirstDisabled()cmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub lastdisabled()cmdfirst.Enabled = Truecmdprev.Enabled = True

    cmdnext.Enabled = Falsecmdlast.Enabled = FalseEnd Sub

    Sub AllEnabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub AddEditRec()Frame1.Enabled = Truecmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Falsecmdlast.Enabled = Falsecmdadd.Enabled = Falsecmdedit.Enabled = Falsecmdsave.Enabled = Truecmdfind.Enabled = Falsecmdexit.Enabled = Falsecmddel.Enabled = FalseEnd Sub

    Sub SaveRec()Frame1.Enabled = Falsecmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = Truecmdadd.Enabled = Truecmdedit.Enabled = True

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    28/55

    UNIVERSITY OF WAH

    cmdsave.Enabled = Falsecmdfind.Enabled = Truecmdexit.Enabled = Truecmddel.Enabled = TrueEnd Sub

    Dim Spark As ADODB.Recordset

    Private Sub cmdadd_Click()Spark.AddNewAddEditRectxtDESIGID.Text = Spark.RecordCount + 1txtDESIGDESC.SetFocusEnd Sub

    Private Sub cmddel_Click()If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes ThenSpark.Delete adAffectCurrentSpark.MoveFirst

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    29/55

    UNIVERSITY OF WAH

    FirstDisabledEnd IfEnd Sub

    Private Sub cmdedit_Click()AddEditRecEnd Sub

    Private Sub cmdexit_Click()If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes ThenUnload MeEnd IfEnd Sub

    Private Sub cmdfind_Click()Set frmSearch.rstName = SparkfrmSearch.ShowEnd Sub

    Private Sub cmdfirst_Click()Spark.MoveFirstFirstDisabledEnd SubPrivate Sub cmdlast_Click()Spark.MoveLastlastdisabledEnd SubPrivate Sub cmdnext_Click()If Spark.AbsolutePosition = Spark.RecordCount ThenSpark.MoveLastlastdisabledElseSpark.MoveNextAllEnabledEnd IfEnd Sub

    Private Sub cmdprev_Click()If Spark.AbsolutePosition = 1 ThenSpark.MoveFirstFirstDisabledElse

    Spark.MovePreviousAllEnabledEnd IfEnd Sub

    Private Sub cmdsave_Click()If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes ThenSpark.Update

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    30/55

    UNIVERSITY OF WAH

    SaveRecElseSpark.CancelUpdateSaveRecEnd IfEnd Sub

    Private Sub Form_Load()Set Spark = DESparklette.rsDESIGNATIONFrame1.Enabled = FalseMe.Height = 9000Me.Width = 9195cmdsave.Enabled = FalseEnd Sub

    Sub FirstDisabled()cmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = True

    cmdlast.Enabled = TrueEnd SubSub lastdisabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Falsecmdlast.Enabled = FalseEnd Sub

    Sub AllEnabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub AddEditRec()Frame1.Enabled = Truecmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Falsecmdlast.Enabled = Falsecmdadd.Enabled = Falsecmdedit.Enabled = False

    cmdsave.Enabled = Truecmdfind.Enabled = Falsecmdexit.Enabled = Falsecmddel.Enabled = FalseEnd SubSub SaveRec()Frame1.Enabled = Falsecmdfirst.Enabled = True

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    31/55

    UNIVERSITY OF WAH

    cmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = Truecmdadd.Enabled = Truecmdedit.Enabled = Truecmdsave.Enabled = Falsecmdfind.Enabled = Truecmdexit.Enabled = Truecmddel.Enabled = True

    Dim Spark As ADODB.Recordset

    Private Sub cmdadd_Click()

    Spark.AddNewAddEditRectxtPLNO.Text = Spark.RecordCount + 100txtNAME.SetFocusEnd Sub

    Private Sub cmddel_Click()If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes ThenSpark.Delete adAffectCurrent

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    32/55

    UNIVERSITY OF WAH

    Spark.MoveFirstFirstDisabledEnd IfEnd Sub

    Private Sub cmdedit_Click()AddEditRecEnd Sub

    Private Sub cmdexit_Click()If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes ThenUnload MeEnd IfEnd Sub

    Private Sub cmdfind_Click()Set frmSearch.rstName = SparkfrmSearch.ShowEnd Sub

    Private Sub cmdfirst_Click()Spark.MoveFirstFirstDisabledEnd SubPrivate Sub cmdlast_Click()Spark.MoveLastlastdisabledEnd SubPrivate Sub cmdnext_Click()If Spark.AbsolutePosition = Spark.RecordCount ThenSpark.MoveLastlastdisabledElseSpark.MoveNextAllEnabledEnd IfEnd Sub

    Private Sub cmdprev_Click()If Spark.AbsolutePosition = 1 ThenSpark.MoveFirstFirstDisabled

    ElseSpark.MovePreviousAllEnabledEnd IfEnd Sub

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

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    33/55

    UNIVERSITY OF WAH

    Spark.UpdateSaveRecElseSpark.CancelUpdateSaveRecEnd IfEnd Sub

    Private Sub Form_Load()Set Spark = DESparklette.rsEMPLOYEESFrame1.Enabled = FalseSpark.MoveFirstFirstDisabledMe.Height = 7710Me.Width = 9765cmdsave.Enabled = FalseEnd Sub

    Sub FirstDisabled()

    cmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub lastdisabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Falsecmdlast.Enabled = FalseEnd Sub

    Sub AllEnabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub AddEditRec()Frame1.Enabled = Truecmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = False

    cmdlast.Enabled = Falsecmdadd.Enabled = Falsecmdedit.Enabled = Falsecmdsave.Enabled = Truecmdfind.Enabled = Falsecmdexit.Enabled = Falsecmddel.Enabled = FalseEnd Sub

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    34/55

    UNIVERSITY OF WAH

    Sub SaveRec()Frame1.Enabled = Falsecmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = Truecmdadd.Enabled = Truecmdedit.Enabled = Truecmdsave.Enabled = Falsecmdfind.Enabled = Truecmdexit.Enabled = Truecmddel.Enabled = True

    Dim Spark As ADODB.Recordset

    Private Sub cmdadd_Click()Spark.AddNewAddEditRectxtEXPENCEID.Text = Spark.RecordCount + 1txtDESCRIPTION.SetFocusEnd Sub

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    35/55

    UNIVERSITY OF WAH

    Private Sub cmddel_Click()If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes ThenSpark.Delete adAffectCurrentSpark.MoveFirstFirstDisabledEnd IfEnd Sub

    Private Sub cmdedit_Click()AddEditRecEnd Sub

    Private Sub cmdexit_Click()If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes ThenUnload MeEnd IfEnd Sub

    Private Sub cmdfind_Click()Set frmSearch.rstName = SparkfrmSearch.ShowEnd Sub

    Private Sub cmdfirst_Click()Spark.MoveFirstFirstDisabledEnd SubPrivate Sub cmdlast_Click()Spark.MoveLastlastdisabledEnd SubPrivate Sub cmdnext_Click()If Spark.AbsolutePosition = Spark.RecordCount ThenSpark.MoveLastlastdisabledElseSpark.MoveNextAllEnabledEnd IfEnd Sub

    Private Sub cmdprev_Click()If Spark.AbsolutePosition = 1 ThenSpark.MoveFirstFirstDisabledElseSpark.MovePreviousAllEnabledEnd If

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    36/55

    UNIVERSITY OF WAH

    End Sub

    Private Sub cmdsave_Click()If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes ThenSpark.UpdateSaveRecElseSpark.CancelUpdateSaveRecEnd IfEnd Sub

    Private Sub Form_Load()Set Spark = DESparklette.rsEXPENCETYPEFrame1.Enabled = FalseSpark.MoveFirstFirstDisabledMe.Height = 8235Me.Width = 8640

    cmdsave.Enabled = FalseEnd Sub

    Sub FirstDisabled()cmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub lastdisabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Falsecmdlast.Enabled = FalseEnd Sub

    Sub AllEnabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub AddEditRec()

    Frame1.Enabled = Truecmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Falsecmdlast.Enabled = Falsecmdadd.Enabled = Falsecmdedit.Enabled = Falsecmdsave.Enabled = True

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    37/55

    UNIVERSITY OF WAH

    cmdfind.Enabled = Falsecmdexit.Enabled = Falsecmddel.Enabled = FalseEnd SubSub SaveRec()Frame1.Enabled = Falsecmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = Truecmdadd.Enabled = Truecmdedit.Enabled = Truecmdsave.Enabled = Falsecmdfind.Enabled = Truecmdexit.Enabled = Truecmddel.Enabled = TrueEnd Sub

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    38/55

    UNIVERSITY OF WAH

    Dim Spark As ADODB.Recordset

    Private Sub cmdadd_Click()Spark.AddNewAddEditRecEnd Sub

    Private Sub cmddel_Click()If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes ThenSpark.Delete adAffectCurrentSpark.MoveFirst

    FirstDisabledEnd IfEnd Sub

    Private Sub cmdedit_Click()AddEditRecEnd Sub

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    39/55

    UNIVERSITY OF WAH

    Private Sub cmdexit_Click()If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes ThenUnload MeEnd IfEnd Sub

    Private Sub cmdfind_Click()Set frmSearch.rstName = SparkfrmSearch.ShowEnd Sub

    Private Sub cmdfirst_Click()Spark.MoveFirstFirstDisabledEnd SubPrivate Sub cmdlast_Click()Spark.MoveLastlastdisabledEnd Sub

    Private Sub cmdnext_Click()If Spark.AbsolutePosition = Spark.RecordCount ThenSpark.MoveLastlastdisabledElseSpark.MoveNextAllEnabledEnd IfEnd Sub

    Private Sub cmdprev_Click()If Spark.AbsolutePosition = 1 ThenSpark.MoveFirstFirstDisabledElseSpark.MovePreviousAllEnabledEnd IfEnd Sub

    Private Sub cmdsave_Click()If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes ThenSpark.Update

    SaveRecElseSpark.CancelUpdateSaveRecEnd IfEnd Sub

    Private Sub Form_Load()

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    40/55

    UNIVERSITY OF WAH

    Set Spark = DESparklette.rsEXPENCESFrame1.Enabled = FalseSpark.MoveFirstFirstDisabledMe.Height = 8385Me.Width = 9420cmdsave.Enabled = FalseEnd Sub

    Sub FirstDisabled()cmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub lastdisabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = False

    cmdlast.Enabled = FalseEnd Sub

    Sub AllEnabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub AddEditRec()Frame1.Enabled = Truecmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Falsecmdlast.Enabled = Falsecmdadd.Enabled = Falsecmdedit.Enabled = Falsecmdsave.Enabled = Truecmdfind.Enabled = Falsecmdexit.Enabled = Falsecmddel.Enabled = FalseEnd SubSub SaveRec()

    Frame1.Enabled = Falsecmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = Truecmdadd.Enabled = Truecmdedit.Enabled = Truecmdsave.Enabled = False

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    41/55

    UNIVERSITY OF WAH

    cmdfind.Enabled = Truecmdexit.Enabled = Truecmddel.Enabled = True

    Dim Spark As ADODB.Recordset

    Private Sub cmdadd_Click()Spark.AddNewAddEditRecEnd Sub

    Private Sub cmddel_Click()If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes ThenSpark.Delete adAffectCurrentSpark.MoveFirst

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    42/55

    UNIVERSITY OF WAH

    FirstDisabledEnd IfEnd Sub

    Private Sub cmdedit_Click()AddEditRecEnd Sub

    Private Sub cmdexit_Click()If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes ThenUnload MeEnd IfEnd Sub

    Private Sub cmdfind_Click()Set frmSearch.rstName = SparkfrmSearch.ShowEnd Sub

    Private Sub cmdfirst_Click()Spark.MoveFirstFirstDisabledEnd SubPrivate Sub cmdlast_Click()Spark.MoveLastlastdisabledEnd SubPrivate Sub cmdnext_Click()If Spark.AbsolutePosition = Spark.RecordCount ThenSpark.MoveLastlastdisabledElseSpark.MoveNextAllEnabledEnd IfEnd Sub

    Private Sub cmdprev_Click()If Spark.AbsolutePosition = 1 ThenSpark.MoveFirstFirstDisabledElse

    Spark.MovePreviousAllEnabledEnd IfEnd Sub

    Private Sub cmdsave_Click()If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes ThenSpark.Update

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    43/55

    UNIVERSITY OF WAH

    SaveRecElseSpark.CancelUpdateSaveRecEnd IfEnd Sub

    Private Sub Form_Load()Set Spark = DESparklette.rsPURCHASEFrame1.Enabled = FalseSpark.MoveFirstFirstDisabledMe.Height = 9000Me.Width = 8685cmdsave.Enabled = FalseEnd Sub

    Sub FirstDisabled()cmdfirst.Enabled = False

    cmdprev.Enabled = Falsecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub lastdisabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Falsecmdlast.Enabled = FalseEnd Sub

    Sub AllEnabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub AddEditRec()Frame1.Enabled = Truecmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Falsecmdlast.Enabled = False

    cmdadd.Enabled = Falsecmdedit.Enabled = Falsecmdsave.Enabled = Truecmdfind.Enabled = Falsecmdexit.Enabled = Falsecmddel.Enabled = FalseEnd SubSub SaveRec()

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    44/55

    UNIVERSITY OF WAH

    Frame1.Enabled = Falsecmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = Truecmdadd.Enabled = Truecmdedit.Enabled = Truecmdsave.Enabled = Falsecmdfind.Enabled = Truecmdexit.Enabled = Truecmddel.Enabled = TrueEnd Sub

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    45/55

  • 8/9/2019 University of Wah

    46/55

    UNIVERSITY OF WAH

    Private Sub cmdexit_Click()If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes ThenUnload MeEnd IfEnd Sub

    Private Sub cmdfind_Click()Set frmSearch.rstName = SparkfrmSearch.ShowEnd Sub

    Private Sub cmdfirst_Click()Spark.MoveFirstFirstDisabledEnd SubPrivate Sub cmdlast_Click()Spark.MoveLastlastdisabled

    End SubPrivate Sub cmdnext_Click()If Spark.AbsolutePosition = Spark.RecordCount ThenSpark.MoveLastlastdisabledElseSpark.MoveNextAllEnabledEnd IfEnd Sub

    Private Sub cmdprev_Click()If Spark.AbsolutePosition = 1 ThenSpark.MoveFirstFirstDisabledElseSpark.MovePreviousAllEnabledEnd IfEnd Sub

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

    Spark.UpdateSaveRecElseSpark.CancelUpdateSaveRecEnd IfEnd Sub

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    47/55

    UNIVERSITY OF WAH

    Private Sub Form_Load()Set Spark = DESparklette.rsRAWMATRIALFrame1.Enabled = FalseMe.Height = 8160Me.Width = 8880cmdsave.Enabled = FalseEnd SubSub FirstDisabled()cmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub lastdisabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Falsecmdlast.Enabled = FalseEnd Sub

    Sub AllEnabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub AddEditRec()Frame1.Enabled = Truecmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Falsecmdlast.Enabled = Falsecmdadd.Enabled = Falsecmdedit.Enabled = Falsecmdsave.Enabled = Truecmdfind.Enabled = Falsecmdexit.Enabled = Falsecmddel.Enabled = FalseEnd SubSub SaveRec()Frame1.Enabled = Falsecmdfirst.Enabled = Truecmdprev.Enabled = True

    cmdnext.Enabled = Truecmdlast.Enabled = Truecmdadd.Enabled = Truecmdedit.Enabled = Truecmdsave.Enabled = Falsecmdfind.Enabled = Truecmdexit.Enabled = Truecmddel.Enabled = True

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    48/55

    UNIVERSITY OF WAH

    End Sub

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    49/55

    UNIVERSITY OF WAH

    Dim Spark As ADODB.Recordset

    Private Sub cmdadd_Click()Spark.AddNewAddEditRecEnd Sub

    Private Sub cmddel_Click()

    If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes ThenSpark.Delete adAffectCurrentSpark.MoveFirstFirstDisabledEnd IfEnd Sub

    Private Sub cmdedit_Click()

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    50/55

    UNIVERSITY OF WAH

    AddEditRecEnd Sub

    Private Sub cmdexit_Click()If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes ThenUnload MeEnd IfEnd Sub

    Private Sub cmdfind_Click()Set frmSearch.rstName = SparkfrmSearch.ShowEnd Sub

    Private Sub cmdfirst_Click()Spark.MoveFirstFirstDisabledEnd SubPrivate Sub cmdlast_Click()

    Spark.MoveLastlastdisabledEnd SubPrivate Sub cmdnext_Click()If Spark.AbsolutePosition = Spark.RecordCount ThenSpark.MoveLastlastdisabledElseSpark.MoveNextAllEnabledEnd IfEnd Sub

    Private Sub cmdprev_Click()If Spark.AbsolutePosition = 1 ThenSpark.MoveFirstFirstDisabledElseSpark.MovePreviousAllEnabledEnd IfEnd Sub

    Private Sub cmdsave_Click()If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes ThenSpark.UpdateSaveRecElseSpark.CancelUpdateSaveRecEnd If

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    51/55

    UNIVERSITY OF WAH

    End Sub

    Private Sub Form_Load()Set Spark = DESparklette.rsSALESORDERFrame1.Enabled = FalseSpark.MoveFirstFirstDisabledMe.Height = 9000Me.Width = 9090cmdsave.Enabled = FalseEnd SubSub FirstDisabled()cmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub lastdisabled()cmdfirst.Enabled = True

    cmdprev.Enabled = Truecmdnext.Enabled = Falsecmdlast.Enabled = FalseEnd SubSub AllEnabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub AddEditRec()Frame1.Enabled = Truecmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Falsecmdlast.Enabled = Falsecmdadd.Enabled = Falsecmdedit.Enabled = Falsecmdsave.Enabled = Truecmdfind.Enabled = Falsecmdexit.Enabled = Falsecmddel.Enabled = FalseEnd Sub

    Sub SaveRec()Frame1.Enabled = Falsecmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = Truecmdadd.Enabled = Truecmdedit.Enabled = True

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    52/55

    UNIVERSITY OF WAH

    cmdsave.Enabled = Falsecmdfind.Enabled = Truecmdexit.Enabled = Truecmddel.Enabled = True

    Dim Spark As ADODB.Recordset

    Private Sub cmdadd_Click()Spark.AddNewAddEditRectxtSUPPLYERID.Text = Spark.RecordCount + 1txtCOMPANYNAME.SetFocus

    End Sub

    Private Sub cmddel_Click()If MsgBox("Are you Sure to Delete", vbYesNo, "Sparkletts") = vbYes ThenSpark.Delete adAffectCurrentSpark.MoveFirstFirstDisabledEnd If

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    53/55

    UNIVERSITY OF WAH

    End Sub

    Private Sub cmdedit_Click()AddEditRecEnd Sub

    Private Sub cmdexit_Click()If MsgBox("Do You Want to Close", vbYesNo, "Sparkletts") = vbYes ThenUnload MeEnd IfEnd Sub

    Private Sub cmdfind_Click()Set frmSearch.rstName = SparkfrmSearch.ShowEnd Sub

    Private Sub cmdfirst_Click()Spark.MoveFirst

    FirstDisabledEnd SubPrivate Sub cmdlast_Click()Spark.MoveLastlastdisabledEnd SubPrivate Sub cmdnext_Click()If Spark.AbsolutePosition = Spark.RecordCount ThenSpark.MoveLastlastdisabledElseSpark.MoveNextAllEnabledEnd IfEnd Sub

    Private Sub cmdprev_Click()If Spark.AbsolutePosition = 1 ThenSpark.MoveFirstFirstDisabledElseSpark.MovePreviousAllEnabled

    End IfEnd Sub

    Private Sub cmdsave_Click()If MsgBox("Do You Want to Save Changes", vbYesNo, "Sparkletts") = vbYes ThenSpark.UpdateSaveRecElse

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    54/55

    UNIVERSITY OF WAH

    Spark.CancelUpdateSaveRecEnd IfEnd Sub

    Private Sub Form_Load()Set Spark = DESparklette.rsSUPPLIERFrame1.Enabled = FalseSpark.MoveFirstFirstDisabledMe.Height = 8355Me.Width = 8625cmdsave.Enabled = FalseEnd Sub

    Sub FirstDisabled()cmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = True

    cmdlast.Enabled = TrueEnd SubSub lastdisabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Falsecmdlast.Enabled = FalseEnd Sub

    Sub AllEnabled()cmdfirst.Enabled = Truecmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = TrueEnd SubSub AddEditRec()Frame1.Enabled = Truecmdfirst.Enabled = Falsecmdprev.Enabled = Falsecmdnext.Enabled = Falsecmdlast.Enabled = Falsecmdadd.Enabled = Falsecmdedit.Enabled = False

    cmdsave.Enabled = Truecmdfind.Enabled = Falsecmdexit.Enabled = Falsecmddel.Enabled = FalseEnd SubSub SaveRec()Frame1.Enabled = Falsecmdfirst.Enabled = True

    RESEARCH IS CONDUCTED BY:

  • 8/9/2019 University of Wah

    55/55

    UNIVERSITY OF WAH

    cmdprev.Enabled = Truecmdnext.Enabled = Truecmdlast.Enabled = Truecmdadd.Enabled = Truecmdedit.Enabled = Truecmdsave.Enabled = Falsecmdfind.Enabled = Truecmdexit.Enabled = Truecmddel.Enabled = TrueEnd Sub