113
COMPUTERIZED GRADING SYSTEM Libertad National High School Libertad, Abulug, Cagayan A Project Proposal Presented to the Faculty Of the College of Information Technology International School of Asia and the Pacific Alimannao Hills, Penablanca, Cagayan In Partial Fulfillment of the Requirements for the Degree Bachelor of Science in Information Technology Presented by: Rhea A. Tingle

Documentation 1 - Copy

Embed Size (px)

Citation preview

Page 1: Documentation 1 - Copy

COMPUTERIZED GRADING SYSTEMLibertad National High School

Libertad, Abulug, Cagayan

A Project Proposal Presented to the Faculty

Of the College of Information TechnologyInternational School of Asia and the Pacific

Alimannao Hills, Penablanca, Cagayan

In Partial Fulfillment of the Requirements for the DegreeBachelor of Science in Information Technology

Presented by:

Rhea A. TingleTrofie C. Raña

Page 2: Documentation 1 - Copy

LIBERTAD NATIONAL HIGH SCHOOLCOMPUTERIZED GRADING SYSTEM

A Project Proposal Presented to the Faculty

Of the College of Information TechnologyInternational School of Asia and the Pacific

Alimannao Hills, Penablanca, Cagayan

In Partial Fulfillment of the Requirements for the DegreeBachelor of Science in Information Technology

Presented by:

Rhea A. TingleTrofie C. Raña

Page 3: Documentation 1 - Copy

APPROVAL SHEET

March 2011

In partial fulfillment of the requirements for the degree BACHELOR OF

SCIENCE IN INFORMATION TECHNOLOGY, this thesis entitled “Libertad National

High School Computerized Grading System”, has been prepared by Rhea A.

Tingle and Trofie C. Raña.

____________________

Adviser

Approved by the tribunal of the Oral Examination

____________________

Panel Member

Accepted as partial fulfillment of the requirements for the degree

Bachelor of Science in Information Technology.

___________________________________

Program Coordinator

Information Technology Department

iii

Page 4: Documentation 1 - Copy

ACKNOWLEDGEMENT

The researcher’s wishes to extend their sincerest appreciation to the

Principal of the LIBERTAD NATIONAL HIGH SCHOOL, Abulug, Cagayan, Teacher

and Students for their concern and assistance to the researchers work made it a

success.

Special acknowledgement to their subject teachers of the INTERNATIONAL

SCHOOL

OF ASIA AND THE PACIFIC for their patience and advices.

iv

Page 5: Documentation 1 - Copy

DEDICATION

This study is dedicated to the Teachers and Students of the LIBERTAD

NATIONAL HIGH SCHOOL for a better performance and analization of their

performances.

Also dedicated to the researchers, as a requirement for their subject at

the INTERNATIONAL SCHOOL OF ASIA AND THE PACIFIC.

v

Page 6: Documentation 1 - Copy

Table of Contents

APPROVAL SHEET.................................................................................................ii

ACKNOWLEDGEMENT...........................................................................................iii

DEDICATION.........................................................................................................iv

TABLE OF CONTENTS............................................................................................v

CHAPTER I- Background of the Study...................................................................1

Introduction.......................................................................................................1

Statement of the Problem.................................................................................1

Objectives of the Study.....................................................................................1

Significance of the Study...................................................................................2

Scope and delimitation......................................................................................2

Methodology of the Study..................................................................................2

Definition of Terms............................................................................................3

Schedule of the Study.......................................................................................3

CHAPTER II – Analysis and Presentation...............................................................4

History...............................................................................................................4

Functions and Objectives of the Organization...................................................4

Organizational Chart..........................................................................................4

Flow Chart Symbol.............................................................................................5

Flow Chart of the Present System.....................................................................5

CHAPTER III – The Proposed System ....................................................................6

Description of the Proposed System..................................................................6

Flow Chart of the Proposed System...................................................................6

Input-Process-Output Diagram..........................................................................6

Hierarchical Input-Process-Output Diagram......................................................6

Entity Relationship Diagram..............................................................................6

Cost Benefit Analysis.........................................................................................6

Schedule of the Proposed System.....................................................................7

CHAPTER IV - Program..........................................................................................8

User’s Manual....................................................................................................8

Screen Shots......................................................................................................8vi

Page 7: Documentation 1 - Copy

Code..................................................................................................................8

CHAPTER V – Conclusion and Reccomendation....................................................9

Conclusion.........................................................................................................9

Recommendation..............................................................................................9

vii

Page 8: Documentation 1 - Copy

Chapter I: Background of the Study

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

CHAPTER I

BACKGROUND OF THE STUDY

Introduction

Computer world is now at our hands, this give improvement and

development of all programs in the different agencies, in offices and in schools.

Paper work become easy, computation is faster, record keeping and bringing

out is fast. In schools, all works became easily fast to look at record, easily to

reproduce student record. Since, computation of grades is one burden of the

teachers, computerization made the answer in solving, in recording and

computing students performances and achievement. The same is through in

keeping records and forms incorporated in their work aside from guidance and

advice.

Computation of grades in school became easy for modern teacher but for

traditional one they found difficult but now no burden in recording, transmitting,

giving the equivalent and the final grades for teachers who are computer

literate, where time, effort and energy is minimized.

This is the point of this study, to device a program in order to ease the

computation of grades and ranking the students basing their subject’s

performances. This is now the scenario and dilemma of LIBERTAD NATIONAL

HIGH SCHOOL.

Page 1

Page 9: Documentation 1 - Copy

Chapter I: Background of the Study

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Now, with the technology which is to be developed, it will enable them to

do more with less effort. The program will not continuously find way to improve

and expedite the calculation of grades.

The use of computer nowadays is necessary to replace the manual

system that affects efficiency and effectiveness, accuracy and reliability.

Page 2

Page 10: Documentation 1 - Copy

Chapter I: Background of the Study

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Statement of the Problem

The upgrading of the LIBERTAD NATIONAL HIGH SCHOOL will facilitate the

teachers in preparing grades, submitting grading sheets thus lesser time to

prepare High School Card to deliver to Parents during Card Day. Effort is

lessened due to immediate inputting of data to each student in their records

prepared earlier in enrollment, thus gives automatic computation of the

equivalence, summing up and multiplied to its percentage for the final grade.

This device is for all teachers to record all the required data needed for

the component on the grading system. The final grade comes out. This system

is truly organized because all the required data is pre-programmed and settled

and as a result, computation is facilitated and made easier and aside from this

all records, data can be save and keep.

For the student, in order to understand easily the grading system, the

teacher explains the operation in the computation of their grades.

Objectives of the Study

General Objective:

Page 3

Page 11: Documentation 1 - Copy

Chapter I: Background of the Study

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

To have a base system of grade computation of the LIBERTAD NATIONAL

HIGH SCHOOL. This aims to lessen the time and effort in computing

grades.

Accurate and faster manipulating of data.

Specific Objective:

Manipulate data easily.

Find/copy other data easier and faster.

Fast tracking in the checking of the grading sheets.

Lesser time in monitoring the preparation of grading sheets.

Significance of the Study

This study is beneficial on the part of the direct recipient, and the

researchers itself.

Scope and delimitation

Scope

The computerized grading system provides faculty staffs/teachers a faster

and more accurate way of grade computation. This system is an enhanced way

provided for the teachers of Libertad National High School for an easier way and

ease of access of student grade computation and assessment.

Delimitation

Page 4

Page 12: Documentation 1 - Copy

Chapter I: Background of the Study

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Fast application process.

Fast in tracking and manipulating of grade.

Lessen the time in the preparation of grading sheets.

Lesser time and effort in importing grade and other data.

Methodology of the Study

In this study, descriptive method is use; to do this the researchers issued

questionnaires of the grading system of the different subject areas of LIBERTAD

NATIONAL HIGH SCHOOL. It includes visitation, observation of the work

environment and interview.

Site Visit

To have a clearer background, the researchers visited the location of the

school, LIBERTAD NATIONAL HIGH SCHOOL at Barangay Libertad, Abulug,

Cagayan and see the Computer Laboratory of the School.

Interview

It is a kind of collecting information or data from an individual face

to face. The researchers interview the teacher’s computer teacher and principal

of the school as to the system of grading used by the school.

Observation

Page 5

Page 13: Documentation 1 - Copy

Chapter I: Background of the Study

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

The researchers observe the teachers in manually recording

computing and transmitting the grades obtain by the students in the class

record to the grading sheet for checking at the office.

Data Gathering

In order to arrive a good output, the researchers gathered data by the

descriptive Method of Research. In this method, researchers used descriptive

survey through the questionnaires floated to respondents, the school teachers

and students, so that researchers can gather important data and information

regarding to the study that cannot ask verbally.

Internet Surfing

The Department of Education Website is used in gathering some

data needed using www.DepEd.com.ph

Page 6

Page 14: Documentation 1 - Copy

Chapter I: Background of the Study

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Definition of Terms

To better understand this study, listed below are terms, which are used by

the Researchers in pursuing this study:

Analysis – the process of examining a problem and its element using a

define procedure.

Computer – an electronic device capable of accepting data, performing

arithmetic and logical procedure.

Computerized – refers to that system that carries control or it s

conducted by means or computer.

Data - collection of facts in the forms of figure, members and symbols,

letters, name, etc.

Database – an organized have related information for future references.

Documentation – the collecting, abstracting, and coding have of

information for future references.

Fields – single item of information about a person, place, or thing such s

name, address, etc.

Form – a class referring to an object as the controls in graphical interface.

Information – pertains to the data and knowledge obtained from

investigation, study or instruction.

Information System – combination of all communication method in

organization.

Page 7

Page 15: Documentation 1 - Copy

Chapter I: Background of the Study

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Input – the data entered by the user, which is being transformed into

meaningful operation.

Manual System – the process of doing or operating a certain thing

involving the hands or physical force utilizing more efforts in performing.

Proposal – a suggestion presented to accepting or reflecting and

providing the results of the process.

Researchers – the person involved in the study.

Reports – printed output as user generated.

System Analysis – the analysis, design, development, and

implementation of computer based information system.

System – it is a collection of machines, methods organized to accomplish

a set of specific function.

Page 8

Page 16: Documentation 1 - Copy

Chapter I: Background of the Study

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Schedule of the Study

Activities JUNE JULY AUGUST SEPTEMBER

Week Number 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4

Data Gathering                                

Problem Definition                                

Project Planning                                

System Analysis                                

System Design                                

Prototype Encoding                                

Documentation                                

System Testing                                

Implementation                                

System Evaluation                                

Gant Chart of the Schedule of the Study

Page 9

Page 17: Documentation 1 - Copy

Chapter II: Analysis and Presentation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

CHAPTER II

ANALYSIS AND PRESENTATION

History

The School was founded in 1967 through the joint efforts of Ex-Vice Mayor

of Abulug, Mr. Antonio Dumayas(Deceased) with Dr. Felina G. Castillejos as

School Administrator, the Libertad Barrio Council headed by Barrio Captain

Rodrigo Asejo at the PTA Officials.

The area of 18,125 square meters located opposite the Office of

Department of Public Works and Highway, Second District of Cagayan, through

President Proclamation number 699 last July 1989.The Administrator was:

1967-1968 Mrs. Felina Gummayen

1968-1970 Mr. Eladio Miranda

1970-1977 Mr. Pedro Agaceta

1977-1980 Mr. Pricilla Fernandez

1980-1982 Mr. Wilfredo P. Agustin

1982-2001 Mrs. Paz F. Tagoc

2001-2003 Mr. Abraham C. Acosta

2003-present Mrs. Priscilla T. Pacis

With an average Students Population of 750 with 28 Teachers and

Employees.

Page 10

Page 18: Documentation 1 - Copy

Chapter II: Analysis and Presentation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Functions and Objectives of the Organization

The Libertad National High School is a learning institution for the Basic

