Documente Academic
Documente Profesional
Documente Cultură
Chapter 1
INTRODUCTION
The St. Columban’s School is the only private school in the town of Labrador,
Pangasinan. It was born in the hearts and minds of the early Columban fathers who
served in the parish of San Isidro, Labrador. The school was set up in response to the
continued pleas of parents, whose children graduating from the various elementary
schools in the locality had no access to a secondary school in Labrador. The parish priest,
Rev. Fr. Joseph Gallagher, Senior of St. Columban, was persuaded to provide one. The
parish school has come a long way since the opening day in 1954, when Fr. Gallagher,
who became the first director, welcomed thirty-four high school boys and girls in the
ground floor room of the old convent. In the subsequent years, additional classes were
opened. Fr. Eamonn Byrne, Fr. Gallagher’s assistant, became the director of the school
(1956-1957) when the latter went back to his home in Ireland. Thirty-four students
In time, the school’s standard of teaching became so well known locally that it
attracted many students in nearby towns like Sual, Bugallon and Lingayen. The coming
of the Columban Sisters in 1960 set the next stage of growth for St. Columban’s High
School. The first group included Sisters Mary Camillus Lilis, Elizabeth Kearns and Mary
Collete Coleman, with Mother Mary Bernard as the first Directress, and Sister Carmel
The years that followed saw the inevitable increase in the enrollment. Successive
communities of Columban sisters sought the help of the people of Labrador and other
friends, to provide the necessary additional accommodation. In April 1995, the Sisters of
St. Columban handed over the ownership of the school to Bishop Jesus A. Cabrera, head
of the Diocese of Alaminos. During the school year 1996-1997, St. Columban’s High
School began its Elementary and Preparatory Departments with 48 junior and senior
kindergarten pupils. The reason for the move was a request from parents who were
sending their children to private elementary schools in Lingayen and who wished to have
a Catholic elementary school set up in Labrador itself. With the drop in enrollment in the
high school, due to the setting up of a national high school nearby St. Columban’s
School, they had room to spare. Plans were set to increase the elementary grades each
year until the completion of the elementary department by SY 1999 – 2000. (2008
Today, St. Columban’s School is under the supervision and management of the
Sisters of St. Joseph of Cluny, with a board of trustees with the Rev. Bishop Marlo M.
Peralta as the director, Sister Anselm Alunkal as the acting directress and Mrs. Imelda
Segarra as the Principal, with 28 faculty members for both elementary and high school
departments.
The population of St. Columban is increasing yearly. They started from thirty-four
students and at present, there are 643 high school students, 196 elementary pupils, and 48
preparatory pupils (kindergarten and day/care) for a total of 887 students. The enrollment
enrollment process. To be able to comply with the demands of the clients, the school
should have the shortest and easiest possible way of searching and storing the student’s
data.
causes the slow enrollment process. Sometimes, the data are misplaced and lost due to
lack of security. It is because, the staff-in-charge writes the record of students on a sheet
of paper. It is a tedious job on the part of the staff-in-charge because it includes many
tasks such as checking if the information are correct, finding for a particular file of their
During enrollment at St. Columban’s School, the principal was assigned two
faculty members per year level to handle the enrollment, they check the information and
requirements of the student one-by-one that cause of slow process of enrollment. The
registering student needs to fill up the registration form either he/she is new, old or
transferees. In the cashier the staff-in-charge use manual computation, which results the
delay of issuing receipts of the student that will pay either full payment or monthly
payment. It is big responsibilities in the part of computing the fees of the students.
Furthermore, the staff-in-charge will need to check the information of the books before
sales/rentals of books and information of the students, which are filed in the folders and
4
are stored in the filing in the cabinet that is cause of interruption in giving pertinent
Moreover when students ask for verifications and updates of their record, staff-in-
Other problems during enrollment which the teachers, students and staff
encounter are:
folder disarrange.
of manual operation.
General Objectives
The objective of this study is to provide St. Columban’s School a computer- based
enrollment system that will minimize slow enrollment process, will store student
information in a database for instant record access and will make accurate reports and
Specific Objectives
This project will minimize the slow enrollment process of St. Columban’s School
by giving students accurate reports in the fastest time. The St. Columban’s School
Enrollment System (SCSES) will help the staff-in-charge to lessen the time in updating,
searching, adding, monitoring, managing as well as printing forms and records of the
students. Furthermore, it will help organize accurate reports of the students in the fastest
possible way.
With this project, St. Columban’s School will be upgraded with the latest
technology that will encourage the parents to enroll their children, not only because of the
quality education that it provides but also with regards to the efficiency of its enrollment
system.
6
This study is concerned with the enrollment process of St. Columban’s School,
Labrador, Pangasinan. The St. Columban’s School Enrollment System (SCSES) includes
the registering, accurate reports, and updated information. It can search, update, delete,
and view a student’s information on the database. It will secure the system from
unauthorized person. The system is connected into a Local Area Network (LAN) so that
the database can accessed in more than one computer. The system does not include the
storing and computing of grades and the financial expenses of the school, although it can
print forms such as fees, receipt, unsettled accounts, settled accounts and all students
enrolled.
Definition of Terms
Back-up – it refers to additional copies of data so that these additional copies may be
Command Button – it is option of the user that will click for every transaction.
Data – are important facts and figures regarding the students such as name, address,
Data Flow Diagram – a top down structured analysis and design tool, which consists
primarily of rectangle with rounded corners representing how data and people
7
interact.
Database Management System (DBMS) – the software that handles the storage,
of fees in the cashier and issuance of form 137 in registrar and giving the rentals
Password – keyword(s), phrases or number that must be specified before the system will
run.
Payments – setting of student fees during the whole school year, it includes the tuition
Record – a collection of data elements that relates to a certain subject multiple records
comprise a file.
Registration Form – the form given to the students during the enrollment, which
8
Report – is a way to output data from tables or queries that is the summarize of student
information.
Report Card – it contains the grades of the students from the school last attended.
system, which can be used by the staff-in-charge to minimize the slow and
Table – the basic building blocks of a database; it is where the actual data reside.
User friendly – it is a system that is ready to use and easy to understand for a wide
variety of people.
User Interface – the part of program that interacts with a person using the program.
User’s Manual – the guidelines of the user on how to operate the system.
Utilities – other function which is useful to the user, it contains calculator, calendar and
user manual.
View - a function for which the user can look at the records of the students.
Year Level –it is the way were can determine the section of the students or were groups
they belong.
10
Chapter 2
the underlying concepts of the study conducted. These led us to formulate the topic and
Related Literature
Computers are being used for instructions, drill and practice, record-keeping, and
computerized systems are being developed. Likewise, computers are now designed to be
File management is made easier with the arrival of computers. File operation
starts with the data collection and validation. The contents are changed or updated to cope
up with the rapid change in system requirements and to retrieve the stored information for
the purpose of extracting the needed information. That is getting, inquiring and
generating reports. The file operation will maintain, change, or improve its performance
expanding and computer techniques are increasingly employed for purposes such as
control of equipment, monitoring information, storage and retrieval of records (Barry and
Reymund; 1987).
Application) the basic hierarchy of data organization is database, file, and records.
Information system is one of the keys to success in competing business companies. The
informations are readily available, provided that users hold much opportunity to analyze,
make decisions, and easily negotiate with clients. Also, customers can relay information
and laws. They are essential in information and communication tasks which build better
facilities for the society. Computers have been used and integrated in many facilities used
interpretations of the data to be processed. There is almost no aspect of our lives that is
school and medical records, detail transactions, reservation system, transportation and
transmission, water and waste treatment facilities and all the conveniences of modern life
are conducted by computerized animation. It is not new anymore to hear schools switch
operating manually. Since the manual method shows difficulties, the said institutions
Related Studies
The following related studies gave pertinent information to the researchers in the
The Pangasinan National High School Enrollment System for Incoming First Year
was designed to relieve the concerned staff-in-charge of the burden of the manual
operation and to make searching, retrieving and updating student records. The system
computerize the manual operation of managing the faculty and student records of the said
school. It likewise provides an efficient, systematic and secured information system for
the school personnel and student. The San Fabian National High School Information
Polong National High School Students and Faculty Information System was
developed to help lessen the burden in every task done by the school personnel in
managing and generating records of students and teachers. It eliminates certain manual
procedures encountered such as searching, editing and filing records. Also, the system
stores records, provides rapid information to all concerned and provides online help
facility. This system was developed by Deo Duey Canave, Katherine De Guzman Villete
managing profile of the officers and the members of the Math Circle and the faculty of
Department of the Pangasinan State University. This system is designed to eliminate the
officers. The system was developed by Virginia Ringor and Angelyn Predas.
Synthesis
information is help for the staff-in-charge. It lessens the problem in the enrollment
encountered by the school and it provides easy look up for updated the student
information and accurate reports. The related literatures are connected to the study being
conducted. They provide resources and ideas as an accurate basis of the information
regarding the problem under study to integrate and to develop a system more reliable and
efficient.
For instance, the Pangasinan National High School Enrollment System for
Incoming First Year help the researchers in developing a concepts to be included in the
The San Fabian National High School Information System and Polong National
High School and Faculty Information System both helped the researchers in developing
the study.
14
Chapter 3
situations that prevent the St. Columban’s School Enrollment System (SCSES) from fully
At present, the St. Columban’s School, a diocesan school, is under the supervision
of the Sisters of St. Joseph of Cluny, with a board of trustees headed by Bishop Marlo M.
Peralta D.D as the president and Director Fr. Jim Sheehy, the parish priest. Most of the
students in this school are Roman Catholics, but St. Columban’s School is also accepting
It started with 34 students fifty years ago. And now the school has a population of 887
students, 643 of which are high school students and 244 are elementary and preparatory
pupils.
According to Mrs. Imelda Segarra, the school principal, two faculty members are
assigned in every year level to handle the enrollment. For the new students, the staff-in-
charge informs the about all the requirements and the terms of payments, and checks the
students’ information. It is time consuming on the part of the cashier in computing the
fees of their students. In giving the payments and book rentals, the cashier needs to
ensure that the information of the books is exact, before these will be given to the
students. The staff–in–charge then needs to alphabetically arrange the records of the
15
students who are enrolled and file and store it in the cabinet. This system leads to the
Every school year, the population of St. Columban’s School (SCS) is increasing;
therefore it needs a database with a bigger capacity and longer life span. As the number
finding students data. It will need a computerized enrollment system to decrease the time-
The requirements analysis phase is based from the approved system. In the data of
the new enrollees, old enrollees, and the transferees are collected and gathered. The St.
Columban’s School Enrollment Sysyem (SCSES) will allow the staff-in-charge to encode
data into the system which are to be inputted by the user and are then stored in the
database. Viewing enrollment information according to what the user wants to view;
either by fees or references of students is possible. Printing is one of the important needs
in the system; it must print all data of students, the number of enrollees during the school
year, fees, and other forms. Deleting files, records and other information is a very
confidential procedure that it must only be done by authorized personnel: Lastly, the use
Given the requirements, there are alternative ways to design new information
system. The purpose of this phase is to identify candidate solutions, analyze those
needs to store data or information of its students. In anticipation, the possibility that there
is an annual increase of enrollees, the system must be networked locally so that sharing
MySQL will be the database of the system. The system is designed using Visual
Basic Programming.
Design Phase
other words, the design phase addresses how technology will be used in the new system.
The main target of this phase is the user. In order to implement this project, it
must be suited to the requirements of the user and it must have a similarity to the
previous system used by the user so that he will not have a difficulty in adjusting to the
new system. The design includes the basic functions such as adding, viewing, editing,
updating and printing of data. With these features, manipulating the data will be easy.
17
Construction Phase
Researchers started a trial and error process in designing and coding the project.
The specification of the system is constructed according to the needs of the user.
Software Visual Programming is used to build the project. The purpose of the system is to
gather data and input to the system so that the data will be manageable easy storage data
of compatible to the software used. Its secured system and interface will make the user to
continue using the system and not to be confused in using the system. One important
as the overall system. It tests the user to identify what are the additional aspects needed to
Implementation Phase
The St. Columban’s School Enrollment System (SCSES) is tested by one of the
staff-in-charge handling the enrollees and the registrar of St. Columban’s School (SCS) to
find out if it suits the needs of their office and to determine what are the other processes
needed in the system to improve the enrollment system of St. Columban’s School (SCS).
The implementation of the data and current records in their files are included in the
system while testing for the exact specification to their system. Individuals are then
trained in using the system and developing documentation to aid system user. During the
CHAPTER 4
The researchers aim to improve and to minimize the use of manual system of
Columban’s School was created primarily to have a manageable and user friendly system.
It was developed by using Microsoft Visual Basic 6.0 and its database MySQL.
To start the system, the user must login to the security of the system for securing
LOGIN FORM
Figure 1
The user will need to sign in to the login in form entering the user name and the
LOGIN ERROR 1
19
Figure 2
Once the user did not input or mistake for typing its password, there will be
prompt that the user has incorrect input of password (See figure 2).
LOGIN ERROR 2
Figure 3
The user has only 3 attempts to enter the correct password. After reaching the all
WELCOME SCREEN
20
Figure 4
Succeeding entry for the correct username and password, it will appear the
welcome screen. And you can restore, edit, update, view, and prints enrollment
MAIN INTERFACE
Figure 5
In the man interface, you can see the following menus in the upper right hand
The File Transaction menu has submenus Student Information, Enroll Student,
Book Information, and School Year Setting. In the Student Information it can search by
last name and has submenus that the user can add new and transferee student. To add new
or transferee student has the same process of submitting requirements. (See figure 6)
Figure 6
information, there will appear a form that contain either the student will enrolled at
primary or secondary year level. This admission process is step by step, there will no
22
exception, strictly to be filled up all requirements in the form. The system generates
student number for the students for avoiding duplicate names in restoring data of student
Figure 7
The student number given to the student, it serves as a key in his information. The
enrollees should be given student number. The user will need to choose either high school
or elementary, since the elementary and high school student is different in the students id
and then click the next button to be proceed the next form (See figure 7).
Figure 8
The user will type all the students information, if the user if forget some information it
will not proceed to the next form, in clicking the next button it will appear a messages
box contain “Fill-up the highlighted text” after the enrollees can now store their
information and parents information. Confirming that the given data is right and true,
before continuing, it shows the summary of the given data (See figure 7).
Figure 9
SUMMARY FORM
Figure 10
25
Saving the given information by the enrollees next is assessment of the enrollees
corresponding to the year level and to payments. It prints the receipt if the enrollees I the
ASSESSMENT FORM
Figure 11
When the enrollee already assessed, the enrollee is now enrolled. His or her
account will be viewed to the interface with the corresponding school year and year level.
All the time, the student can edit his or her information by double clicking to the
data source of adds student form. The student can have his copy for his information with
valid reasons. Just print the information. The old student, fill up the form, if there’s a
changes of his information, the in charge will edit the changes of the student.
26
Figure 11
ASSESSMENT FORM
Figure 12
27
Figure 12, shows the receipt to be print, all payments stores at a single database.
In this case, the in-charge of enrollment, asking the student if he will pay full tuition or he
will pay installment. By clicking check box of full or monthly at ASSESSMNT FORM, it
will automatically compute the total amount to be paid by the student for his enrollment.
Then the student is now enrolled after paying his down payment. Giving the receipt to the
student to present the receipt to the library to get his rented books. The presented receipt
shows that the student settled his down payment to the cashier.
At the library, the system will stores borrowers book, date borrowed, date
returned, book title, and author of the book. At Figure 13, click adds for the adding
student in the borrowers list, choosing of book requirements for the year level, returning
of books is done after the school year. The student must returned exact book the he or she
borrowed, otherwise, the student will be charge to the book he or she lost.
BOOK INFORMATION
Figure 13
28
Figure 14
BOOK INFORMATION
Figure 15
29
In adding book of student, each book has unique code to know that the book is
responsible for particular student. When the user mistaken to entering the book code,
there will prompt that the book is already borrowed. For the user know the action done by
the user if it is correct. The print button prints the student books.
Figure 16
30
Figure 17
setting that the registrar office could create school year enrollment every year.
31
SYSEM INTERFACE
Figure 18
Exiting the system, before it exit there will be prompt that the system is close, to
continue using the system, open the system icon from your desktop and operate it.
32
FEES SETTING
Figure 19
From the second menus, SETTINGS, under Settings menu are Payment Settings,
changing the payments of student for updating details, whether the fees is to decrease or
to increase.
33
BOOK SETTINGS
Figure 20
Book Settings is under setting menus. This setting, updates the books of
student to be borrowed, or to be rent. It add book title and book author in this setting.
34
USER UTILITIES
Figure 21
User Utilities is the account settings of this system. Adding user accounts, editing
user accounts and deleting user accounts. In adding, enter username, password, retype
password, name, address and contact. If these fields are null, then it will failed adding
new user.
Figure 22
35
STUDENT INFORMATION
Figure 23
Viewing the information of the school, the name of the school, address, and
PRINT MENU
Figure 24
Printing student information will work when the in-charge select school year and
year level. After selecting school year and year level, there will appear student
information to the current selected school year and year level. When there’s no student
enrolled at that school year, it prompt that there is no record. The user has choices what to
UTILITIES
Figure 25
In the Utilities menu, the user can view the calendar in current date and set the
Chapter 5
Summary:
The main goal of the St. Columban’s School Enrollment System is not only to
produce accurate records of the students, but also to lessen the time spent and effort in
searching, accessing and filing records. The system gives the school office easy and fast
Conclusion:
Based on the developers, evaluation of this system gives the following benefits:
The proposed system will help the user to search and filing records in a
record.
Recommendation:
The user must be a computer iterate at school office personnel so that the
To prevent the data loss the user must provide a back up file and update
Providing an anti- virus to the software to avoid corrupt file and slow
down operation.
The computer must be Pentium III, Pentium IV to work the system, the
windows XP.
40
BIBLIOGRAPHY
BOOKS
1
CARAQUE, OFELIA. An Introduction to Information Technology, Computer
1995.
3
MARTIN MERLIE P., Analysis and Design of Business Information; New York:
JOURNAL
THESIS BOOKS
1
CAVANE DEO DUEY et al, Polong National High School and Faculty
Transaction
User Accounts Students_info
ACCOUNTS id_or (PK)
Students_info sno (FK)
Username
date_paid
Password
fees
Name Students_info school_year,
Contact
Address
sno(PK)
lname
fname
mname
barangay
town
province
Book_information birthdate
sex
book_title (PK) contact
bookauthor school_attended
general_average
form137
transcript
birth_certiicate
baptism
confirmation
firstcommunion Tb-fees
f_lname Students_info
f_fname year_level (PK)
Tb-book-rental_ matriculation_fees
f_mname
laboratory_fees
Sno (FK)
f_occu library_fees
bokcode(PK) m_lname medical_fees
book_date m_fname athletic_fees
book_renturn_date m_mname guidance
school_year book_rentals
m_occu
year_level bato_balani
book_title
parents_contact snj
book_author values_magazine
id tuition
monthly_payment
ASSESSMENT
SCSES INFO
Entity Relationship Diagram
Figure 26 har(45) NOT
NULL,
`snj` varchar(45)
NOT NULL,
`values_magazine`
varchar(45) NOT
NULL,
`id` varchar(45)
NOT NULL,
varchar(45) NOT
NULL,
`monthly_paymen 44
ts` varchar(45)
NOT NULL,
PRIMARY KEY
(`year_level`)
)
ENGINE=InnoDB
DEFAULT
CHARSET=latin1
;
STUDENT’S
INFORMATION
STUDENT
Student
Requirements
PRINCIPAL
ENROLLED STUDENT
Student 3
Requirements
GENERAL REPORT
Registration Form
Student Info
Student Info
2
Student Info D1
VALIDATION
Student Info
D2 FEES
Figure 29
46
Figure 30
47
START
ADD STUDENT
DATA
DELETE
A
Y
N
DATA AND BOOK RENT
A DELETE INFORMATION AND SALES
PAYMENT
SECTION
PRINT FORMS,
ENROLLEES, AND END
RECEIPT
TABLES
Table 1
Table 2
51
Database name:db_student
Table name: tb_book_rental
Table 3
Database name:db_student
Table name: tbuser
Table 4
Database name:db_student
Table name: tb_fees
Table 5
Table 6
53
54
CODES
MDImain form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
Dim i As Integer
Dim rsndi As ADODB.Recordset
Dim rsname As ADODB.Recordset
DataReport3.Show vbModal
End Sub
End Sub
End Sub
DataReport2.Show vbModal
End If
End If
End Sub
DataReport3.Show vbModal
End Sub
End Sub
DataReport5.Sections("Section2").Controls("Label17").Caption = rs_in.Fields("birthdate")
DataReport5.Sections("Section2").Controls("Label16").Caption = "" & rs_in.Fields("barangay")
& ", " & rs_in.Fields("town") & " " & rs_in.Fields("province") & ""
DataReport5.Sections("Section2").Controls("Label19").Caption = "" & rs_in.Fields("sex") & ""
DataReport5.Sections("Section2").Controls("Label20").Caption = rs_in.Fields("contact")
DataReport5.Sections("Section2").Controls("Label21").Caption = "" & rs_in.Fields("f_lname") &
", " & rs_in.Fields("f_fname") & " " & rs_in.Fields("f_mname") & ""
DataReport5.Sections("Section2").Controls("Label22").Caption = rs_in.Fields("f_occu")
DataReport5.Sections("Section2").Controls("Label23").Caption = "" & rs_in.Fields("m_lname")
& ", " & rs_in.Fields("m_fname") & " " & rs_in.Fields("f_mname") & ""
DataReport5.Sections("Section2").Controls("Label24").Caption = rs_in.Fields("m_occu")
DataReport5.Sections("Section2").Controls("Label25").Caption = rs_in.Fields("parents_contact")
DataReport5.Show vbModal
End If
End If
End Sub
enrollstud_Click
Case 3:
bi_Click
Case 4:
si_Click
Case 5:
useraccounts_Click
End Select
End Sub
DataReport3.Show vbModal
End Sub
__________________________________________________________
book_information form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
If rs.RecordCount = 0 Then
MsgBox "No records.", vbCritical, "No records."
DataGrid1.Visible = False
Else
DataGrid1.Visible = True
Set DataGrid1.DataSource = rs
End If
End If
End Sub
Set rs = db.Execute(sql)
If rs.RecordCount = 0 Then
MsgBox "No records.", vbOKOnly, "No records"
DataGrid1.Visible = False
Else
DataGrid1.Visible = True
Set DataGrid1.DataSource = rs
61
End If
End Sub
________________________________________________________
frm_book form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
Dim rs1 As ADODB.Recordset
Dim sett As String
End Sub
Dim i As Integer
For i = 1 To rs.RecordCount
Combo3.Text = rs.Fields("year_level1")
rs.MoveNext
Next i
If Combo3.Text = "" Then
DataGrid1.Visible = False
Else
sql = "select book_title, book_code, book_date as Date_Borrowed, book_return_date as
Date_Returned, book_author from tb_book_rental where sno ='" & Label4.Caption & "' and
school_year = '" & Combo2.Text & "' and year_level = '" & Combo3.Text & "'"
Set rs = db.Execute(sql)
If rs.RecordCount = 0 Then
DataGrid1.Visible = False
Else
DataGrid1.Visible = True
Set DataGrid1.DataSource = rs
End If
End If
End Sub
62
End Sub
sql = "select book_title, book_code from tb_book_rental where book_title='" & Combo1.Text &
"' and book_code = '" & Text1.Text & "' and school_year = '" & Combo2.Text & "'"
Set rs1 = db.Execute(sql)
If rs1.RecordCount > 0 Then
MsgBox "Book already rent by another student."
Else
sql = "select * from tb_book_rental where sno = '" & Label4.Caption & "' and school_year = '" &
Combo2.Text & "' and year_level = '" & Combo3.Text & "' and book_title = '" & Combo1.Text &
"'"
Set rs1 = db.Execute(sql)
DataReport4.Show vbModal
Form_Load
End Sub
Text2.Text = rs.Fields("book_title")
Text3.Text = rs.Fields("book_author")
Text5.Text = rs.Fields("book_code")
Text6.Text = rs.Fields("Date_Borrowed")
Text7.Text = rs.Fields("Date_Returned")
End Sub
64
End Sub
Private Sub locke()
Text2.locked = True
Text3.locked = True
Text5.locked = True
Text6.locked = True
Text7.locked = True
End Sub
________________________________________________________
frmaddschoolyear form
If rs.RecordCount Then
MsgBox "Invalid school year.", vbOKOnly + vbCritical, ""
Else
sql = "insert into school_year values('" & Text1.Text & "')"
Set rs = db.Execute(sql)
MsgBox "School Year " & Text1.Text & " created", vbOKOnly, ""
Unload Me
End If
End Sub
________________________________________________________
frmaddstudent form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
Dim error As Integer
Combo1.BackColor = &H80000005
End Sub
Combo3.BackColor = &H80000005
End Sub
tofind = Text1.Text
Me.Hide
frmenroll.Show
SendKeys tofind
SendKeys "{enter}"
Unload Me
67
End Sub
Else
Unload Me
End Sub
End If
frmaddstudent.Caption = "Student Number: " & Text1.Text & ""
End Sub
error = 1
Text16.BackColor = &H8080FF
End If
If Text17.Text = "" Then
error = 1
Text17.BackColor = &H8080FF
End If
If Text18.Text = "" Then
error = 1
Text18.BackColor = &H8080FF
End If
If Combo2.Text = "" Then
error = 1
Combo2.BackColor = &H8080FF
End If
If Combo3.Text = "" Then
error = 1
Combo3.BackColor = &H8080FF
End If
If error = 1 Then
MsgBox "Please Fill-up the highlighed requirements."
SSTab1.Tab = 2
Else
SSTab1.Tab = 3
Call preview
End If
End Sub
current_date = Date
birth_date = DTPicker1.value
71
dy = Year(current_date) - Year(birth_date)
dm = Month(current_date) - Month(birth_date)
If dm < 0 Then
dy = dy - 1
End If
Text10.BackColor = &H80000005
Text10.Text = dy
End Sub
End Sub
72
If Check1.value = 1 Then
rtb.Text = rtb.Text & _
" FORM138 " & vbNewLine & ""
End If
If Check2.value = 1 Then
rtb.Text = rtb.Text & _
" TRANSCRIPT OF RECORDS " & vbNewLine & ""
End If
If Check3.value = 1 Then
rtb.Text = rtb.Text & _
" BIRTH CERTIFICATE " & vbNewLine & ""
End If
If Check4.value = 1 Then
rtb.Text = rtb.Text & _
" BAPTISM" & vbNewLine & ""
End If
If Check5.value = 1 Then
rtb.Text = rtb.Text & _
" CONFIRMATION " & vbNewLine & ""
End If
If Check6.value = 1 Then
rtb.Text = rtb.Text & _
" FIRST COMMUNION" & vbNewLine & ""
End If
End Sub
End Sub
If IsNumeric(Text12.Text) Then
Text12.Text = ""
End If
Text12.BackColor = &H80000005
End Sub
Text13.BackColor = &H80000005
End Sub
Text14.BackColor = &H80000005
End Sub
Text15.BackColor = &H80000005
End Sub
Text17.BackColor = &H80000005
End Sub
Text18.Text = ""
End If
Text18.BackColor = &H80000005
End Sub
Text2.BackColor = &H80000005
End Sub
Text3.BackColor = &H80000005
End Sub
Text4.BackColor = &H80000005
End Sub
Text6.BackColor = &H80000005
End Sub
Text7.Text = ""
End If
Text7.BackColor = &H80000005
End Sub
____________________________________________________
frmadduser form
Option Explicit
Dim sqladduser As String
Dim rsadduser As ADODB.Recordset
End If
If Text2.Text = "" Then
a = "" & a & " password,"
End If
If Text3.Text = "" Then
a = "" & a & " retype password,"
End If
If Text4.Text = "" Then
a = "" & a & " name,"
End If
If Text5.Text = "" Then
a = "" & a & " contact,"
End If
If Text6.Text = "" Then
a = "" & a & " address,"
End If
If Text2.Text = Text3.Text Then
If a = "Missing requirements : " Then
sqladduser = "select username from tbuser where username = '" & Text1.Text & "'"
Set rsadduser = db.Execute(sqladduser)
If rsadduser.RecordCount = 0 Then
sqladduser = "insert into tbuser(username, password, name, contact, address) values('" &
Text1.Text & "','" & Text2.Text & "','" & Text4.Text & "','" & Text5.Text & "','" & Text6.Text &
"')"
Set rsadduser = db.Execute(sqladduser)
MsgBox "New user added!", vbInformation, ""
Dim s As String
Dim t As ADODB.Recordset
s = "select username, name, contact, address from tbuser"
Set t = db.Execute(s)
Set frmuser.DataGrid1.DataSource = t
Unload Me
Else
MsgBox "Username already exist. Choose another username."
End If
Else
MsgBox "" & a & "", vbInformation, ""
End If
Else
MsgBox "Password and retype password did not gorabis.", vbCritical, ""
Text2.Text = ""
Text3.Text = ""
Text2.SetFocus
End If
End Sub
78
_______________________________________________________
frmeditauthor form
Option Explicit
Dim sqladduser As String
Dim rsadduser As ADODB.Recordset
End Sub
sqladduser = "insert into tbuser(username, password, name, contact, address) values('" &
Text1.Text & "','" & Text2.Text & "','" & Text4.Text & "','" & Text5.Text & "','" & Text6.Text &
"')"
Set rsadduser = db.Execute(sqladduser)
MsgBox "New user added!", vbInformation, ""
Dim s As String
Dim t As ADODB.Recordset
s = "select username, name, contact, address from tbuser"
Set t = db.Execute(s)
Set frmuser.DataGrid1.DataSource = t
Unload Me
Else
MsgBox "Username already exist. Choose another username."
End If
Else
MsgBox "" & a & "", vbInformation, ""
End If
Else
MsgBox "Password and retype password did not gorabis.", vbCritical, ""
Text2.Text = ""
Text3.Text = ""
Text2.SetFocus
End If
End Sub
______________________________________________________
frmeditstudent form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
sql = "update tb_student set lname='" & Text1.Text & "', fname= '" & Text2.Text & "'," & _
"mname = '" & Text3.Text & "', barangay ='" & Text4.Text & "',town='" & Combo1.Text &
"',province='" & Combo2.Text & "',birthdate = '" & DTPicker1.value & "', " & _
"sex = '" & Combo4.Text & "', contact = '" & Text6.Text & "', school_attedend='" & Text7.Text &
"'," & _
"general_average='" & Text8.Text & "',form137='" & Check1.value & "',transcript='" &
Check2.value & "'," & _
"birth_cerificate='" & Check3.value & "', baptism='" & Check4.value & "', confirmation='" &
Check5.value & "'," & _
"firstcommunion='" & Check6.value & "',f_lname='" & Text9.Text & "', f_fname='" &
Text10.Text & "', f_mname='" & Text11.Text & "'," & _
80
"f_occu='" & Combo5.Text & "',m_lname='" & Text12.Text & "',m_fname='" & Text13.Text &
"',m_mname='" & Text14.Text & "', " & _
"m_occu = '" & Combo6.Text & "',parents_contact='" & Text15.Text & "',date = '" & Date & "'
where sno = '" & Text21.Text & "'"
Set rs = db.Execute(sql)
MsgBox "Student update!", vbInformation, ""
Unload Me
End Sub
End Sub
Text1.locked = True
Call SetConnection("localhost", "db_student", "root", "")
Call DTPicker1_Change
End Sub
Combo2.locked = True
Text5.locked = True
Combo4.locked = True
Text6.locked = True
Text7.locked = True
Text8.locked = True
Check1.Enabled = False
Check2.Enabled = False
Check3.Enabled = False
Check4.Enabled = False
Check5.Enabled = False
Check6.Enabled = False
Text9.locked = True
Text10.locked = True
Text11.locked = True
Combo5.locked = True
Text12.locked = True
Text13.locked = True
Text14.locked = True
Combo6.locked = True
Text15.locked = True
End Sub
Text14.locked = False
Combo6.locked = False
Text15.locked = False
End Sub
______________________________________________________
frmenroll form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
Dim tofind As String
Combo1.Text = rs.Fields("sno")
Label12.Caption = "" & UCase(rs.Fields("lname")) & ", " & UCase(rs.Fields("fname")) & " " &
UCase(rs.Fields("mname")) & ""
Label13.Caption = rs.Fields("sex").value
Label14.Caption = "" & rs.Fields("birthdate") & ""
Label18.Caption = rs.Fields("general_average")
End If
End Sub
Else
Command1.Enabled = True
Option2.Enabled = True
Option1.Enabled = True
End If
End Sub
Call c4_Click
sql = "select school_year, sno1 from tb_syenrollees where school_year = '" & Combo2.Text & "'
and sno1 = '" & Combo1.Text & "'"
Set rs = db.Execute(sql)
If rs.RecordCount = 1 Then
MsgBox "Student's enrolled at this school year."
Command1.Enabled = False
Combo1.Clear
Form_Load
Else
Command1.Enabled = True
Option1.Enabled = True
Option2.Enabled = True
End If
End Sub
End If
End If
End Sub
Set rs = db.Execute(sql)
rs.MoveFirst
Combo2.Text = rs.Fields("school_year")
End Sub
Label31.Caption = Date
sql = "select school_year from school_year order by school_year desc"
Set rs = db.Execute(sql)
Dim i As Integer
For i = 1 To rs.RecordCount
Combo2.AddItem rs.Fields("school_year")
rs.MoveNext
Next i
End Sub
End If
End Sub
End Sub
_______________________________________________________
frmfind form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
frmenroll.Label12.Caption = "" & rs.Fields("lname").value & ", " & rs.Fields("fname").value & "
" & rs.Fields("mname").value & ""
Unload Me
Else
MsgBox "No record found.", vbOKOnly, ""
End If
End Sub
End Sub
______________________________________________________
frmlogin form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
Dim i As Integer
Dim err As Integer
sql = "select * from tbuser where username= '" & Combo1.Text & "' and password = '" &
Text1.Text & "'"
Set rs = db.Execute(sql)
If rs.RecordCount = 0 Then
MsgBox "Invalid Username and Password", vbOKOnly + vbCritical, ""
err = err - 1
Text1.Text = ""
Label3.Caption = "Attempt: " & err & ""
If err = 0 Then
MsgBox "YOu have use your all attempts.", vbOKOnly + vbCritical, ""
End
End If
ElseIf rs.RecordCount = 1 Then
MsgBox "Welcome " & rs.Fields("name").value & "", vbOKOnly + vbInformation, "Welcome"
Unload Me
MDImain.Show
End If
End Sub
_______________________________________________________
frmmonthly form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
Else
If Label28.Caption = 0 Then
MsgBox "Please enter value.", vbOKOnly + vbQuestion, "Null"
Else
Dim sqlmonthly As String
Dim rsmonthly As ADODB.Recordset
Set DataReport1.DataSource = rs
DataReport1.Sections("Section2").Controls("Label10").Caption = Label12.Caption
DataReport1.Sections("Section2").Controls("Label8").Caption = Label4.Caption
DataReport1.Sections("Section2").Controls("Label6").Caption = Label7.Caption
DataReport1.Sections("Section2").Controls("Label4").Caption = b.Caption
DataReport1.Sections("Section2").Controls("Label3").Caption = a.Caption
DataReport1.Sections("Section2").Controls("Label28").Caption = Text1.Text
DataReport1.Sections("Section2").Controls("Label27").Caption = 0
DataReport1.Sections("Section2").Controls("Label26").Caption = 0
DataReport1.Sections("Section2").Controls("Label25").Caption = 0
DataReport1.Sections("Section2").Controls("Label24").Caption = 0
DataReport1.Sections("Section2").Controls("Label23").Caption = 0
DataReport1.Sections("Section2").Controls("Label22").Caption = 0
DataReport1.Sections("Section2").Controls("Label21").Caption = Text1.Text
DataReport1.Show vbModal
Command2.Enabled = True
90
End If
End If
End Sub
sql = "select * from tb_syenrollees where syno = '" & a.Caption & "-" & Label4.Caption & "'"
Set rs = db.Execute(sql)
Dim art As String
art = rs.Fields("charge")
sql = "update tb_syenrollees set charge = " & art & " - " & Val(Label28.Caption) & " where syno
= '" & a.Caption & "-" & Label4.Caption & "'"
Set rs = db.Execute(sql)
MsgBox "Student update.", vbOKOnly + vbInformation, "Enrolled"
Unload Me
Unload frmmonthlypayments
End Sub
sql = "select * from tb_student where sno = '" & frmmonthlypayments.Text1.Text & "'"
Set rs = db.Execute(sql)
Label4.Caption = rs.Fields("sno")
Label12.Caption = "" & rs.Fields("lname") & ", " & rs.Fields("fname") & " " &
rs.Fields("mname") & ""
End Sub
End Sub
91
_______________________________________________________
frmmonthlypayments form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
Dim sql1 As String
frmmonthly.Show vbModal
End Sub
Set rs = db.Execute(sql)
Text4.Text = rs.Fields("pay")
'MsgBox sql
End Sub
End Sub
______________________________________________________
frmreceipt form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
Dim a As String
Private Sub Command1_Click()
Set DataReport1.DataSource = rs
DataReport1.Sections("Section2").Controls("Label3").Caption = Label11.Caption
DataReport1.Sections("Section2").Controls("Label4").Caption = Label1.Caption
DataReport1.Sections("Section2").Controls("Label6").Caption = Label7.Caption
DataReport1.Sections("Section2").Controls("Label8").Caption = Label4.Caption
DataReport1.Sections("Section2").Controls("Label10").Caption = Label12.Caption
DataReport1.Sections("Section2").Controls("Label12").Caption = Label6.Caption
DataReport1.Sections("Section2").Controls("Label21").Caption = Label30.Caption
DataReport1.Sections("Section2").Controls("Label22").Caption = Label15.Caption
DataReport1.Sections("Section2").Controls("Label23").Caption = Label16.Caption
DataReport1.Sections("Section2").Controls("Label24").Caption = Label26.Caption
DataReport1.Sections("Section2").Controls("Label25").Caption = Label25.Caption
DataReport1.Sections("Section2").Controls("Label26").Caption = Label24.Caption
DataReport1.Sections("Section2").Controls("Label27").Caption = Label27.Caption
DataReport1.Sections("Section2").Controls("Label28").Caption = Label28.Caption
DataReport1.Show vbModal
Command2.Enabled = True
End Sub
sql = "select syno from tb_syenrollees where syno = '" & Label11.Caption & "-" &
Label4.Caption & "'"
Set rs = db.Execute(sql)
If rs.RecordCount = 1 Then
MsgBox "Student already enrolled at this school year " & Label11.Caption & ""
Else
sql = "select
(matriculation_fees+laboratory_fees+library_fees+medical_fees+athletic_fees+guidance+book_r
entals+bato_balani+snj+values_magazine+id+tuition)as pay from tb_fees where year_level = '" &
Label6.Caption & "'"
Set rs = db.Execute(sql)
sql = "insert into tb_syenrollees(syno,school_year, sno1, year_level1, section, charge) " _
& " values('" & Label11.Caption & "-" & Label4.Caption & "','" & Label11.Caption & "'," _
& "'" & Label4.Caption & " ','" & Label6.Caption & "','" & frmenroll.Combo4.Text & "'," _
& "'" & rs.Fields("pay").value & "')"
Set rs = db.Execute(sql)
End If
sql = "insert into tb_transaction values('" & Label7.Caption & "','" & Label4.Caption & "','" &
Label1.Caption & "','" & Label28.Caption & "','" & Label11.Caption & "')"
Set rs = db.Execute(sql)
sql = "select charge from tb_syenrollees where syno = '" & Label11.Caption & "-" &
Label4.Caption & "'"
Set rs = db.Execute(sql)
a = rs.Fields("charge")
sql = "update tb_syenrollees set charge = " & a & " - " & Val(Label28.Caption) & " where syno =
'" & Label11.Caption & "-" & Label4.Caption & "'"
Set rs = db.Execute(sql)
MsgBox "Student enrolled.", vbOKOnly + vbInformation, "Enrolled"
Unload Me
End Sub
Label4.Caption = frmenroll.Combo1.Text
Label12.Caption = frmenroll.Label12.Caption
Label6.Caption = frmenroll.Combo3.Text
Label16.Caption = frmenroll.Label16.Caption
Label26.Caption = frmenroll.Label26.Caption
Label25.Caption = frmenroll.Label25.Caption
Label24.Caption = frmenroll.Label24.Caption
Label27.Caption = frmenroll.Label27.Caption
Label28.Caption = frmenroll.Label28.Caption
End Sub
_______________________________________________________
frmschoolsetting form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
____________________________________________________
frmset form
95
Option Explicit
Dim rs As ADODB.Recordset
List1.AddItem "sno"
List1.AddItem "lname"
List1.AddItem "fname"
List1.AddItem "mname"
List1.AddItem "barangay"
List1.AddItem "town"
List1.AddItem "province"
List1.AddItem "birthdate"
List1.AddItem "sex"
List1.AddItem "contact"
List1.AddItem "school_attedend"
List1.AddItem "general_average"
List1.AddItem "form137"
List1.AddItem "transcript"
List1.AddItem "birth_cerificate"
List1.AddItem "province"
List1.AddItem "birthdate"
List1.AddItem "sex"
List1.AddItem "contact"
List1.AddItem "school_attedend"
List1.AddItem "general_average"
List1.AddItem "form137"
List1.AddItem "transcript"
List1.AddItem "birth_cerificate"
List1.Selected(0) = True
List1.Selected(1) = True
List1.Selected(2) = True
List1.Selected(3) = True
End Sub
End If
Next a
SQL_GLOBAL = Mid$(SQL_GLOBAL, 1, Len(SQL_GLOBAL) - 2)
SQL_GLOBAL2 = SQL_GLOBAL
SQL_GLOBAL = SQL_GLOBAL & " from tb_student order by lname"
Set rs = db.Execute(SQL_GLOBAL)
Set frmstudent.DataGrid1.DataSource = rs
frmstudent.Show
End Sub
___________________________________________________
frmsetting form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
Dim fin As String
Else
sql = "insert into " & fin & "(book_title, book_author) values('" & UCase(title) & "','" &
UCase(author) & "')"
Set rs = db.Execute(sql)
Call Form_Load
End If
End If
End Sub
frmeditauthor.Text2.Text = rs.Fields("book_author")
frmeditauthor.Text3.Text = fin
frmeditauthor.Text4.Text = rs.Fields("book_title")
frmeditauthor.Show vbModal
End If
End Sub
_____________________________________________________
frmstud_book form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
Dim rs1 As ADODB.Recordset
End Sub
Set DataGrid1.DataSource = rs
End If
End If
End Sub
Else
sql = "select * from tb_book_rental where sno = '" & rs.Fields("sno1") & "' and school_year = '"
& Combo1.Text & "' and year_level = '" & Combo2.Text & "'"
Set rs1 = db.Execute(sql)
If rs1.RecordCount > 0 Then
MsgBox "Student already exist."
Else
sql = "insert into tb_book_rental(sno, school_year, year_level) values('" & rs.Fields("sno1") &
"','" & Combo1.Text & "','" & Combo2.Text & "')"
Set rs = db.Execute(sql)
MsgBox "Save!"
End If
Call Combo1_Click
End If
End If
End Sub
End Sub
tofind = UCase(Text1.Text)
sql = "select sno1 from tb_syenrollees where school_year= '" & Combo1.Text & "' and
year_level1 = '" & Combo2.Text & "' and mid(sno1,1,length(" & "'" & tofind & "')) = " & "'" &
tofind & "'"
100
Set rs = db.Execute(sql)
Set DataGrid1.DataSource = rs
End If
End Sub
_____________________________________________________
frmstudent form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
Dim tofind As String
Dim i As Integer
End Sub
End Sub
sql = "select sno, lname, fname, mname from tb_student order by lname asc"
Set rs = db.Execute(sql)
Set DataGrid1.DataSource = rs
SQL_GLOBAL2 = "select sno,lname,fname,mname "
End Sub
tofind = UCase(Text1.Text)
sql = SQL_GLOBAL2 & " " & "from tb_student where mid(lname,1,length(" & "'" & tofind &
"')) = " & "'" & tofind & "'"
Set rs = db.Execute(sql)
Set DataGrid1.DataSource = rs
End Sub
_______________________________________________________
frmuser form
Option Explicit
Dim sqluser As String
Dim rsuser As ADODB.Recordset
End Sub
102
______________________________________________________
setfees form
Option Explicit
Dim sql As String
Dim rs As ADODB.Recordset
Command1.Enabled = True
End Sub
Text1.locked = True
Text2.locked = True
Text3.locked = True
Text4.locked = True
Text5.locked = True
Text6.locked = True
Text7.locked = True
Text8.locked = True
Text9.locked = True
Text10.locked = True
Text11.locked = True
Text12.locked = True
104
Text13.locked = True
End Sub
Text1.locked = False
Text2.locked = False
Text3.locked = False
Text4.locked = False
Text5.locked = False
Text6.locked = False
Text7.locked = False
Text8.locked = False
Text9.locked = False
Text10.locked = False
Text11.locked = False
Text12.locked = False
Text13.locked = False
End Sub