Eva Lution

Embed Size (px)

Citation preview

  • 8/23/2019 Eva Lution

    1/59

    Dv

    Project Report

    (20122013)

    LICLIC

    Bachelor of Commerce & Computer Application

    Awdhesh Pratap singh vishwavidhyalaya (M.P.)

    SUBMITED BY SUBMITTED TO

    Bharti rajak Ms. Priya Singh Parihar

    Khushbu Kashyap

    Pallvi Singh

    GOVT INDIRA GANDHI GIRLS COLLEGE SATNA , (M.P)

    CERTIFICATE

    This is to certify that Satya Prakash Mishra,completed his Major Project work for during the academic

    year 2012 in the partial fulfillments of the award ofBachelor of Commerce & ComputerApplication VI Semester.

  • 8/23/2019 Eva Lution

    2/59

    Internal Examiner External Examiner

    Mr.Vinay Kumar Shrivastava

    VANIJYA MAHAVIDYALAYA, SATNA (M.P.)

  • 8/23/2019 Eva Lution

    3/59

    CERTIFICATE

    This is to certify that Satya Prakash Mishrais Major Project work for during the academic year

    -2012 in the partial fulfillments of the award of Bachelor of Commerce & Computer

    Application VI Semester.

    Project Guide Principle

    (Mr.Paras sen) (Mr. Mo. Riyazuddin khan)

    VANIJYA MAHAVIDYALAYA, SATNA (M.P.)

    ACKNOWLEDGEMENT

    We wish to acknowledgement with deep gratitude the valuable assistance received by us

    from our guide Mr.Paras Sen & Mr. Vinay Kumar Shrivastava Who guided and encouraged us

    throughout the development of this project. We would like to very many thanks Mr.Mo.Riyazuddin

    khan (Principal) for his valuable suggestion. It is due to encouragement provided by him those projects

    could its final stage.

  • 8/23/2019 Eva Lution

    4/59

    We also acknowledge Dr. Ashok Kumar Mishra (Director) other lecturers . Who us in the

    satisfactory completion of this project. Finally we specially thank our parents and the near dear once who

    are the another of our lives for their support and understanding

    Satya Prakash Mishra

    VANIJYA MAHAVIDYALAYA, SATNA (M.P.)

    DECLARATION

    We hereby affirm that the project report titleRAILWAY RESERVATIONRAILWAY RESERVATION SYSTEMSYSTEMsubmitted by us

    to Vanijya Mahavidhyalaya, Satna (M.P.) affiliated by Awdhesh Pratap singh

    vishwavidhyalaya(M.P.), for consideration of BACHELOR OF Commerce & computer Application)VI

    SEM embodies our work, except the and suggestions received during the work which has been duly

    acknowledged.

    Satya Prakash Mishra

  • 8/23/2019 Eva Lution

    5/59

    VANIJYA MAHAVIDYALAYA, SATNA (M.P.

    RAILWAYRAILWAY

    RESERVATIONRESERVATION

    SYSTEMSYSTEM

  • 8/23/2019 Eva Lution

    6/59

    PROJECT EVALUATION SHEET

    1. Candidates Roll No..

    2. Candidates Name

    3. Project Title PUBLIC HEALTH

    4. Software Base VISUAL BASIC

    5. Sponsoring Institute Address

    6. Submitted for course & Year B.Com vi sem (computer ) 2012 ;

    7. Study Center Code, name, Address.

    8. .Forwarding by SHRI RAMA KRISHANA COLLEGE SATNA

    Roll no Enrollment no Marks Awarded Internal Examiners

    Name & Signature

    103672 C.10.4508

  • 8/23/2019 Eva Lution

    7/59

  • 8/23/2019 Eva Lution

    8/59

  • 8/23/2019 Eva Lution

    9/59

    INTRODUCTION

    Today every work is going to be computerized. Manpower is used wit

    computer system to increase the efficiency & reliability of the work. It als

    provides a lot of saving of time to do that work with friendliness.

    The S/W HOSPITAL MANAGEMENT SYS. is an effort to

    computerize the reservation process. This S/W has

    Following modules:

    1.input module:- used to input the data for reservations.

    2.Output module: - used to output the data for reservations.

    3.Processing module: - the processing of an input module display

    output module.

  • 8/23/2019 Eva Lution

    10/59

  • 8/23/2019 Eva Lution

    11/59

    ACKNOWLEDGEMENTWe wish to acknowledge with deep gra ti tude the valuable ass is tance

    received by us from guide priya singh parihar , his cont inuous guidance

    and const ruct ive cr i t ic i sm during the course of presentat ion, s tudy and

    preparation of this project script has made it a success.

    We also thank other professors and friends who helped us in the satisfactory

    completion of this project. Principal Mis.KALPANA SHRIVASTAV has always been a

    source of inspiration for us..

    I take the opportuni ty of giving my sincere and heart i ly

    regards to a l l t he persons who s tood by us dur ing the pro jec t and the

    knowledge they imparted us shall

    Act as a milestone guiding us through out our l ives

    Project Developers:-

    Saraswati tiwari

    Manjula mishra

    Priyanka agnihotri

    Neha dwivedi

    Urmila rawat

  • 8/23/2019 Eva Lution

    12/59

    H/W & S/W SPECIFICATION

    HARDWARE CONFIGURATIONRAM :32MB

    HARDDISK :10MB FREE SPACE ONHDD

    PROCESSOR :PENTIUM-III

    PRINTER :LASER PRINTER

    MONITOR :SVGA

    SOFTWARE CONFIGURATION

    BACKEND :MS ACCESS

    FRONTEND :VISUAL BASIC 6.0

    WORKSTATION :WINDOWS XP

  • 8/23/2019 Eva Lution

    13/59

    TOOLS :MS-WORD

    CONFIGURATIO

    WHY

    VISUALBASIC 6.0

  • 8/23/2019 Eva Lution

    14/59

    W HY VISUAL BASIC 6.0 USED

    : -

    Lets take a minute to review some of the features that make Visual basic such a

    robust and exciting Development platform.

    Anyone who has been working with visual basic for any length of time is

    accustomed to these features and probably does not spend much time thinking about

    them however, people who are new to visual basic should take a minute to consider

    why visual basic has become such a popular development environment. After all

    there is more then three million visual basic developers, and its hard to imagine that

    so many people would elect to use a limited and hard-to-learn programming system.

    The following key point make visual basic an excellent development tool:-

    1. visual basic application is event-driven. means the user is in

    control of the application. The user generate a stream of event

    each time he or she clicks with mouse or press a key on the

    keyboard.

    2. visual basic supports the principles of object-oriented-design.

    This means that you can compartmentalize different aspects of

    your application ads object and development and test those

    object independently of the rest of the application. By modifying

    certain properties invoking the method of these object, you exert

    a great deal of control over the users interaction with the visual

    basic programs you have written.

    3. Microsoft has designed visual basic to be a complete windows

    application development system. This means that you are visual

    basic application will look and behave like other windows

    programs youre your user might whit.

  • 8/23/2019 Eva Lution

    15/59

    4. Visual basic is infinitely extensible through the use of active-X

    control, dynamically linked libraries (dlls),and add-ins.

    so, we are developed project in visual basic 6.0.

    Awdesh Pratap Singh Vishwavidyalaya Rewa (M.P)

    Hospital Management System

    MAJOR PROJECT

    Submitted in partial fulfilment of the requirementsFor the award of the B.COM (Computer)

    STUDY CENTRE

    Indera Gandhi girls college satna (m.p)

    Submitted by:-

  • 8/23/2019 Eva Lution

    16/59

    Saraswati tiwari

    Manjula mishra

    Priyanka agnihotri

    Neha dwivedi

    Urmila rawat

    Submitted To

    PRIYA SINGH PARIHAR

  • 8/23/2019 Eva Lution

    17/59

    CERTIFICATE

    This is to certify that this project entitled HOSPITAL

    MANAGEMENT submitted in partial fulfillment of the

    B.COM(computer) to the INDERA GANDHI GIRLS COLLEGE

    Done bySaraswati tiwari, Manjula mishra, Priyanka agnihotri

    And Neha dwivedi, Urmila rawat is an authentic work carried

    Out by him/her at INDERA GANDHI COLLEGE under my

    Guidance. The matter embodied in this project work has not

    Been submitted earlier for award of any degree to the best of

    My knowledge and belief.

    Signature of the student Signature of the Guide

  • 8/23/2019 Eva Lution

    18/59

    SELF CERTIFICATE

    This is to certify that the dissertation/project reportentitled "HOSPITAL MANAGEMENT is done by me isan authentic work carried out for the partial fulfillment ofthe requirements for the award of the

    B.COM(Computer)under the guidance of PRIYA

    SINGHPARIHAR.The matter embodied in this projectwork as not been submitted earlier for award of anydegree to the best of my knowledge and belief.

    Signature of the student

    ..

    Name of the Student

    .Roll No.

    .Study Centre Name

    ..

  • 8/23/2019 Eva Lution

    19/59

    Start

    ST

    AR

    THELP EXITSEARC

    H

    WELCOMEFORM

    MDIFORM

    REPORTENTRY

    PATIENTENTREY

    STAFFENTREY

    ADMITENTREYY

    STAFF

    PATIENT

    ADMIT

    AGREGAT

    E

    ONEPATIENT

    ONEADMIT

    ABOUT US

    EXITHOSPITAL

  • 8/23/2019 Eva Lution

    20/59

    CONCLUSIONCONCLUSION

    Today in the era of high competition and fast speed of workToday in the era of high competition and fast speed of work

    it is needed to provided the information about dentingit is needed to provided the information about denting

    patient availability of blood and maintain the record ofpatient availability of blood and maintain the record of

    student. the work of maintaining the record of studentsstudent. the work of maintaining the record of students

    manually is a time consuming job and it may also lead tomanually is a time consuming job and it may also lead to

    serious mistakes. Keeping in mind the importance ofpatientserious mistakes. Keeping in mind the importance ofpatient

    records our system "HOSPTIAL MANAGEMENT"records our system "HOSPTIAL MANAGEMENT" makesmakes

    the job very fast, efficientthe job very fast, efficient andand accurateaccurate

  • 8/23/2019 Eva Lution

    21/59

    WINDOWS 98 :-

    Windows 98 is an operating system, that provide the high level security,because security in windows 98 is assigned on a pur user rather then a per recoursebasis, a user need to remember only single windows 98 user account name andpassword to log on and use local and network resources. With windows 98 security,all resources and action are protected by discretionary access control, meaning that

    some user can be permitted access to resource or perform an action, while otheruser can be prevented from accessing the same resource or action security is veryflexible for example: different permission for different. User can be set on different

    files in a directory. Windows 98 security applies both to user working at the computerwhere the resource is located and to user accessing the resource over the net work.

    For windows 98, the basic unit of security and ce 98 realized administrationis the domain. A domain name is collection of computer that recognized acommon security account database. Four type of computer participate in domainsecurity. Primary domain controllers (pdcs) , backup domain controllers (bdcs) ,servers, and workstations.

    Each domain has one pdc , which maintains the security account database forthe domain's domain can heal any number of bdcs.each bdc receive a copy ofdomain security accounts database and assists the pdc by sharing the load ofauthenticating.

    Domain logins. Pdc and computer always run the Windows NT server operatingsystem.

    MS-ACCESS: -

    Microsoft access is rdbms package is used createthe database, table, reports. Microsoft accessProvide an environment to run the query. This is used asbackground of the vb. This is used to store large volume of data.

  • 8/23/2019 Eva Lution

    22/59

    CONTENTS OF TABLE1. INTRODUCATION

    2. ACKNOWLEDGMENT

    3. SELF CERTIFICATTE

    4. CERTIFICATE

    5. WINDOWS 98 AND MS-ACCESS

    6. WHY VISUAL BASIC 6.0 USED

    7. H/W & S/W SPECIFICATION

    8. DATA FLOW DIAGRAM

    9. OUTPUT FORMAT

    10.SOURCE CODE

    11.CONCLUSION

  • 8/23/2019 Eva Lution

    23/59

    SOURCE

    CODE

  • 8/23/2019 Eva Lution

    24/59

    Private Sub Text1_KeyPress(KeyAscii As Integer)On Error Resume Next

    On Error Resume Next

    If (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))

    Then

    ElseKeyAscii = 0

    End If

    End Sub

    Private Sub Text2_KeyPress(KeyAscii As Integer)

    On Error Resume NextOn Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))

    Then

    Else

    KeyAscii = 0

    End If

  • 8/23/2019 Eva Lution

    25/59

    End Sub

    Private Sub Text4_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    On Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))

    ThenElse

    KeyAscii = 0

    End If

    End Sub

    Private Sub Text5_KeyPress(KeyAscii As Integer)

    On Error Resume Next'On Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))

    Then

    Else

    KeyAscii = 0

    End IfEnd Sub

    Private Sub Text6_KeyPress(KeyAscii As Integer)

    On Error Resume Next

  • 8/23/2019 Eva Lution

    26/59

    If (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))

    Then

    Else

    KeyAscii = 0

    End If

    End Sub

    Private Sub Text7_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))

    Then

    ElseKeyAscii = 0

    End If

    End Sub

  • 8/23/2019 Eva Lution

    27/59

    Dim S As String

    Private Sub Command1_Click()

    Adodc1.Recordset.AddNew

    End Sub

    Private Sub Command2_Click()

    Adodc1.Recordset.Update

    End Sub

    Private Sub Command3_Click()

    Adodc1.Recordset.Delete

    End Sub

    Private Sub Command4_Click()

    S = InputBox("ENTER STAFF ID")Adodc1.Recordset.Find "Registration_no=" & S

    End Sub

    Private Sub Command5_Click()

    If Adodc1.Recordset.BOF Then

    Adodc1.Recordset.MoveFirstEnd If

    Adodc1.Recordset.MoveFirst

    End Sub

    Private Sub Command6_Click()

    If Adodc1.Recordset.BOF Then

  • 8/23/2019 Eva Lution

    28/59

    Adodc1.Recordset.MoveFirst

    Else

    Adodc1.Recordset.MovePrevious

    End If

    End Sub

    Private Sub Command7_Click()

    If Adodc1.Recordset.EOF Then

    Adodc1.Recordset.MoveLastElse

    Adodc1.Recordset.MoveNext

    End If

    End Sub

    Private Sub Command8_Click()If Adodc1.Recordset.EOF Then

    Adodc1.Recordset.MoveLast

    End If

    Adodc1.Recordset.MoveLast

    End Sub

    Private Sub Text1_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))

    Then

  • 8/23/2019 Eva Lution

    29/59

    Else

    KeyAscii = 0

    End If

    End Sub

    Private Sub Text10_KeyPress(KeyAscii As Integer)On Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))

    Then

    Else

    KeyAscii = 0

    End IfEnd Sub

    Private Sub Text11_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))Then

    Else

    KeyAscii = 0

    End If

    End Sub

  • 8/23/2019 Eva Lution

    30/59

    Private Sub Text12_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))

    Then

    Else

    KeyAscii = 0

    End If

    End Sub

    Private Sub Text2_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))

    Then

    ElseKeyAscii = 0

    End If

    End Sub

    Private Sub Text3_KeyPress(KeyAscii As Integer)

    On Error Resume NextIf (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))

    Then

    Else

    KeyAscii = 0

    End If

    End Sub

  • 8/23/2019 Eva Lution

    31/59

    Private Sub Text4_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))

    Then

    Else

    KeyAscii = 0

    End If

    End Sub

    Private Sub Text5_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))

    ThenElse

    KeyAscii = 0

    End If

    End Sub

    Private Sub Text6_KeyPress(KeyAscii As Integer)On Error Resume Next

    If (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))

    Then

    Else

    KeyAscii = 0

  • 8/23/2019 Eva Lution

    32/59

    End If

    End Sub

    Private Sub Text7_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))

    Then

    Else

    KeyAscii = 0End If

    End Sub

    Private Sub Text9_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))Then

    Else

    KeyAscii = 0

    End If

    End Sub

  • 8/23/2019 Eva Lution

    33/59

    Dim I As Integer

    Private Sub Form_Load()

    On Error Resume Next

    I = 0

    'Adodc1.Recordset.MoveFirst

    For I = 0 To Adodc1.Recordset.Fields.Count - 1

    Combo1.AddItem

    (Adodc1.Recordset.Fields(I).Name)Combo3.AddItem

    (Adodc1.Recordset.Fields(I).Name)

    'I = I + 1

    'Adodc1.Recordset.MoveNext

    Next I

    End Sub

    Private Sub Text1_Change()

    On Error Resume Next

    Adodc1.CommandType = adCmdText

    Adodc1.RecordSource = "SELECT * FROM rogiWHERE " & Trim(Combo1.Text) & " LIKE'" &

    Trim(Text1.Text) & "%'"

    'Adodc1.RecordSource = "select * from rogi where

    name like'm%'"

    Adodc1.Refresh

    End Sub

  • 8/23/2019 Eva Lution

    34/59

    Private Sub Text2_Change()

    On Error Resume Next

    Adodc1.CommandType = adCmdText

    Adodc1.RecordSource = "SELECT * FROM rogi

    WHERE " & Trim(Combo1.Text) & " LIKE'" &

    Trim(Text1.Text) & "%' " & Trim(Combo2.Text) &

    " " & Trim(Combo3.Text) & " like'" &

    Trim(Text2.Text) & "%'"'Adodc1.RecordSource = "select * from rogi where

    name like'm%'"

    Adodc1.Refresh

    End Sub

    Dim I As Integer

    Private Sub Form_Load()

    On Error Resume Next

    I = 0

    'Adodc1.Recordset.MoveFirst

    For I = 0 To Adodc1.Recordset.Fields.Count - 1Combo1.AddItem

    (Adodc1.Recordset.Fields(I).Name)

    Combo3.AddItem

    (Adodc1.Recordset.Fields(I).Name)

    'I = I + 1

    'Adodc1.Recordset.MoveNext

  • 8/23/2019 Eva Lution

    35/59

    Next I

    End Sub

    Private Sub Text1_Change()

    On Error Resume Next

    Adodc1.CommandType = adCmdText

    Adodc1.RecordSource = "SELECT * FROM STAFF

    WHERE " & Combo1.Text & " LIKE'" &Text1.Text & "%'"

    'Adodc1.RecordSource = "select * from rogi where

    name like'm%'"

    Adodc1.Refresh

    End Sub

    Private Sub Text2_Change()

    On Error Resume Next

    Adodc1.CommandType = adCmdText

    Adodc1.RecordSource = "SELECT * FROM STAFF

    WHERE " & Combo1.Text & " LIKE'" &

    Text1.Text & "%' " & Combo2.Text & " " &Combo3.Text & " like'" & Text2.Text & "%'"

    'Adodc1.RecordSource = "select * from rogi where

    name like'm%'"

    Adodc1.Refresh

    End Sub

  • 8/23/2019 Eva Lution

    36/59

    Dim I As Integer

    Private Sub Form_Load()

    On Error Resume Next

    I = 0

    'Adodc1.Recordset.MoveFirst

    For I = 0 To Adodc1.Recordset.Fields.Count - 1

    Combo1.AddItem

    (Adodc1.Recordset.Fields(I).Name)Combo3.AddItem

    (Adodc1.Recordset.Fields(I).Name)

    'I = I + 1

    'Adodc1.Recordset.MoveNext

    Next I

    End Sub

    Private Sub Text1_Change()

    On Error Resume Next

    Adodc1.CommandType = adCmdText

    Adodc1.RecordSource = "SELECT * FROMADMIT WHERE " & Combo1.Text & " LIKE'" &

    Text1.Text & "%'"

    'Adodc1.RecordSource = "select * from rogi where

    name like'm%'"

    Adodc1.Refresh

    End Sub

  • 8/23/2019 Eva Lution

    37/59

    Private Sub Text2_Change()

    On Error Resume Next

    Adodc1.CommandType = adCmdText

    Adodc1.RecordSource = "SELECT * FROM

    ADMIT WHERE " & Combo1.Text & " LIKE'" &

    Text1.Text & "%' " & Combo2.Text & " " &

    Combo3.Text & " like'" & Text2.Text & "%'"

    'Adodc1.RecordSource = "select * from rogi wherename like'm%'"

    Adodc1.Refresh

    End Sub

  • 8/23/2019 Eva Lution

    38/59

    Private Sub Command1_Click()

    On Error Resume Next

    DataReport2.Show

    End Sub

    Private Sub Command2_Click()

    On Error Resume Next

    DataReport5.Show

    End Sub

    Private Sub Form_Load()

    'Adodc1.Recordset.MoveFirst

    Adodc1.Recordset.MoveFirst

    Do Until Adodc1.Recordset.EOF

    Combo1.AddItem Adodc1.Recordset.Fields(0).ValueAdodc1.Recordset.MoveNext

    Loop

    Adodc2.Recordset.MoveFirst

    Do Until Adodc2.Recordset.EOF

    Combo2.AddItem Adodc2.Recordset.Fields(0).Value

    Adodc2.Recordset.MoveNextLoop

    End Sub

    Private Sub Text1_KeyPress(KeyAscii As Integer)

    On Error Resume Next

  • 8/23/2019 Eva Lution

    39/59

    If (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))

    Then

    Else

    KeyAscii = 0

    End If

    End Sub

    Private Sub Text2_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))

    Then

    ElseKeyAscii = 0

    End If

    End Sub

    Private Sub Command2_Click()

    On Error Resume Next

    Adodc1.Recordset.Fields(1) = Text1

    Adodc1.Recordset.Fields(2) = Text2

    Adodc1.Recordset.Update

    Adodc1.Refresh

  • 8/23/2019 Eva Lution

    40/59

    MsgBox "user created"

    Unload Me

    End Sub

    Private Sub Form_Load()

    Text1.Enabled = False

    Text2.Enabled = False

    End Sub

    Private Sub NE_Click()

    On Error Resume Next

    Text1.Enabled = True

    Text2.Enabled = True

    Adodc1.Recordset.AddNew

    End Sub

  • 8/23/2019 Eva Lution

    41/59

    Option Explicit

    Private Sub Form_KeyPress(KeyAscii As Integer)

    Unload Me

    End Sub

    Private Sub Form_Load()

    'lblVersion.Caption = "Version " & App.Major & "."& App.Minor & "." & App.Revision

    'lblProductName.Caption = App.Title

    End Sub

    Private Sub Frame1_Click()

    Unload Melogin.Show

    End Sub

  • 8/23/2019 Eva Lution

    42/59

    Dim S As String

    Private Sub cmddel_Click()

    Adodc1.Recordset.Delete

    End Sub

    Private Sub cmdedit_Click()

    'Adodc1.Recordset.EditMode

    End Sub

    Private Sub cmdnew_Click()

    On Error Resume Next

    Adodc1.Recordset.AddNew

    End Sub

    Private Sub Command2_Click()If Adodc1.Recordset.BOF Then

    Adodc1.Recordset.MoveFirst

    End If

    Adodc1.Recordset.MoveFirst

    End Sub

    Private Sub Command3_Click()

    If Adodc1.Recordset.BOF Then

    Adodc1.Recordset.MoveFirst

    Else

    Adodc1.Recordset.MovePrevious

    End If

  • 8/23/2019 Eva Lution

    43/59

    End Sub

    Private Sub Command4_Click()

    If Adodc1.Recordset.EOF Then

    Adodc1.Recordset.MoveLast

    Else

    Adodc1.Recordset.MoveNext

    End If

    End Sub

    Private Sub Command5_Click()

    If Adodc1.Recordset.EOF Then

    Adodc1.Recordset.MoveLast

    End IfAdodc1.Recordset.MoveLast

    End Sub

    Private Sub cmdsave_Click()

    On Error Resume Next

    Adodc1.Recordset.UpdateEnd Sub

    Private Sub cmdtour_Click()

    Form1.Show

    End Sub

    Private Sub Command1_Click()

  • 8/23/2019 Eva Lution

    44/59

    S = InputBox("enter reg nommber")

    Adodc1.Recordset.Find "Registration_no=" & S

    End Sub

    Private Sub Text1_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))

    Then

    ElseKeyAscii = 0

    End If

    End Sub

    Private Sub Text2_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))Then

    Else

    KeyAscii = 0

    End If

    End Sub

    Private Sub Text3_KeyPress(KeyAscii As Integer)On Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))

    Then

    Else

    KeyAscii = 0

    End If

  • 8/23/2019 Eva Lution

    45/59

    End Sub

    Private Sub Text4_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))

    Then

    Else

    KeyAscii = 0

    End IfEnd Sub

    Private Sub Text5_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))

    Then

    ElseKeyAscii = 0

    End If

    End Sub

    Private Sub Text6_KeyPress(KeyAscii As Integer)

    On Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))Then

    Else

    KeyAscii = 0

    End If

    End Sub

    Private Sub Text7_KeyPress(KeyAscii As Integer)

  • 8/23/2019 Eva Lution

    46/59

    On Error Resume Next

    If (KeyAscii < Asc("0") Or KeyAscii > Asc("9"))

    Then

    Else

    KeyAscii = 0

    End If

    End Sub

    Private Sub Text8_KeyPress(KeyAscii As Integer)

    On Error Resume NextIf (KeyAscii < Asc("a") Or KeyAscii > Asc("z"))

    And (KeyAscii < Asc("A") Or KeyAscii > Asc("Z"))

    Then

    Else

    KeyAscii = 0

    End IfEnd Sub

    Private Sub Timer1_Timer()

    On Error Resume Next

    Label7.Caption = Date

    Label9.Caption = Time

    End Sub

  • 8/23/2019 Eva Lution

    47/59

  • 8/23/2019 Eva Lution

    48/59

  • 8/23/2019 Eva Lution

    49/59

  • 8/23/2019 Eva Lution

    50/59

  • 8/23/2019 Eva Lution

    51/59

  • 8/23/2019 Eva Lution

    52/59

  • 8/23/2019 Eva Lution

    53/59

  • 8/23/2019 Eva Lution

    54/59

  • 8/23/2019 Eva Lution

    55/59

  • 8/23/2019 Eva Lution

    56/59

  • 8/23/2019 Eva Lution

    57/59

  • 8/23/2019 Eva Lution

    58/59

  • 8/23/2019 Eva Lution

    59/59