Education with competent Teachers and supportive Parents and Community,

who works together as a team to mould unique child towards the total

development of his multiple intelligence in a caring and nurturing environment.

Vision

We shall strive for our school to be known for its student who are

multitalented and whose motivations, aspirations, manners and dealings

manifest a high degree of excellence who will be developed by teachers who

are good models of virtues and who are creative, self-propelled, and innovative

together with parents and community who are cooperative and supportive in a

caring and nurturing environment.

Mission

The Libertad National High School is a learning institution for the Basic

Education with competent teachers and supportive parents and community who

work together as a team to mould each unique child towards the total

development of his multiple intelligence in a caring and nurturing environment.

Page 11

Page 19: Documentation 1 - Copy

Chapter II: Analysis and Presentation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Organizational Chart

Page 12

Page 20: Documentation 1 - Copy

Chapter II: Analysis and Presentation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Flow Chart Symbol

Terminal Block. This symbol is used to mark the

start and end of the list of instruction. Start is used

to mark the starting point and the End is used to

mark the end of the flowchart.

Input/output Block. The parallelogram symbol is

used for input and output instructions. For input, the

instruction that can be used is Read or Input,

followed by a list of variables separated by a comma.

For output, the instruction that can be used is

Display or Print, followed by a list of variables

and/or text that will be displayed or printed.

Processing Block. This symbol is used to process

calculations. Formulas are usually entered in this

section of the flowchart. Formulas include variables

that will be replaced by figures entered by the user.

Activities that are to be performed are also included.

Page 13

Page 21: Documentation 1 - Copy

Chapter II: Analysis and Presentation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Decision Block. A diamond shaped symbol used to

indicate decisions. Done in question form and is

answerable by yes or no. Uses logical relations such

as equal(=), not equal(≠), greater than(>), greater

than or equal to(≥) and less than or equal to(≤).

On-page Connectors. Flowcharts are written from

top to bottom, left to right. Once the bottom of the

left side is reached continuation of the flowchart can

be at the right side on the same page.

Off-page Connectors. This symbol is used if the

flowchart is to be continued on the next page.

Flowlines. This shows the direction of the flowchart.

Preparation. This symbol is used to initialize the

value/s of the variable/s to be used.

Magnetic Disk. This symbol is used where data is to

be stored.

Page 14

Page 22: Documentation 1 - Copy

Chapter II: Analysis and Presentation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Document. This represents a document or a printed

output.

Multi Document. This represents multiple

documents to be printed.

Stored Data. This corresponds to any data stored in

a memory or storage unit.

Manual Input. This denotes a manual entry of data.

Display. This represents data to be displayed on a

monitor or projector.

Manual Operation. For process flowcharts this will

indicate manual operation to be performed by an

individual or group.

Page 15

Page 23: Documentation 1 - Copy

Chapter II: Analysis and Presentation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Flow Chart of the Present System

N

Y

Page 16

Start

Subject Teacher Compute the Final

Grade

Principal Returns to the

Subject Teacher

Grades are written in the Student‘s Form 137 and stored in cabinet

Class Adviser Passes Grade to

the Principal

Valid?

After Principals Validation, the Teacher writes the Grades on Student’s Form 138

Validation

End

Page 24: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

CHAPTER III

THE PROPOSED SYSTEM

Description of the Proposed System

The Grading System of Libertad National High School will greatly improve

the efficiency and speed of computing grades of the student.

This Computerized Grading System will help improve the speed in

computing the grades of the student making the work of the teachers during

examination dates easier. Likewise, in the preparation of examination, the

teachers will have easier way in encoding and printing out the computed grade

for the approval with an interactive interface making the process easier and

comfortable for the teachers. It would eliminate the use of test papers in taking

examination making it more economically friendly. It would help the students

receive their scores right after examination to know their academic

performance in a particular subject.

Page 17

Page 25: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Flow Chart of the Proposed System

Page 18

Start

Subject Teacher choose first the

Subject Teacher search and select the name of the student

Subject Teacher search and select the

Input grades of student in grading

If all fields are filled

Fill up all fields then save

Save?

End

Automatically save in the database.

N

Y

Page 26: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Input-Process-Output Diagram

Page 19

HELPREPORTSTRANSACTION

LIBRARIES

EXIT

INDIVIDUAL GRADE

LOGOUT

STUDENT

CLASS RECORD

SUBJECT

LIST OF STUDENTCOMPUTE GRADE

FOURTH GRADING

THIRD GRADING

CLASS RECORD

SECTION

ABOUT SYSTEM

LOGIN

MAIN

SETUP

LIST OF SUBJECT

RANKING

SPLASH SCREEN

USER ACCOUNT

ABOUT DEVELOPER

FIRST GRADING

SECOND GRADINGYEAR LEVEL

GRADING SHHET

Page 27: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Hierarchical Input-Process-Output Diagram

INPUT PROCESS OUTPUT

tblUserUsernamePassword

tblStudentStudent IDStudent NameAddressGenderBirth DateContact NumberReligion

tblSubjSubjectSubject Code

tblGrade11st Grading2nd Grading3rd Grading4th Grading

ADDThis allows the user to add another record.

EDITThis allows the user to edit one’s record.

DELETEThis allows the user to delete/erase record.

CANCELThis allows the user to cancel what he/she do not want to happen.

SAVEThis allows the user to save records.

COMPUTE This allows the user to compute the grade on student.

ReportsList of StudentList of SubjectClass Record

Page 20

Page 28: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Entity Relationship Diagram

Page 21

tblUser

tblStudent tblSubj

tblGrade

LNHS

tblUser

UserID

UserName Password

Type

Page 29: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Page 22

IDNO

Subject

Name

SubjNo

tblGrade1

PT1

B1

Q1

PER1

PRO1

UT1

A1

TOTAL1

Yearlevel

Section

PT4

B4

Q4

PER4

PRO4

UT4

A4

TOTAL4

PT3

B3

Q3

PER3

PRO3

UT3

A3

TOTAL3

PT2

B2

Q2

PER2

PRO2

UT2

A2

TOTAL2

Page 30: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Page 23

tblStudent

FName

MName

LName

Gender

BDate

Contact

StudentNo

Year_Level

StudentSec

Address

Religion

tblSubj

Project

Subject

Quizzes Performance

Unit Test

Periodic Test

Assignment

SubjNo Behavior

Page 31: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Cost Benefit Analysis

Description

Present SystemQTY Amount

Proposed SystemQTY Amount

VarianceRemarks

I. Cost of Labor

Professional Rate(PR)PR=25000/month =25000/30 =833/day =833/9PR=92/hour

SUB-PROFESSIONAL RATE (SPR)SPR=PR*35% =25000*.35 =8750/month =3500/30 =291.67/day =291.67/5SPR=58.33/hour

SYSTEM DEVELOPMENT PERIOD (SDP)SDP=4 mo.* 4 wks/mo.* 7 days * 5 hrs.SDP=560 hrs.

COST OF LABOR (CL)CL= SDP * SPR = 560 hrs. * P58.33CL = P32,664.8

II. Computer Equipment

A. Computer RentalsTotal hands-on hours in school = 80 hrs

2 (P32,664.8)

P65,329.6

The estimated professional rate per month is P25, 000.00.

The sub-professional rate is computed 35% of the estimated professional rate

The cost of labor is computed as system development period multiplied by sub-professional rate per hour multiplied by the number of researchers.

To compute for the number of hours to be consumed outside the school, 80 hours is

Page 24

Page 32: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Total hands-on hours off –school= SDP – 80 hrs= 480 hrs

Printing Expenses=P650

III. SuppliesInkBond Paper

IV. Miscellaneous Photo Copy(3)Book Binding

(P650)

2

3

P650

subtracted from the total number of hours for the system development which is 560 hours.

The printing expense cost is P650

Page 25

Page 33: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Schedule of the Proposed System

Activities JUNE JULY AUGUST SEPTEMBERWeek Number 1 2 3 4 1 2 3 4 1 2 3 4 1 2 3 4

Data Gathering                                Problem Definition                                Project Planning                                System Analysis                                

System Design                                Prototype Encoding                                

Documentation                                

System Testing                                

Implementation                                System Evaluation                                

Gant Chart of the Schedule of the Proposed System

Page 26

Page 34: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

CHAPTER IV

PROGRAM

User’s Manual

This is the Splash Screen, the first to show on the system when it runs.

This is the Login form where you can input your Username and Password to enter the system.

Page 27

Page 35: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

This is the content of the Setup in the Main Form

This is the Student Form which is under the content of Library. This Form shows, add, edit, delete, save Student Information. At the other Section of the form, the user can search and print student record.

Page 28

Page 36: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

This is the Subject Form which is under the content of Library. This shows, add, edit, delete, and save Subject with its corresponding percentage.

This is the User Account where the User can add, edit, delete, save its Account to enter the system. If the login user is not admin the submenu will be disabled.

Page 29

Page 37: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

When you click Logout in Setup’s content this message will show. If you click yes, it will go back to Login Form and if no, it will stay remain in the Main Form.

This is the content of Transaction in the Menu. It will disabled if the login user is not admin

Page 30

Page 38: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

This is the Compute Form under the Transaction Menu. This allows the user to compute the grade of the student in every Subject.

This is the Class Record Form displaying all the grades of Student in each grading period.

Page 31

Page 39: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

This is the content of Report in the Menu. It contains Class Record; List of Students contains the Section, Year Level and Individual Grade. The List of Subject is ready to print.

Page 32

Page 40: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

This is the Section Form; it allows User to Search the Student’s Year Level and Section that is ready to print when the preview button is click. This displays the Section Report.

When the Search is done and Preview Button has been click it will show the Search Section in Report and ready to print.

Page 33

Page 41: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

This is the Year Level Form; it allows User to Search the Student’s Year Level and Section that is ready to print when the preview button is click. This displays the Grades of Student per year level and per section..

This is the result of searching on the Year Level form and it is now ready to print.

Page 34

Page 42: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

This is the Ranking Form with allows the user to search Year Level, Section and the Subject number. The user can select what grading period he/she like and print it when the button preview click.

Page 35

Page 43: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

This is the Class Record Form; the User search and choose subject depending on what year level and section then the report shows the Student who has the subject chosen with their corresponding grades from 1st grading to 4th grading and their final grade.

After choosing a Subject, a Report will appear showing the list of Student who has the Subject that has been chosen with their grade.

Page 36

Page 44: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

This is the Grade Sheet Form; user can search the year level and section of the student and the subject he/she want to search to show the computed grade from 1st grading to 4th grading including the final grade.

This is the report of the Grading sheet it displays the total grade from 1st

grading to 4th grading and automatically computes the final Grade.

Page 37

Page 45: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

This is the content of the about menu.

This is the about the system where it display a message about the system.

Page 38

Page 46: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

This is the Developer’s Form; it shows the developer of the system, it helps the user to run the system if there is a trouble.

Code

SplashOption ExplicitPrivate Sub Form_KeyPress(KeyAscii As Integer)

Page 39

Page 47: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

frmLogin.txtUser.SetFocusEnd Sub

Private Sub Timer1_Timer() pbLoader.Value = pbLoader.Value + 1 lblPercent.Caption = pbLoader.Value / pbLoader.Max * 100 & " %" If pbLoader.Value > 1 And pbLoader.Value < 20 Then lblLoad.Caption = "Loading Program...." Else If pbLoader.Value > 20 And pbLoader.Value < 30 Then lblLoad.Caption = "Loading Tools...." Else If pbLoader.Value > 30 And pbLoader.Value < 45 Then lblLoad.Caption = "Loading Database...." End If End If End If If pbLoader.Value = 70 Then lblLoad.Caption = "Initializing...." Timer1.Interval = 30 End If If pbLoader.Value = 80 Then Timer1.Interval = 30 lblLoad.Caption = "Executing Program...." End If If pbLoader.Value = pbLoader.Max Then Timer1.Interval = 0 Unload Me frmLogin.Show End IfEnd Sub

LoginPrivate Sub cmdClose_Click()If MsgBox("Are you sure you want to Close?", vbQuestion + vbYesNo, "Close") = vbYes ThenEndEnd IfEnd Sub

Private Sub cmdOK_Click()Static try As Integer Set con = New ADODB.Connection Set rs = New ADODB.Recordset Call connect rs.Open "select * from tbluser where username = '" & Replace(Trim(txtUser.Text), "'", "") & "' and password = '" & Replace(Trim(txtPass.Text), "'", "") & "'", conn, adOpenStatic, adLockReadOnly If rs.EOF Then

Page 40

Page 48: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

MsgBox "Invalid Username or Password! " & (2 - try) & " Try remaining", vbExclamation, "LNHS" txtUser.Text = "" txtPass.Text = "" txtUser.SetFocus try = try + 1 If try = 3 Then MsgBox "You have reached the maximum trial for Logging in!", vbInformation, "Program Shutting Down" End End If Else MsgBox "Welcome " & rs.Fields("username") & " to Computerized Grading System of LNHS", vbInformation, "LNHS" frmMain.StatusBar1.Panels(2).Text = rs.Fields("username") If rs.Fields("Type").Value = "User" Then frmMain.mnutransaction.Enabled = False frmMain.mnuuseracc.Enabled = False frmMain.mnulibraries.Enabled = False frmMain.mnuindividualgrade.Enabled = False End If Unload Me frmMain.Show End IfEnd Sub

Main'Private Sub MDIForm_QueryUnload(Cancel As Integer, UnloadMode As Integer) 'Dim a As Integer 'a = MsgBox("Are you sure you want to exit?", vbQuestion + vbOKCancel, "LNHS Computerized Grading System") ' If a = vbOK Then 'Cancel = False 'Else 'Cancel = True ' End If'End Sub

Private Sub mnuclassrec1_Click()frmClassRec.Show vbModal, frmMainEnd Sub

Private Sub mnuclassrec2_Click()frmChooseSubj.Label2.Caption = 1frmChooseSubj.Show vbModal, frmMainEnd Sub

Private Sub mnucompute_Click()frmgrade.ShowEnd Sub

Page 41

Page 49: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Private Sub mnudeveloper_Click()frmDeveloper.Show vbModal, frmMainEnd Sub

Private Sub mnuexit_Click()If MsgBox("Are You Sure You Want to Exit?", vbQuestion + vbYesNo, "Exit") = vbYes Then Unload MeEnd IfEnd Sub

Private Sub mnugradingsheet_Click()frmChooseSubj.ShowfrmChooseSubj.Label2.Caption = 2End Sub

Private Sub mnuGS_Click()frmChooseGS.Show vbModal, frmMainEnd Sub

Private Sub mnuindividualgrade_Click()frmgrade.ShowEnd Sub

Private Sub mnulistsubj_Click()frmChooseYL.Show vbModal, frmMainEnd SubPrivate Sub mnulogout_Click()If MsgBox("Are You Sure You Want to Logout?", vbQuestion + vbYesNo, "Logout") = vbYes Then Unload Me frmLogin.ShowEnd IfEnd Sub

Private Sub mnuranking_Click()frmRank.Show vbModal, frmMainEnd Sub

Private Sub mnusection_Click()frmSection.ShowEnd Sub

Private Sub mnustudent_Click()frmStudent.Show vbModal, frmMainEnd Sub

Private Sub mnusubject_Click()

Page 42

Page 50: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

frmSubject.Show vbModal, frmMainEnd Sub

Private Sub mnusystem_Click()frmSystem.ShowEnd Sub

Private Sub mnuuseracc_Click()frmUserAcc.Show vbModal, frmMainEnd Sub

Private Sub mnuyearlevel_Click()frmYearLevel.ShowEnd Sub

StudentDim temocode As Integer

Private Sub cmbreligion_Click()t9.Text = cmbreligion.TextEnd Sub

Private Sub cmdAdd_Click()Adodc1.RecordSource = "SELECT * FROM tblstudent order by studentno"Adodc1.RefreshIf Adodc1.Recordset.RecordCount = 0 Thentempcode = 1ElseAdodc1.Recordset.MoveLasttempcode = Val(Adodc1.Recordset(0)) + 1End If

Adodc1.Recordset.AddNewENAt1.Text = Format(tempcode, "0")t2.SetFocusEnd Sub

Private Sub cmdCancel_Click()If MsgBox("Are You Sure You Want to Cancel?", vbQuestion + vbYesNo, "Cancel") = vbYes ThenAdodc1.Recordset.CancelBatchAdodc1.RefreshdisEnd IfEnd Sub

Private Sub cmdClose_Click()

Page 43

Page 51: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

If MsgBox("Are You Sure You Want to Close?", vbQuestion + vbYesNo, "Close") = vbYes Then Unload MeEnd IfEnd Sub

Private Sub cmdDel_Click()If Adodc1.Recordset.RecordCount = 0 ThenMsgBox "No Record to Delete.", vbInformation, "Delete"ElseIf MsgBox("Are You Sure you Want to Delete", vbQuestion + vbYesNo, "Delete") = vbYes ThenAdodc1.Recordset.DeleteEnd IfdisUnload MeMe.ShowEnd IfEnd Sub

Private Sub cmdEdit_Click()If Adodc1.Recordset.RecordCount = 0 ThenMsgBox "No Record to Edit.", vbInformation, "Edit"ElseENAt1.SetFocusEnd IfEnd Sub

Private Sub cmdFirst_Click()If Adodc1.Recordset.RecordCount <> 0 Then Adodc1.Recordset.MoveFirstEnd IfEnd Sub

Private Sub cmdLast_Click()If Adodc1.Recordset.RecordCount <> 0 Then Adodc1.Recordset.MoveLastEnd IfEnd Sub

Private Sub cmdNext_Click()If Adodc1.Recordset.RecordCount = 0 Then MsgBox "No Records", vbInformation, "LNHS"ElseAdodc1.Recordset.MoveNextIf Adodc1.Recordset.EOF Then If MsgBox("Last Record", vbInformation, "LNHS Computerized Grading System") = vbOK Then Adodc1.Recordset.MoveLast

Page 44

Page 52: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

End IfEnd IfEnd IfEnd Sub

Private Sub cmdPre_Click()If Adodc1.Recordset.RecordCount = 0 Then MsgBox "No Records", vbInformation, "LNHS"ElseAdodc1.Recordset.MovePreviousIf Adodc1.Recordset.BOF Then Adodc1.Recordset.MoveFirst If MsgBox("First Record", vbInformation, "LNHS Computerized Grading System") = vbYes ThenEnd IfEnd IfEnd IfEnd Sub

Private Sub cmdsave_Click()If t1.Text = "" Or t2.Text = "" Or t3.Text = "" Or t4.Text = "" Or t5.Text = "" Or cmbSection.Text = "" Or _DTPicker1.Value = "" Or t8.Text = "" Or t9.Text = "" Or cmbgender.Text = "" Or cmbYL.Text = "" Then MsgBox "Please Fill Out All Fields", vbInformationElseIf MsgBox("Are You Sure You Want to Save?", vbQuestion + vbYesNo, "Save") = vbYes Then Adodc1.Recordset.Update disEnd IfEnd IfEnd Sub

Function ENA()Frame1.Enabled = TruecmdAdd.Enabled = FalsecmdEdit.Enabled = FalsecmdDel.Enabled = FalsecmdSave.Enabled = TruecmdCancel.Enabled = TruecmdClose.Enabled = FalseEnd Function

Function dis()Frame1.Enabled = FalsecmdAdd.Enabled = TruecmdEdit.Enabled = TruecmdDel.Enabled = TruecmdSave.Enabled = FalsecmdCancel.Enabled = False

Page 45

Page 53: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

cmdClose.Enabled = TrueEnd Function

Private Sub cmdSearch_Click()Adodc2.RecordSource = "select * from tblStudent where Year_Level like '" & Combo1.Text & "' and StudentSec like '" & Text2.Text & "' order by Lname "Adodc2.RefreshDataGrid2.RefreshEnd Sub

Private Sub Command1_Click()If Adodc2.Recordset.RecordCount = 0 ThenAdodc2.RefreshMsgBox ("No Record!")ElseWith de.rsStudent .Open de.rsCommand2_Grouping.Filter = "Year_level ='" & Combo1.Text & "' And StudentSec ='" & Text2.Text & "'" rptStudent.Show vbModal, frmMain .CloseEnd WithEnd IfUnload MeEnd Sub

Private Sub t8_KeyPress(KeyAscii As Integer)If KeyAscii = 13 Then cmbreligion.SetFocusEnd IfDim str As Stringstr = "0123456789"If KeyAscii > 26 ThenIf InStr(str, Chr(KeyAscii)) = 0 ThenKeyAscii = 0End IfEnd IfEnd Sub

Private Sub txtdate_KeyPress(KeyAscii As Integer)If KeyAscii = 13 Then t8.SetFocusEnd IfDim str As Stringstr = "0123456789"If KeyAscii > 26 ThenIf InStr(str, Chr(KeyAscii)) = 0 ThenKeyAscii = 0End If

Page 46

Page 54: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

End IfEnd Sub

SubjectDim temocode As IntegerPrivate Sub cmbgender_Click()t6.Text = cmbgender.TextEnd Sub

Private Sub cmdAdd_Click()Adodc1.RecordSource = "select * from tblsubj order by subjno"Adodc1.RefreshIf Adodc1.Recordset.RecordCount = 0 Thentempcode = 1ElseAdodc1.Recordset.MoveLasttempcode = Val(Adodc1.Recordset(0)) + 1End IfAdodc1.Recordset.AddNewENAt1.Text = Format(tempcode, "000")t2.SetFocusEnd Sub

Private Sub cmdCancel_Click()If MsgBox("Are You Sure You Want to Cancel?", vbQuestion + vbYesNo, "LNHS Computerized Grading System") = vbYes ThenAdodc1.Recordset.CancelBatchAdodc1.RefreshdisEnd IfEnd Sub

Private Sub cmdClose_Click()If MsgBox("Are You Sure You Want to Close?", vbQuestion + vbYesNo, "LNHS Computerized Grading System") = vbYes Then Unload MeEnd IfEnd Sub

Private Sub cmdDel_Click()If Adodc1.Recordset.RecordCount = 0 ThenMsgBox "No Record to Delete.", vbInformation, "LNHS Computerized Grading System"ElseIf MsgBox("Are You Sure you Want to Delete", vbQuestion + vbYesNo, "LNHS Computerized Grading System") = vbYes ThenAdodc1.Recordset.Delete

Page 47

Page 55: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

End IfdisUnload MeMe.ShowEnd IfEnd Sub

Private Sub cmdEdit_Click()If Adodc1.Recordset.RecordCount = 0 ThenMsgBox "No Record to Edit.", vbInformation, "LNHS Computerized Grading System"ElseENAt1.SetFocusEnd IfEnd Sub

Private Sub cmdFirst_Click()If Adodc1.Recordset.RecordCount <> 0 Then Adodc1.Recordset.MoveFirstEnd IfEnd Sub

Private Sub cmdLast_Click()If Adodc1.Recordset.RecordCount <> 0 Then Adodc1.Recordset.MoveLastEnd IfEnd Sub

Private Sub cmdNext_Click()If Adodc1.Recordset.RecordCount = 0 Then MsgBox "No Records", vbInformation, "LNHS Computerized Grading System"ElseAdodc1.Recordset.MoveNextIf Adodc1.Recordset.EOF Then If MsgBox("Last Record", vbInformation, "LNHS Computerized Grading System") = vbOK Then Adodc1.Recordset.MoveLastEnd IfEnd IfEnd IfEnd Sub

Private Sub cmdPre_Click()If Adodc1.Recordset.RecordCount = 0 Then MsgBox "No Records", vbInformation, "LNHS Computerized Grading System"ElseAdodc1.Recordset.MovePreviousIf Adodc1.Recordset.BOF Then

Page 48

Page 56: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Adodc1.Recordset.MoveFirst If MsgBox("First Record", vbInformation, "LNHS Computerized Grading System") = vbYes ThenEnd IfEnd IfEnd IfEnd Sub

Private Sub cmdsave_Click()If t1.Text = "" Or t2.Text = "" Or t3.Text = "" Or t4.Text = "" Or t5.Text = "" Or t6.Text = "" Or _t7.Text = "" Or t8.Text = "" Or t9.Text = "" Then MsgBox "Please Fill Out All Fields", vbInformation, "LNHS Computerized Grading System"ElseIf Val(t10.Text) = 100 ThenIf MsgBox("Are You Sure You Want to Save?", vbQuestion + vbYesNo, "LNHS Computerized Grading System") = vbYes Then Adodc1.Recordset.Update disEnd IfElseMsgBox "Total must be 100%", vbInformation, "LNHS Computerized Grading System"End IfEnd IfEnd Sub

Function ENA()Frame1.Enabled = TrueFrame2.Enabled = TruecmdAdd.Enabled = FalsecmdEdit.Enabled = FalsecmdDel.Enabled = FalsecmdSave.Enabled = TruecmdCancel.Enabled = TruecmdClose.Enabled = FalseEnd Function

Function dis()

Frame1.Enabled = FalseFrame2.Enabled = FalsecmdAdd.Enabled = TruecmdEdit.Enabled = TruecmdDel.Enabled = TruecmdSave.Enabled = FalsecmdCancel.Enabled = FalsecmdClose.Enabled = TrueEnd Function

Page 49

Page 57: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Private Sub t3_Change()COMPTOTALEnd Sub

Function COMPTOTAL()t10.Text = Val(t3.Text) + Val(t4.Text) + Val(t5.Text) + Val(t6.Text) + Val(t7.Text) + Val(t8.Text) + Val(t9.Text)End Function

Private Sub t4_Change()COMPTOTALEnd Sub

Private Sub t5_Change()COMPTOTALEnd Sub

Private Sub t6_Change()COMPTOTALEnd Sub

Private Sub t7_Change()COMPTOTALEnd Sub

Private Sub t8_Change()COMPTOTALEnd Sub

Private Sub t9_Change()COMPTOTALEnd Sub

User Account

Private Sub chkpas_Click() If chkpas.Value = 1 Then txtpassword.PasswordChar = "" Else txtpassword.PasswordChar = "*" End IfEnd Sub

Private Sub cmbLevel_Click()txtLevel.Text = cmbLevel.TextEnd Sub

Page 50

Page 58: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Private Sub cmdAdd_Click()ENAOn Error Resume NextAdodc1.Recordset.AddNewtxtusername.SetFocusEnd Sub

Private Sub cmdCancel_Click()If MsgBox("Are you sure you want to Cancel?", vbQuestion + vbYesNo, "Cancel") = vbYes ThenAdodc1.Recordset.CancelBatchAdodc1.RefreshdisEnd IfEnd Sub

Private Sub cmdClose_Click()If MsgBox("Are You Sure You Want to Close?", vbQuestion + vbYesNo, "Close") = vbYes Then Unload MeEnd IfEnd Sub

Private Sub cmdDelete_Click()If MsgBox("Are You Sure you Want to Delete this Supplier from the List", vbQuestion + vbYesNo, "LNHS Computerized Grading System") = vbYes Then Adodc1.Recordset.Fields("Deleted").Value = "YES" Adodc1.Recordset.UpdateEnd IfdisPosLeft = Me.LeftPosTop = Me.TopUnload MeMe.Show

Me.Left = PosLeftMe.Top = PosTopEnd Sub

Private Sub cmdDel_Click()If txtLevel.Text = "Administrator" ThenMsgBox "Sorry, Unable to Delete The Administrator Account.", vbInformation, "Delete"ElseIf Adodc1.Recordset.RecordCount = 0 ThenMsgBox "No Record to Delete.", vbInformation, "Delete"ElseIf MsgBox("Are You Sure you Want to Delete", vbQuestion + vbYesNo, "Delete") = vbYes ThenAdodc1.Recordset.DeleteEnd If

Page 51

Page 59: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

disUnload MeMe.ShowEnd IfEnd IfEnd Sub

Private Sub cmdEdit_Click()If Adodc1.Recordset.RecordCount = 0 ThenMsgBox "No Record to Edit.", vbInformation, "Edit"ElseENAEnd IfEnd Sub

Private Sub cmdFirst_Click()Adodc1.Recordset.MoveFirstEnd Sub

Private Sub cmdLast_Click()Adodc1.Recordset.MoveLastEnd Sub

Private Sub cmdNext_Click()Adodc1.Recordset.MoveNextIf Adodc1.Recordset.EOF Then Adodc1.Recordset.MoveLast MsgBox "Last Record", vbInformation, "LNHS Computerized Grading System" End IfEnd Sub

Private Sub cmdPre_Click()Adodc1.Recordset.MovePreviousIf Adodc1.Recordset.BOF Then Adodc1.Recordset.MoveFirst MsgBox "First Record", vbInformation, "LNHS Computerized Grading System"End IfEnd Sub

Private Sub cmdsave_Click()If txtusername.Text = "" Or txtpassword.Text = "" Or txtLevel.Text = "" ThenMsgBox "Please Fill Out All Fields", vbInformation, "Save"ElseIf MsgBox("Are You Sure You Want to Save?", vbQuestion + vbYesNo, "Save") = vbYes ThenAdodc1.Recordset.UpdatedisEnd If

Page 52

Page 60: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

End IfEnd Sub

Function ENA()Frame2.Enabled = TruecmdAdd.Enabled = FalsecmdEdit.Enabled = FalsecmdDel.Enabled = FalsecmdSave.Enabled = TruecmdCancel.Enabled = TruecmdClose.Enabled = FalseEnd Function

Function dis()Frame2.Enabled = FalsecmdAdd.Enabled = TruecmdEdit.Enabled = TruecmdDel.Enabled = TruecmdSave.Enabled = FalsecmdCancel.Enabled = FalsecmdClose.Enabled = TrueEnd Function

Private Sub Form_Load()Adodc1.RecordSource = "select * from tblUser"Adodc1.RefreshdisEnd Sub

First GradingPrivate Sub cmdAdd_Click()ENAEnd Sub

Private Sub cmd1_Click()frmgrade.Showcmd1.Enabled = Truecmd2.Enabled = Falsecmd3.Enabled = Falsecmd4.Enabled = FalseFrame1.Enabled = TrueFrame2.Enabled = TrueFrame3.Enabled = TrueFrame4.Enabled = TrueEnd Sub

Private Sub cmd2_Click()

Page 53

Page 61: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

frmgrade2.ShowUnload MeEnd Sub

Private Sub cmd3_Click()frmgrade3.ShowUnload MeEnd Sub

Private Sub cmd4_Click()frmgrade4.ShowUnload MeEnd Sub

Private Sub cmd5_Click()frmCompute.ShowUnload MeEnd Sub

Private Sub cmd6_Click()frmComputeFG.ShowUnload MeEnd Sub

Private Sub cmdCancel_Click()If MsgBox("Are You Sure You Want to Cancel?", vbQuestion + vbYesNo, "Cancel") = vbYes ThenAdoGrade.Recordset.CancelBatchAdoGrade.RefreshUnload MeMe.ShowEnd IfEnd Sub

Private Sub cmdClose_Click()If MsgBox("Are You Sure You Want to Close?", vbQuestion + vbYesNo, "CLose") = vbYes Then Unload MeEnd IfEnd Sub

Private Sub cmdsave_Click()On Error GoTo bjAdoGrade.Recordset(0).Value = t1.TextAdoGrade.Recordset(1).Value = t2.Text & ", " & t3.Text & " " & t4.TextAdoGrade.Recordset(2).Value = t5.TextAdoGrade.Recordset(3).Value = t6.TextAdoGrade.Recordset(4).Value = t7.TextAdoGrade.Recordset(5).Value = t8.Text

Page 54

Page 62: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

AdoGrade.Recordset(6).Value = t9.TextAdoGrade.Recordset(7).Value = t10.TextAdoGrade.Recordset(8).Value = t11.TextAdoGrade.Recordset(9).Value = t12.TextAdoGrade.Recordset(10).Value = t13.TextAdoGrade.Recordset(11).Value = t14.TextAdoGrade.Recordset(37).Value = Text1.TextAdoGrade.Recordset(38).Value = Text2.TextIf Me.t7.Text = "" Or Me.t8.Text = "" Or Me.t9.Text = "" Or Me.t10.Text = "" Or Me.t11.Text = "" Or Me.t12.Text = "" Or Me.t13.Text = "" Or Me.t14.Text = "" ThenMsgBox "All textboxes are required to fill-up.", vbInformation, "LNHS Computerized Grading System"ElseIf MsgBox("Waiting for your confirmation to Save.", vbQuestion + vbYesNo, "Save") = vbYes ThenAdoGrade.Recordset.UpdateAdoGrade.Recordset.UpdateUnload MeMe.ShowEnd IfEnd IfExit Subbj:End Sub

Private Sub cmdSearch_Click()frmSearch.ShowfrmSearch.Label1 = 1End Sub

Private Sub cmdsearch2_Click()frmSearch2.ShowfrmSearch2.Label1 = 1End Sub

Private Sub Form_Load()AdoStud.RecordSource = "select * from tblStudENt where Studentno ='" & t1.Text & "' "AdoStud.RefreshAdoSubj.RecordSource = "select * from tblSubj where SubjNo='" & t5.Text & "' "AdoSubj.RefreshAdoSubj.RecordSource = "select * from tblSubj where Subject='" & t5.Text & "' "AdoSubj.RefreshEnd Sub

Private Sub t1_Change()AdoStud.RecordSource = "select * from tblStudENt where Studentno ='" & t1.Text & "' "AdoStud.RefreshEnd Sub

Page 55

Page 63: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Private Sub t5_Change()On Error Resume NextAdoSubj.RecordSource = "select * from tblSubj where SubjNo='" & t5.Text & "' "AdoSubj.Refreshl(0).Caption = "X " & AdoSubj.Recordset(2).Value & " % "l(1).Caption = "X " & AdoSubj.Recordset(3).Value & " % "l(2).Caption = "X " & AdoSubj.Recordset(4).Value & " % "l(3).Caption = "X " & AdoSubj.Recordset(5).Value & " % "l(4).Caption = "X " & AdoSubj.Recordset(6).Value & " % "l(5).Caption = "X " & AdoSubj.Recordset(7).Value & " % "l(6).Caption = "X " & AdoSubj.Recordset(8).Value & " % "AdoGrade.RecordSource = "select * from tblgrade1 where idno = '" & t1.Text & "' and SubjNo = '" & t5.Text & "'"AdoGrade.RefreshIf AdoGrade.Recordset.RecordCount = 1 Then t7.Text = AdoGrade.Recordset(4).Value t8.Text = AdoGrade.Recordset(5).Value t9.Text = AdoGrade.Recordset(6).Value t10.Text = AdoGrade.Recordset(7).Value t11.Text = AdoGrade.Recordset(8).Value t12.Text = AdoGrade.Recordset(9).Value t13.Text = AdoGrade.Recordset(10).Value t14.Text = AdoGrade.Recordset(11).Value AdoGrade.Recordset.RequeryElse t7.Text = "" t8.Text = "" t9.Text = "" t10.Text = "" t11.Text = "" t12.Text = "" t13.Text = "" t14.Text = "" AdoGrade.Recordset.AddNew Me.Frame3.Enabled = True Me.cmdsave.Enabled = True Me.cmdCancel.Enabled = TrueEnd IfEnd Sub

Private Sub t7_Change()On Error Resume NextDim dig$, i, digi$, digits$If t7.Text <> "" Then dig$ = Mid(t7.Text, Len(t7.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t7.Text) - 1 digi$ = Mid(t7.Text, i, 1)

Page 56

Page 64: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

digits$ = digits$ & digi$ Next i t7.Text = digits$ t7.SelStart = Len(t7.Text) End IfEnd Ifl(0).Caption = "X " & AdoSubj.Recordset(2).Value & " % = " & Val(t7.Text) * (Val(AdoSubj.Recordset(2).Value) / 100)compEnd Sub

Private Sub t8_Change()On Error Resume NextDim dig$, i, digi$, digits$If t8.Text <> "" Then dig$ = Mid(t8.Text, Len(t8.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t8.Text) - 1 digi$ = Mid(t8.Text, i, 1) digits$ = digits$ & digi$ Next i t8.Text = digits$ t8.SelStart = Len(t8.Text) End IfEnd Ifl(1).Caption = "X " & AdoSubj.Recordset(3).Value & " % = " & Val(t8.Text) * (Val(AdoSubj.Recordset(3).Value) / 100)compEnd Sub

Private Sub t9_Change()On Error Resume NextDim dig$, i, digi$, digits$If t9.Text <> "" Then dig$ = Mid(t9.Text, Len(t9.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t9.Text) - 1 digi$ = Mid(t9.Text, i, 1) digits$ = digits$ & digi$ Next i t9.Text = digits$ t9.SelStart = Len(t9.Text) End IfEnd Ifl(2).Caption = "X " & AdoSubj.Recordset(4).Value & " % = " & Val(t9.Text) * (Val(AdoSubj.Recordset(4).Value) / 100)compEnd SubPrivate Sub t10_Change()On Error Resume Next

Page 57

Page 65: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Dim dig$, i, digi$, digits$If t10.Text <> "" Then dig$ = Mid(t10.Text, Len(t10.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t10.Text) - 1 digi$ = Mid(t10.Text, i, 1) digits$ = digits$ & digi$ Next i t10.Text = digits$ t10.SelStart = Len(t10.Text) End IfEnd Ifl(3).Caption = "X " & AdoSubj.Recordset(5).Value & " % = " & Val(t10.Text) * (Val(AdoSubj.Recordset(5).Value) / 100)compEnd SubPrivate Sub t11_Change()On Error Resume NextDim dig$, i, digi$, digits$If t11.Text <> "" Then dig$ = Mid(t11.Text, Len(t11.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t11.Text) - 1 digi$ = Mid(t11.Text, i, 1) digits$ = digits$ & digi$ Next i t11.Text = digits$ t11.SelStart = Len(t11.Text) End IfEnd Ifl(4).Caption = "X " & AdoSubj.Recordset(6).Value & " % = " & Val(t11.Text) * (Val(AdoSubj.Recordset(6).Value) / 100)compEnd SubPrivate Sub t12_Change()On Error Resume NextDim dig$, i, digi$, digits$If t12.Text <> "" Then dig$ = Mid(t12.Text, Len(t12.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t12.Text) - 1 digi$ = Mid(t12.Text, i, 1) digits$ = digits$ & digi$ Next i t12.Text = digits$ t12.SelStart = Len(t12.Text) End IfEnd Ifl(5).Caption = "X " & AdoSubj.Recordset(7).Value & " % = " & Val(t12.Text) * (Val(AdoSubj.Recordset(7).Value) / 100)

Page 58

Page 66: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

compEnd SubPrivate Sub t13_Change()On Error Resume NextDim dig$, i, digi$, digits$If t13.Text <> "" Then dig$ = Mid(t13.Text, Len(t13.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t13.Text) - 1 digi$ = Mid(t13.Text, i, 1) digits$ = digits$ & digi$ Next i t13.Text = digits$ t13.SelStart = Len(t13.Text) End IfEnd Ifl(6).Caption = "X " & AdoSubj.Recordset(7).Value & " % = " & Val(t13.Text) * (Val(AdoSubj.Recordset(8).Value) / 100)compEnd Sub

Function comp()t14.Text = Val(t7.Text) * (Val(AdoSubj.Recordset(2).Value) / 100) + _Val(t8.Text) * (Val(AdoSubj.Recordset(3).Value) / 100) + _Val(t9.Text) * (Val(AdoSubj.Recordset(4).Value) / 100) + _Val(t10.Text) * (Val(AdoSubj.Recordset(5).Value) / 100) + _Val(t11.Text) * (Val(AdoSubj.Recordset(6).Value) / 100) + _Val(t12.Text) * (Val(AdoSubj.Recordset(7).Value) / 100) + _Val(t13.Text) * (Val(AdoSubj.Recordset(8).Value) / 100)End Function

Function ENA()Frame1.Enabled = TrueFrame2.Enabled = TrueFrame3.Enabled = TruecmdAdd.Enabled = FalsecmdEdit.Enabled = FalsecmdDel.Enabled = Falsecmdsave.Enabled = TruecmdCancel.Enabled = TruecmdClose.Enabled = FalseEnd FunctionFunction dis()Frame1.Enabled = FalseFrame2.Enabled = FalseFrame3.Enabled = FalsecmdAdd.Enabled = TruecmdEdit.Enabled = True

Page 59

Page 67: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

cmdDel.Enabled = Truecmdsave.Enabled = FalsecmdCancel.Enabled = FalsecmdClose.Enabled = TrueEnd FunctionPrivate Sub t9_KeyPress(KeyAscii As Integer)Dim str As Stringstr = "0123456789"If KeyAscii > 26 ThenIf InStr(str, Chr(KeyAscii)) = 0 ThenKeyAscii = 0End IfEnd IfEnd Sub

Second GradingPrivate Sub cmdAdd_Click()ENAEnd Sub

Private Sub cmdCancel_Click()If MsgBox("Are You Sure You Want to Cancel?", vbQuestion + vbYesNo, "Cancel") = vbYes ThenAdoGrade.Recordset.CancelBatchAdoGrade.RefreshUnload Mefrmgrade.ShowEnd IfEnd Sub

Private Sub cmdClose_Click()If MsgBox("Are You Sure You Want to Close?", vbQuestion + vbYesNo, "CLose") = vbYes Then Unload MeEnd IfEnd Sub

Private Sub cmdsave_Click()On Error GoTo bjAdoGrade.Recordset(0).Value = t1.TextAdoGrade.Recordset(1).Value = t2.Text & ", " & t3.Text & " " & t4.TextAdoGrade.Recordset(2).Value = t5.TextAdoGrade.Recordset(3).Value = t6.TextAdoGrade.Recordset(12).Value = t7.TextAdoGrade.Recordset(13).Value = t8.TextAdoGrade.Recordset(14).Value = t9.TextAdoGrade.Recordset(15).Value = t10.TextAdoGrade.Recordset(16).Value = t11.TextAdoGrade.Recordset(17).Value = t12.Text

Page 60

Page 68: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

AdoGrade.Recordset(18).Value = t13.TextAdoGrade.Recordset(19).Value = t14.Text

If Me.t7.Text = "" Or Me.t8.Text = "" Or Me.t9.Text = "" Or Me.t10.Text = "" Or Me.t11.Text = "" Or Me.t12.Text = "" Or Me.t13.Text = "" Or Me.t14.Text = "" ThenMsgBox "All textboxes are required to fill-up.", vbInformation, "LNHS Computerized Grading System"ElseIf MsgBox("Waiting for your confirmation to Save.", vbQuestion + vbYesNo, "Save") = vbYes ThenAdoGrade.Recordset.UpdateAdoGrade.RefreshUnload Mefrmgrade.ShowEnd IfEnd IfExit Subbj:End Sub

Private Sub cmdSearch_Click()frmSearch.ShowfrmSearch.Label1 = 2End Sub

Private Sub cmdsearch2_Click()frmSearch2.ShowfrmSearch2.Label1 = 2End Sub

Private Sub Form_Load()AdoStud.RecordSource = "select * from tblStudENt where Studentno ='" & t1.Text & "' "AdoStud.RefreshAdoSubj.RecordSource = "select * from tblSubj where Subjno='" & t5.Text & "' "AdoSubj.RefreshMe.Top = 2000Me.Left = 5000End Sub

Private Sub Option1_Click()t5.Text = ""Frame6.Enabled = TrueEnd Sub

Private Sub Option2_Click()t5.Text = ""Frame6.Enabled = TrueEnd Sub

Page 61

Page 69: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Private Sub t1_Change()AdoStud.RecordSource = "select * from tblStudENt where Studentno ='" & t1.Text & "' "AdoStud.RefreshEnd Sub

Private Sub t5_Change()On Error Resume NextAdoSubj.RecordSource = "select * from tblSubj where SubjNo='" & t5.Text & "' "AdoSubj.Refresh

l(0).Caption = "X " & AdoSubj.Recordset(2).Value & " % "l(1).Caption = "X " & AdoSubj.Recordset(3).Value & " % "l(2).Caption = "X " & AdoSubj.Recordset(4).Value & " % "l(3).Caption = "X " & AdoSubj.Recordset(5).Value & " % "l(4).Caption = "X " & AdoSubj.Recordset(6).Value & " % "l(5).Caption = "X " & AdoSubj.Recordset(7).Value & " % "l(6).Caption = "X " & AdoSubj.Recordset(8).Value & " % "

AdoGrade.RecordSource = "select * from tblgrade1 where idno = '" & t1.Text & "' and SubjNo = '" & t5.Text & "'"AdoGrade.RefreshIf AdoGrade.Recordset.RecordCount = 1 Then t7.Text = AdoGrade.Recordset(12).Value t8.Text = AdoGrade.Recordset(13).Value t9.Text = AdoGrade.Recordset(14).Value t10.Text = AdoGrade.Recordset(15).Value t11.Text = AdoGrade.Recordset(16).Value t12.Text = AdoGrade.Recordset(17).Value t13.Text = AdoGrade.Recordset(18).Value t14.Text = AdoGrade.Recordset(19).Value AdoGrade.Recordset.RequeryElse t7.Text = "" t8.Text = "" t9.Text = "" t10.Text = "" t11.Text = "" t12.Text = "" t13.Text = "" t14.Text = "" AdoGrade.Recordset.AddNew Me.Frame3.Enabled = True Me.cmdsave.Enabled = True Me.cmdCancel.Enabled = TrueEnd IfEnd Sub

Private Sub t7_Change()

Page 62

Page 70: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

On Error Resume NextDim dig$, i, digi$, digits$If t7.Text <> "" Then dig$ = Mid(t7.Text, Len(t7.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t7.Text) - 1 digi$ = Mid(t7.Text, i, 1) digits$ = digits$ & digi$ Next i t7.Text = digits$ t7.SelStart = Len(t7.Text) End IfEnd Ifl(0).Caption = "X " & AdoSubj.Recordset(2).Value & " % = " & Val(t7.Text) * (Val(AdoSubj.Recordset(2).Value) / 100)compEnd Sub

Private Sub t8_Change()On Error Resume NextDim dig$, i, digi$, digits$If t8.Text <> "" Then dig$ = Mid(t8.Text, Len(t8.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t8.Text) - 1 digi$ = Mid(t8.Text, i, 1) digits$ = digits$ & digi$ Next i t8.Text = digits$ t8.SelStart = Len(t8.Text) End IfEnd Ifl(1).Caption = "X " & AdoSubj.Recordset(3).Value & " % = " & Val(t8.Text) * (Val(AdoSubj.Recordset(3).Value) / 100)compEnd Sub

Private Sub t9_Change()On Error Resume NextDim dig$, i, digi$, digits$If t9.Text <> "" Then dig$ = Mid(t9.Text, Len(t9.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t9.Text) - 1 digi$ = Mid(t9.Text, i, 1) digits$ = digits$ & digi$ Next i t9.Text = digits$ t9.SelStart = Len(t9.Text)

Page 63

Page 71: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

End IfEnd Ifl(2).Caption = "X " & AdoSubj.Recordset(4).Value & " % = " & Val(t9.Text) * (Val(AdoSubj.Recordset(4).Value) / 100)compEnd SubPrivate Sub t10_Change()On Error Resume NextDim dig$, i, digi$, digits$If t10.Text <> "" Then dig$ = Mid(t10.Text, Len(t10.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t10.Text) - 1 digi$ = Mid(t10.Text, i, 1) digits$ = digits$ & digi$ Next i t10.Text = digits$ t10.SelStart = Len(t10.Text) End IfEnd Ifl(3).Caption = "X " & AdoSubj.Recordset(5).Value & " % = " & Val(t10.Text) * (Val(AdoSubj.Recordset(5).Value) / 100)compEnd SubPrivate Sub t11_Change()On Error Resume NextDim dig$, i, digi$, digits$If t11.Text <> "" Then dig$ = Mid(t11.Text, Len(t11.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t11.Text) - 1 digi$ = Mid(t11.Text, i, 1) digits$ = digits$ & digi$ Next i t11.Text = digits$ t11.SelStart = Len(t11.Text) End IfEnd Ifl(4).Caption = "X " & AdoSubj.Recordset(6).Value & " % = " & Val(t11.Text) * (Val(AdoSubj.Recordset(6).Value) / 100)compEnd SubPrivate Sub t12_Change()On Error Resume NextDim dig$, i, digi$, digits$If t12.Text <> "" Then dig$ = Mid(t12.Text, Len(t12.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t12.Text) - 1 digi$ = Mid(t12.Text, i, 1)

Page 64

Page 72: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

digits$ = digits$ & digi$ Next i t12.Text = digits$ t12.SelStart = Len(t12.Text) End IfEnd Ifl(5).Caption = "X " & AdoSubj.Recordset(7).Value & " % = " & Val(t12.Text) * (Val(AdoSubj.Recordset(7).Value) / 100)compEnd SubPrivate Sub t13_Change()On Error Resume NextDim dig$, i, digi$, digits$If t13.Text <> "" Then dig$ = Mid(t13.Text, Len(t13.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t13.Text) - 1 digi$ = Mid(t13.Text, i, 1) digits$ = digits$ & digi$ Next i t13.Text = digits$ t13.SelStart = Len(t13.Text) End IfEnd Ifl(6).Caption = "X " & AdoSubj.Recordset(7).Value & " % = " & Val(t13.Text) * (Val(AdoSubj.Recordset(8).Value) / 100)compEnd Sub

Function comp()t14.Text = Val(t7.Text) * (Val(AdoSubj.Recordset(2).Value) / 100) + _Val(t8.Text) * (Val(AdoSubj.Recordset(3).Value) / 100) + _Val(t9.Text) * (Val(AdoSubj.Recordset(4).Value) / 100) + _Val(t10.Text) * (Val(AdoSubj.Recordset(5).Value) / 100) + _Val(t11.Text) * (Val(AdoSubj.Recordset(6).Value) / 100) + _Val(t12.Text) * (Val(AdoSubj.Recordset(7).Value) / 100) + _Val(t13.Text) * (Val(AdoSubj.Recordset(8).Value) / 100)End FunctionFunction ENA()Frame1.Enabled = TrueFrame2.Enabled = TrueFrame3.Enabled = TruecmdAdd.Enabled = FalsecmdEdit.Enabled = FalsecmdDel.Enabled = Falsecmdsave.Enabled = TruecmdCancel.Enabled = TruecmdClose.Enabled = FalseEnd Function

Page 65

Page 73: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Function dis()Frame1.Enabled = FalseFrame2.Enabled = FalseFrame3.Enabled = FalsecmdAdd.Enabled = TruecmdEdit.Enabled = TruecmdDel.Enabled = Truecmdsave.Enabled = FalsecmdCancel.Enabled = FalsecmdClose.Enabled = TrueEnd Function

Third GradingPrivate Sub cmdAdd_Click()ENAEnd Sub

Private Sub cmd3_Click()Me.cmd1.Enabled = FalseMe.cmd2.Enabled = FalseMe.cmd4.Enabled = FalseMe.Enabled = TrueEnd Sub

Private Sub cmdCancel_Click()If MsgBox("Are You Sure You Want to Cancel?", vbQuestion + vbYesNo, "Cancel") = vbYes ThenAdoGrade.Recordset.CancelBatchAdoGrade.RefreshUnload Mefrmgrade.ShowEnd IfEnd Sub

Private Sub cmdClose_Click()If MsgBox("Are You Sure You Want to Close?", vbQuestion + vbYesNo, "CLose") = vbYes Then Unload MeEnd IfEnd Sub

Private Sub cmdsave_Click()On Error GoTo bjAdoGrade.Recordset(0).Value = t1.TextAdoGrade.Recordset(1).Value = t2.Text & ", " & t3.Text & " " & t4.TextAdoGrade.Recordset(2).Value = t5.TextAdoGrade.Recordset(3).Value = t6.TextAdoGrade.Recordset(20).Value = t7.Text

Page 66

Page 74: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

AdoGrade.Recordset(21).Value = t8.TextAdoGrade.Recordset(22).Value = t9.TextAdoGrade.Recordset(23).Value = t10.TextAdoGrade.Recordset(24).Value = t11.TextAdoGrade.Recordset(25).Value = t12.TextAdoGrade.Recordset(26).Value = t13.TextAdoGrade.Recordset(27).Value = t14.Text

If Me.t7.Text = "" Or Me.t8.Text = "" Or Me.t9.Text = "" Or Me.t10.Text = "" Or Me.t11.Text = "" Or Me.t12.Text = "" Or Me.t13.Text = "" Or Me.t14.Text = "" ThenMsgBox "All textboxes are required to fill-up.", vbInformation, "LNHS Computerized Grading System"ElseIf MsgBox("Waiting for your confirmation to Save.", vbQuestion + vbYesNo, "Save") = vbYes ThenAdoGrade.Recordset.UpdateAdoGrade.RefreshUnload Mefrmgrade.ShowEnd IfEnd IfExit Subbj:End Sub

Private Sub cmdSearch_Click()frmSearch.ShowfrmSearch.Label1 = 3End Sub

Private Sub cmdsearch2_Click()frmSearch2.ShowfrmSearch2.Label1 = 3End Sub

Private Sub Form_Load()AdoStud.RecordSource = "select * from tblStudENt where Studentno ='" & t1.Text & "' "AdoStud.RefreshAdoSubj.RecordSource = "select * from tblSubj where SubjNo='" & t5.Text & "' "AdoSubj.RefreshMe.Top = 2000Me.Left = 5000End Sub

Private Sub t1_Change()AdoStud.RecordSource = "select * from tblStudENt where Studentno ='" & t1.Text & "' "AdoStud.RefreshEnd Sub

Page 67

Page 75: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Private Sub t5_Change()On Error Resume NextAdoSubj.RecordSource = "select * from tblSubj where SubjNo='" & t5.Text & "' "AdoSubj.Refreshl(0).Caption = "X " & AdoSubj.Recordset(2).Value & " % "l(1).Caption = "X " & AdoSubj.Recordset(3).Value & " % "l(2).Caption = "X " & AdoSubj.Recordset(4).Value & " % "l(3).Caption = "X " & AdoSubj.Recordset(5).Value & " % "l(4).Caption = "X " & AdoSubj.Recordset(6).Value & " % "l(5).Caption = "X " & AdoSubj.Recordset(7).Value & " % "l(6).Caption = "X " & AdoSubj.Recordset(8).Value & " % "AdoGrade.RecordSource = "select * from tblgrade1 where idno = '" & t1.Text & "' and SubjNo = '" & t5.Text & "'"AdoGrade.RefreshIf AdoGrade.Recordset.RecordCount = 1 Then t7.Text = AdoGrade.Recordset(20).Value t8.Text = AdoGrade.Recordset(21).Value t9.Text = AdoGrade.Recordset(22).Value t10.Text = AdoGrade.Recordset(23).Value t11.Text = AdoGrade.Recordset(24).Value t12.Text = AdoGrade.Recordset(25).Value t13.Text = AdoGrade.Recordset(26).Value t14.Text = AdoGrade.Recordset(27).Value AdoGrade.Recordset.RequeryElse t7.Text = "" t8.Text = "" t9.Text = "" t10.Text = "" t11.Text = "" t12.Text = "" t13.Text = "" t14.Text = "" AdoGrade.Recordset.AddNew Me.Frame3.Enabled = True Me.cmdsave.Enabled = True Me.cmdCancel.Enabled = TrueEnd IfEnd Sub

Private Sub t7_Change()On Error Resume NextDim dig$, i, digi$, digits$If t7.Text <> "" Then dig$ = Mid(t7.Text, Len(t7.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t7.Text) - 1 digi$ = Mid(t7.Text, i, 1)

Page 68

Page 76: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

digits$ = digits$ & digi$ Next i t7.Text = digits$ t7.SelStart = Len(t7.Text) End IfEnd Ifl(0).Caption = "X " & AdoSubj.Recordset(2).Value & " % = " & Val(t7.Text) * (Val(AdoSubj.Recordset(2).Value) / 100)compEnd Sub

Private Sub t8_Change()On Error Resume NextDim dig$, i, digi$, digits$If t8.Text <> "" Then dig$ = Mid(t8.Text, Len(t8.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t8.Text) - 1 digi$ = Mid(t8.Text, i, 1) digits$ = digits$ & digi$ Next i t8.Text = digits$ t8.SelStart = Len(t8.Text) End IfEnd Ifl(1).Caption = "X " & AdoSubj.Recordset(3).Value & " % = " & Val(t8.Text) * (Val(AdoSubj.Recordset(3).Value) / 100)compEnd Sub

Private Sub t9_Change()On Error Resume NextDim dig$, i, digi$, digits$If t9.Text <> "" Then dig$ = Mid(t9.Text, Len(t9.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t9.Text) - 1 digi$ = Mid(t9.Text, i, 1) digits$ = digits$ & digi$ Next i t9.Text = digits$ t9.SelStart = Len(t9.Text) End IfEnd Ifl(2).Caption = "X " & AdoSubj.Recordset(4).Value & " % = " & Val(t9.Text) * (Val(AdoSubj.Recordset(4).Value) / 100)compEnd SubPrivate Sub t10_Change()On Error Resume Next

Page 69

Page 77: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Dim dig$, i, digi$, digits$If t10.Text <> "" Then dig$ = Mid(t10.Text, Len(t10.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t10.Text) - 1 digi$ = Mid(t10.Text, i, 1) digits$ = digits$ & digi$ Next i t10.Text = digits$ t10.SelStart = Len(t10.Text) End IfEnd Ifl(3).Caption = "X " & AdoSubj.Recordset(5).Value & " % = " & Val(t10.Text) * (Val(AdoSubj.Recordset(5).Value) / 100)compEnd SubPrivate Sub t11_Change()On Error Resume NextDim dig$, i, digi$, digits$If t11.Text <> "" Then dig$ = Mid(t11.Text, Len(t11.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t11.Text) - 1 digi$ = Mid(t11.Text, i, 1) digits$ = digits$ & digi$ Next i t11.Text = digits$ t11.SelStart = Len(t11.Text) End IfEnd Ifl(4).Caption = "X " & AdoSubj.Recordset(6).Value & " % = " & Val(t11.Text) * (Val(AdoSubj.Recordset(6).Value) / 100)compEnd SubPrivate Sub t12_Change()On Error Resume NextDim dig$, i, digi$, digits$If t12.Text <> "" Then dig$ = Mid(t12.Text, Len(t12.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t12.Text) - 1 digi$ = Mid(t12.Text, i, 1) digits$ = digits$ & digi$ Next i t12.Text = digits$ t12.SelStart = Len(t12.Text) End IfEnd Ifl(5).Caption = "X " & AdoSubj.Recordset(7).Value & " % = " & Val(t12.Text) * (Val(AdoSubj.Recordset(7).Value) / 100)

Page 70

Page 78: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

compEnd SubPrivate Sub t13_Change()On Error Resume NextDim dig$, i, digi$, digits$If t13.Text <> "" Then dig$ = Mid(t13.Text, Len(t13.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t13.Text) - 1 digi$ = Mid(t13.Text, i, 1) digits$ = digits$ & digi$ Next i t13.Text = digits$ t13.SelStart = Len(t13.Text) End IfEnd Ifl(6).Caption = "X " & AdoSubj.Recordset(7).Value & " % = " & Val(t13.Text) * (Val(AdoSubj.Recordset(8).Value) / 100)compEnd Sub

Function comp()t14.Text = Val(t7.Text) * (Val(AdoSubj.Recordset(2).Value) / 100) + _Val(t8.Text) * (Val(AdoSubj.Recordset(3).Value) / 100) + _Val(t9.Text) * (Val(AdoSubj.Recordset(4).Value) / 100) + _Val(t10.Text) * (Val(AdoSubj.Recordset(5).Value) / 100) + _Val(t11.Text) * (Val(AdoSubj.Recordset(6).Value) / 100) + _Val(t12.Text) * (Val(AdoSubj.Recordset(7).Value) / 100) + _Val(t13.Text) * (Val(AdoSubj.Recordset(8).Value) / 100)End Function

Function ENA()Frame1.Enabled = TrueFrame2.Enabled = TrueFrame3.Enabled = TruecmdAdd.Enabled = FalsecmdEdit.Enabled = FalsecmdDel.Enabled = Falsecmdsave.Enabled = TruecmdCancel.Enabled = TruecmdClose.Enabled = FalseEnd Function

Function dis()Frame1.Enabled = FalseFrame2.Enabled = FalseFrame3.Enabled = FalsecmdAdd.Enabled = True

Page 71

Page 79: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

cmdEdit.Enabled = TruecmdDel.Enabled = Truecmdsave.Enabled = FalsecmdCancel.Enabled = FalsecmdClose.Enabled = TrueEnd Function

Fourth GradingPrivate Sub cmdAdd_Click()ENAEnd Sub

Private Sub cmd1_Click()frmgrade.Showcmd1.Enabled = Truecmd2.Enabled = Falsecmd3.Enabled = Falsecmd4.Enabled = FalseEnd Sub

Private Sub cmd2_Click()frmgrade2.Showcmd1.Enabled = Falsecmd2.Enabled = Truecmd3.Enabled = Falsecmd4.Enabled = FalseEnd Sub

Private Sub cmdAG_Click()frmCompute.ShowEnd Sub

Private Sub cmdCancel_Click()If MsgBox("Are You Sure You Want to Cancel?", vbQuestion + vbYesNo, "Cancel") = vbYes ThenAdoGrade.Recordset.CancelBatchAdoGrade.RefreshUnload Mefrmgrade.ShowEnd IfEnd Sub

Private Sub cmdClose_Click()If MsgBox("Are You Sure You Want to Close?", vbQuestion + vbYesNo, "CLose") = vbYes Then Unload MeEnd IfEnd Sub

Page 72

Page 80: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Private Sub cmdFG_Click()frmComputeFG.ShowEnd Sub

Private Sub cmdsave_Click()On Error GoTo bjAdoGrade.Recordset(0).Value = t1.TextAdoGrade.Recordset(1).Value = t2.Text & ", " & t3.Text & " " & t4.TextAdoGrade.Recordset(2).Value = t5.TextAdoGrade.Recordset(3).Value = t6.TextAdoGrade.Recordset(28).Value = t7.TextAdoGrade.Recordset(29).Value = t8.TextAdoGrade.Recordset(30).Value = t9.TextAdoGrade.Recordset(31).Value = t10.TextAdoGrade.Recordset(32).Value = t11.TextAdoGrade.Recordset(33).Value = t12.TextAdoGrade.Recordset(34).Value = t13.TextAdoGrade.Recordset(35).Value = t14.TextAdoGrade.Recordset(36).Value = ttt12.TextAdoGrade.Recordset(37).Value = Text1.TextAdoGrade.Recordset(38).Value = Text2.TextIf Me.t7.Text = "" Or Me.t8.Text = "" Or Me.t9.Text = "" Or Me.t10.Text = "" Or Me.t11.Text = "" Or Me.t12.Text = "" Or Me.t13.Text = "" Or Me.t14.Text = "" ThenMsgBox "All textboxes are required to fill-up.", vbInformation, "LNHS Computerized Grading System"ElseIf MsgBox("Waiting for your confirmation to Save.", vbQuestion + vbYesNo, "Save") = vbYes ThenAdoGrade.Recordset.UpdateAdoGrade.RefreshUnload Mefrmgrade.ShowEnd IfEnd IfExit Subbj:End Sub

Private Sub cmdSearch_Click()frmSearch.ShowfrmSearch.Label1 = 4End Sub

Private Sub cmdsearch2_Click()frmSearch2.ShowfrmSearch2.Label1 = 4End Sub

Private Sub Form_Load()

Page 73

Page 81: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

AdoStud.RecordSource = "select * from tblStudENt where Studentno ='" & t1.Text & "' "AdoStud.RefreshAdoSubj.RecordSource = "select * from tblSubj where SubjNo='" & t5.Text & "' "AdoSubj.RefreshEnd Sub

Private Sub t1_Change()AdoStud.RecordSource = "select * from tblStudENt where Studentno ='" & t1.Text & "' "AdoStud.RefreshEnd Sub

Private Sub t5_Change()On Error Resume NextAdoSubj.RecordSource = "select * from tblSubj where SubjNo='" & t5.Text & "' "AdoSubj.Refresh

l(0).Caption = "X " & AdoSubj.Recordset(2).Value & " % "l(1).Caption = "X " & AdoSubj.Recordset(3).Value & " % "l(2).Caption = "X " & AdoSubj.Recordset(4).Value & " % "l(3).Caption = "X " & AdoSubj.Recordset(5).Value & " % "l(4).Caption = "X " & AdoSubj.Recordset(6).Value & " % "l(5).Caption = "X " & AdoSubj.Recordset(7).Value & " % "l(6).Caption = "X " & AdoSubj.Recordset(8).Value & " % "

AdoGrade.RecordSource = "select * from tblgrade1 where idno = '" & t1.Text & "' and SubjNo = '" & t5.Text & "'"AdoGrade.RefreshIf AdoGrade.Recordset.RecordCount = 1 Then t7.Text = AdoGrade.Recordset(28).Value t8.Text = AdoGrade.Recordset(29).Value t9.Text = AdoGrade.Recordset(30).Value t10.Text = AdoGrade.Recordset(31).Value t11.Text = AdoGrade.Recordset(32).Value t12.Text = AdoGrade.Recordset(33).Value t13.Text = AdoGrade.Recordset(34).Value t14.Text = AdoGrade.Recordset(35).Value ttt7.Text = AdoGrade.Recordset(11).Value ttt8.Text = AdoGrade.Recordset(19).Value ttt9.Text = AdoGrade.Recordset(27).Value ttt10.Text = AdoGrade.Recordset(35).Value ttt11.Text = AdoGrade.Recordset(36).Value AdoGrade.Recordset.RequeryElse t7.Text = "" t8.Text = "" t9.Text = ""

Page 74

Page 82: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

t10.Text = "" t11.Text = "" t12.Text = "" t13.Text = "" t14.Text = "" AdoGrade.Recordset.AddNew Me.Frame3.Enabled = True Me.cmdsave.Enabled = True Me.cmdCancel.Enabled = TrueEnd IfEnd Sub

Private Sub t7_Change()On Error Resume NextDim dig$, i, digi$, digits$If t7.Text <> "" Then dig$ = Mid(t7.Text, Len(t7.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t7.Text) - 1 digi$ = Mid(t7.Text, i, 1) digits$ = digits$ & digi$ Next i t7.Text = digits$ t7.SelStart = Len(t7.Text) End IfEnd Ifl(0).Caption = "X " & AdoSubj.Recordset(2).Value & " % = " & Val(t7.Text) * (Val(AdoSubj.Recordset(2).Value) / 100)compENAdisEnd Sub

Private Sub t8_Change()On Error Resume NextDim dig$, i, digi$, digits$If t8.Text <> "" Then dig$ = Mid(t8.Text, Len(t8.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t8.Text) - 1 digi$ = Mid(t8.Text, i, 1) digits$ = digits$ & digi$ Next i t8.Text = digits$ t8.SelStart = Len(t8.Text) End IfEnd Ifl(1).Caption = "X " & AdoSubj.Recordset(3).Value & " % = " & Val(t8.Text) * (Val(AdoSubj.Recordset(3).Value) / 100)

Page 75

Page 83: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

compENAdisEnd Sub

Private Sub t9_Change()On Error Resume NextDim dig$, i, digi$, digits$If t9.Text <> "" Then dig$ = Mid(t9.Text, Len(t9.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t9.Text) - 1 digi$ = Mid(t9.Text, i, 1) digits$ = digits$ & digi$ Next i t9.Text = digits$ t9.SelStart = Len(t9.Text) End IfEnd Ifl(2).Caption = "X " & AdoSubj.Recordset(4).Value & " % = " & Val(t9.Text) * (Val(AdoSubj.Recordset(4).Value) / 100)compENAdisEnd SubPrivate Sub t10_Change()On Error Resume NextDim dig$, i, digi$, digits$If t10.Text <> "" Then dig$ = Mid(t10.Text, Len(t10.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t10.Text) - 1 digi$ = Mid(t10.Text, i, 1) digits$ = digits$ & digi$ Next i t10.Text = digits$ t10.SelStart = Len(t10.Text) End IfEnd Ifl(3).Caption = "X " & AdoSubj.Recordset(5).Value & " % = " & Val(t10.Text) * (Val(AdoSubj.Recordset(5).Value) / 100)compENAdisEnd SubPrivate Sub t11_Change()On Error Resume NextDim dig$, i, digi$, digits$If t11.Text <> "" Then

Page 76

Page 84: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

dig$ = Mid(t11.Text, Len(t11.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t11.Text) - 1 digi$ = Mid(t11.Text, i, 1) digits$ = digits$ & digi$ Next i t11.Text = digits$ t11.SelStart = Len(t11.Text) End IfEnd Ifl(4).Caption = "X " & AdoSubj.Recordset(6).Value & " % = " & Val(t11.Text) * (Val(AdoSubj.Recordset(6).Value) / 100)compENAdisEnd SubPrivate Sub t12_Change()On Error Resume NextDim dig$, i, digi$, digits$If t12.Text <> "" Then dig$ = Mid(t12.Text, Len(t12.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t12.Text) - 1 digi$ = Mid(t12.Text, i, 1) digits$ = digits$ & digi$ Next i t12.Text = digits$ t12.SelStart = Len(t12.Text) End IfEnd Ifl(5).Caption = "X " & AdoSubj.Recordset(7).Value & " % = " & Val(t12.Text) * (Val(AdoSubj.Recordset(7).Value) / 100)compENAdisEnd SubPrivate Sub t13_Change()On Error Resume NextDim dig$, i, digi$, digits$If t13.Text <> "" Then dig$ = Mid(t13.Text, Len(t13.Text), 1) If Asc(dig$) < 46 Or Asc(dig$) > 57 Then For i = 1 To Len(t13.Text) - 1 digi$ = Mid(t13.Text, i, 1) digits$ = digits$ & digi$ Next i t13.Text = digits$ t13.SelStart = Len(t13.Text) End If

Page 77

Page 85: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

End Ifl(6).Caption = "X " & AdoSubj.Recordset(7).Value & " % = " & Val(t13.Text) * (Val(AdoSubj.Recordset(8).Value) / 100)compENAdisEnd Sub

Function comp()t14.Text = Val(t7.Text) * (Val(AdoSubj.Recordset(2).Value) / 100) + _Val(t8.Text) * (Val(AdoSubj.Recordset(3).Value) / 100) + _Val(t9.Text) * (Val(AdoSubj.Recordset(4).Value) / 100) + _Val(t10.Text) * (Val(AdoSubj.Recordset(5).Value) / 100) + _Val(t11.Text) * (Val(AdoSubj.Recordset(6).Value) / 100) + _Val(t12.Text) * (Val(AdoSubj.Recordset(7).Value) / 100) + _Val(t13.Text) * (Val(AdoSubj.Recordset(8).Value) / 100)End FunctionFunction ENA()ttt10.Text = Val(t7.Text) * (Val(AdoSubj.Recordset(2).Value) / 100) + _Val(t8.Text) * (Val(AdoSubj.Recordset(3).Value) / 100) + _Val(t9.Text) * (Val(AdoSubj.Recordset(4).Value) / 100) + _Val(t10.Text) * (Val(AdoSubj.Recordset(5).Value) / 100) + _Val(t11.Text) * (Val(AdoSubj.Recordset(6).Value) / 100) + _Val(t12.Text) * (Val(AdoSubj.Recordset(7).Value) / 100) + _Val(t13.Text) * (Val(AdoSubj.Recordset(8).Value) / 100)End Function

Function dis()ttt11_Clickttt12_ClickEnd Function

Private Sub ttt11_Click()ttt11.Text = Val(ttt7.Text) + Val(ttt8.Text) + Val(ttt9.Text) + Val(ttt10.Text)End Sub

Private Sub ttt12_Click()ttt12.Text = ttt11.Text / 4End Sub

SectionPrivate Sub cmdSearch_Click()Adodc1.RecordSource = "select * from tblStudent where Year_Level like '" & Combo1.Text & "' and StudentSec like '" & Text2.Text & "' "Adodc1.RefreshEnd Sub

Private Sub Command1_Click()

Page 78

Page 86: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

If Adodc1.Recordset.RecordCount = 0 ThenMsgBox "No Record", vbInformation, "LNHS Computerized Grading System"ElseWith de.rsStudent .Opende.rsCommand2_Grouping.Filter = "Year_level ='" & Combo1.Text & "' And StudentSec ='" & Text2.Text & "'" rptStudent.Show vbModal, frmMain .CloseEnd WithEnd IfUnload MeEnd Sub

Year LevelPrivate Sub cmdAdd_Click()If Adodc1.Recordset.RecordCount = 0 ThenrptCRecord1.Show vbModal, frmMainElseIf Option1.Value = True ThenWith de.rsCRecord .Open de.rsCommand3_Grouping.Filter = "SubjNo ='" & txtSearch.Text & "' And StudentSec='" & Text2.Text & "' And Yearlevel='" & Combo1.Text & "' " rptCRecord.Show vbModal, frmMain .CloseEnd WithElseIf Option2.Value = True ThenWith de.rsCRecord .Open de.rsCommand3_Grouping.Filter = "Subject ='" & txtSearch.Text & "' And StudentSec='" & Text2.Text & "' And Yearlevel='" & Combo1.Text & "' " rptCRecord.Show vbModal, frmMain .CloseEnd WithEnd IfEnd IfEnd IfUnload MeEnd Sub

Private Sub txtSearch_Change()If Option1.Value = True ThenAdodc1.RecordSource = "select * from tblGrade1 where Yearlevel like '" & Combo1.Text & "' and StudentSec like '" & Text2.Text & "' and SubjNo='" & txtSearch.Text & "'"Adodc1.RefreshcmdAdd.Enabled = True

Page 79

Page 87: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

ElseIf Option2.Value ThenAdodc1.RecordSource = "select * from tblGrade1 where Yearlevel like '" & Combo1.Text & "' and StudentSec like '" & Text2.Text & "' and Subject='" & txtSearch.Text & "'"Adodc1.RefreshcmdAdd.Enabled = TrueEnd IfEnd IfEnd Sub

RankingPrivate Sub cmdpreview_Click()If Adodc1.Recordset.RecordCount = 0 ThenMsgBox "No Records", vbInformation, "LNHS Computerized Grading System"ElseWith de.rsCRecord .Open de.rsCommand3_Grouping.Filter = "Subjno ='" & Text2.Text & "' And StudentSec='" & Text5.Text & "' And Yearlevel='" & Combo1.Text & "' " rptrank1.Show vbModal, frmMain .CloseEnd WithSet de = NothingUnload MeEnd IfEnd Sub

Private Sub cmdpreview1_Click()If Adodc1.Recordset.RecordCount = 0 ThenMsgBox "No Records", vbInformation, "LNHS Computerized Grading System"ElseWith de.rsCRecord .Open de.rsCommand3_Grouping.Filter = "Subjno ='" & Text1.Text & "' And StudentSec='" & Text6.Text & "' And Yearlevel='" & Combo2.Text & "' " rptrank2.Show vbModal, frmMain .CloseEnd WithSet de = NothingUnload MeEnd IfEnd SubPrivate Sub cmdpreview2_Click()If Adodc1.Recordset.RecordCount = 0 ThenMsgBox "No Records", vbInformation, "LNHS Computerized Grading System"ElseWith de.rsCRecord

Page 80

Page 88: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

.Open de.rsCommand3_Grouping.Filter = "Subjno ='" & Text3.Text & "' And StudentSec='" & Text7.Text & "' And Yearlevel='" & Combo3.Text & "' " rptrank3.Show vbModal, frmMain .CloseEnd WithSet de = NothingUnload MeEnd IfEnd Sub

Private Sub cmdpreview3_Click()If Adodc4.Recordset.RecordCount = 0 ThenMsgBox "No Records", vbInformation, "LNHS Computerized Grading System"ElseWith de.rsCRecord .Open de.rsCommand3_Grouping.Filter = "Subjno ='" & Text4.Text & "' And StudentSec='" & Text8.Text & "' And Yearlevel='" & Combo4.Text & "' " rptrank4.Show vbModal, frmMain .CloseEnd WithSet de = NothingUnload MeEnd IfEnd Sub

Private Sub cmdSearch_Click()Adodc1.RecordSource = "select distinct IDNo,Name,SubjNo,subject,PT1,PER1,Q1,B1,PRO1,A1,UT1,TOTAL1 from tblGrade1 where Yearlevel like '" & Combo1.Text & "' and Subjno like '" & Text2.Text & "' and StudentSec like '" & Text5.Text & "'"Adodc1.RefreshEnd Sub

Private Sub Command1_Click()Adodc1.RecordSource = "select distinct IDNo,Name,SubjNo,subject,PT1,PER1,Q1,B1,PRO1,A1,UT1,TOTAL1 from tblGrade1"End Sub

Private Sub cmdsearch1_Click()Adodc2.RecordSource = "select distinct IDNo,Name,SubjNo,subject,PT2,PER2,Q2,B2,PRO2,A2,UT2,TOTAL2 from tblGrade1 where Yearlevel like '" & Combo2.Text & "' and Subjno like '" & Text1.Text & "' and StudentSec like '" & Text6.Text & "'"Adodc2.RefreshEnd Sub

Private Sub cmdsearch2_Click()

Page 81

Page 89: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Adodc3.RecordSource = "select distinct IDNo,Name,SubjNo,subject,PT3,PER3,Q3,B3,PRO3,A3,UT3,TOTAL3 from tblGrade1 where Yearlevel like '" & Combo3.Text & "' and Subjno like '" & Text3.Text & "' and StudentSec like '" & Text7.Text & "' "Adodc3.RefreshEnd Sub

Private Sub cmdsearch3_Click()Adodc4.RecordSource = "select distinct IDNo,Name,SubjNo,subject,PT4,PER4,Q4,B4,PRO4,A4,UT4,TOTAL4 from tblGrade1 where Yearlevel like '" & Combo4.Text & "' and Subjno like '" & Text4.Text & "' and StudentSec like '" & Text8.Text & "' "Adodc4.RefreshEnd Sub

Class RecordPrivate Sub cmdAdd_Click()If Adodc1.Recordset.RecordCount = 0 ThenMsgBox "No Records", vbInformation, "LNHS Computerized Grading System"Elsede.rsSubject.Open "select * from tblsubj WHERE yearlevel ='" & Adodc1.Recordset(9) & "' "rptSubj.Title = UCase(Adodc1.Recordset(9).Value)rptSubj.Show vbModal, frmMainSet de = NothingUnload MeEnd IfEnd Sub

Private Sub cmdSearch_Click()Adodc1.RecordSource = "select * from tblsubj where yearlevel like '" & Combo1.Text & "%'"Adodc1.RefreshEnd Sub

Grading SheetPrivate Sub cmdAdd_Click()If Adodc1.Recordset.RecordCount = 0 ThenMsgBox "No Record Found", vbInformationElseIf Option1.Value = True ThenWith de.rsCRecord .Open de.rsCommand1_Grouping.Filter = "SubjNo ='" & txtSearch.Text & "' And Yearlevel='" & Combo1.Text & "' And StudentSec='" & Text2.Text & "' " rptGS.Show vbModal, frmMain .CloseEnd WithElseIf Option2.Value = True ThenWith de.rsCRecord

Page 82

Page 90: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

.Open de.rsCommand1_Grouping.Filter = "Subject ='" & txtSearch.Text & "' And Yearlevel='" & Combo1.Text & "' And StudentSec='" & Text2.Text & "' " rptGS.Show vbModal, frmMain .CloseEnd WithEnd IfEnd IfEnd IfUnload MeEnd Sub

Private Sub cmdSearch_Click()Adodc1.RecordSource = "select * from tblsubj where subject like '" & txtSearch.Text & "%'"Adodc1.RefreshEnd Sub

Private Sub txtSearch_Change()If Option1.Value = True ThenAdodc1.RecordSource = "select distinct tblgrade1.SubjNo,tblgrade1.Subject,tblgrade1.Yearlevel,tblgrade1.StudentSec from tblgrade1 where Yearlevel like '" & Combo1.Text & "' and StudentSec like '" & Text2.Text & "' and SubjNo='" & txtSearch.Text & "'"Adodc1.RefreshcmdAdd.Enabled = TrueElseIf Option2.Value ThenAdodc1.RecordSource = "select distinct tblgrade1.SubjNo,tblgrade1.Subject,tblgrade1.Yearlevel,tblgrade1.StudentSec from tblgrade1 where Subject like '" & txtSearch.Text & "' and StudentSec like '" & Text2.Text & "' and Yearlevel='" & Combo1.Text & "'"Adodc1.RefreshcmdAdd.Enabled = TrueEnd IfEnd IfEnd Sub

CHAPTER V

CONCLUSION AND RECOMMENDATION

Page 83

Page 91: Documentation 1 - Copy

Chapter V: Conclusion and Recommendation

INTERNATIONAL SCHOOL OF ASIA AND THE PACIFICAlimannao Hills, Peñablanca, Cagayan

Conclusion

The researchers concluded that the Computerized Grading System for

Libertad National High School at Abulug, Cagayan was developed according to

the system requirements gathered initially. The researchers concluded that the

Computerized Grading System should be implemented because it provides

more accurate records, efficient report and fast accessing of data in terms of

emergencies.

Recommendation

Based from all the observations, data gathering and analysis of the

present grading system of the Libertad National High School, the researchers

found out that most of the grading computations are done manually and

consumes a large amount of time. We therefore recommended the school to

implement a Computerized Grading System for them to be able to keep

accurate and efficient data records, lessen the workloads of the faculty staffs

and teachers on grade computations, and thus can save a lot of time.

Page 84