Академический Документы
Профессиональный Документы
Культура Документы
“SCHOOL MANAGEMENT”
Project Work submitted in partial fulfillment of the requirements for
Submitted by
Mr. Ansari Saad
2009-2010
Project Guide
Prof. Sandhya Pandey
G. R. Patil College
Of Science, Arts & Commerce Dombivli (E).
( Affiliated to the University of Mumbai )
Page |1
School Management System
Certificate
This is to certify that Ansari Saad & Shaikh Mohd. Shakeal Has
satisfactorily completed the project work entitled “SCHOOL
MANAGEMENT SYSTEM” And Prepared this project during the
academic year 2009-2010 In partial fulfillment for the Award of B.Sc.
(Information Technology) Recognized by University of Mumbai Under
the supervision of G.R.Patil College Dombivali (East)
Place : Dombivli
Date :
Page |2
School Management System
“ACKNOWLEDGEMENT”
We take this opportunity to thanks a number
of individuals whose guidance and encouragement were of enormous
help to us while working on the project “SCHOOL MANAGEMENT
SYSTEM”.
We sincerely thank our guide Mrs. Sandhya Pandey for
her valuable advice and guidance in the design and implementation of
the project and innovative suggestions for the improvement of the same.
Her precise and inspiring guidance during the project helped us
immensely.
We would also like to thank the other guides Mrs. Ashwini
Kulkarni and Mrs. Sunanda Mulgund for their constant support, advice
and encouragement throughout the duration of the project work.
We would also like to thank all the professors of the
department of IT for their co-operation and assistance. We mention our
special thanks and deep sense of gratitude to All Teaching and Non-
Teaching Staff Members who gave us the opportunity to work on this
project.
Last but certainly not the least we also thank, other staff
member, our colleagues, our parents, and those people associated with
this project and appreciate their kind co-operation, without which this
project would not have been successful.
Page |3
School Management System
PREFACE
Page |4
School Management System
INDEX
Page |5
School Management System
INDEX
1. INTRODUCTION 8
2. WHY VB 6.0 ? 11
3. REVIEW OF LITERATURE 14
4. FEASIBILITY STUDY 18
5. FORMULATION OF PROBLEM 22
6. SYSTEM REQUIREMENTS 25
7. GANTT CHART 27
8. E-R DIAGRAM 30
11. TABLES 46
Page |6
School Management System
14. TESTING 66
TABLES 74
FORMS 87
REPORTS 126
Page |7
School Management System
INTRODUCTION
Page |8
School Management System
INTRODUCTION
There is also a need to maintain the record of the students / teachers , So these
records are maintained in the registers. So, it is quite difficult and a tedious task to Keep and
mainten the records of students and teachers.
That’s why there is great need for a computerized system which helps the
user to maintain the records easily. And the school management system is the resulted
computerized system ,which we are introducing , that helps the user to maintain these records.
This project captures the real problem of school management system The
school management is not the consideration for this project .it is just general purpose application
software for generic need of any school management system.
Page |9
School Management System
The presented project is a full fledged application for School management System which
covers following tasks:
Student details
General details
Marks details
Reports
Staff details
Type ( Teaching or Non-teaching )
General details
Profession details
Reports
Class details
Class structure
Class details
Reports
Fees details
Fees structure
Fees Payment
Reports
Salary details
Salary entry
Salary Report
P a g e | 10
School Management System
Why in VB?
P a g e | 11
School Management System
Why in VB?
Visual Basic is a Windows based language that is generally used for the
development of Windows application. It comes with all the tools you need to build main stream
Windows application .It provides various advanced features that weren’t available in the
previous of the programming languages.
Visual Basic provide integrated development environment (IDE) for the visual
development of Windows application. Visual basic language is also an event driven language.
Also since the base of our software “encryption Decryption “is Data
security and authentication and Visual Basic provide this feature also. User interaction is main
thing in our project that is providing Visual Basic.
P a g e | 12
School Management System
FUNCTIONS OF MS ACCESS :
Data Defination :-
MS ACCESS lets a user defined the structure & organization of the stored data relationships
among the stored data items.
Data Retrieval:-
MS ACCESS allows a user or an application program to retrieve stored data from the database &
use it.
Data Manipulation:-
MS ACCESS allows a user or an application program to update the database by adding new
data, removing old data & modifying previously stored data.
Access Control:-
MS ACCESS can be used to restrict a user’s ability to retrieve add & modify data, protecting
stored data against unauthorized access.
Data Sharing:-
MS ACCESS is used to coordinate data sharing by concurrent users, ensuring that they do not
interfere with one another.
Data Integrity:-
MS ACCESS defines integrity constrains in the database, protecting it from corruption due to
inconsistant data.
P a g e | 13
School Management System
REVIEW OF
LITERATURE
P a g e | 14
School Management System
REVIEW OF LITERATURE
SOFTWARE DEVELOPMENT
The foundation of the software engineering process is the process layer. Software Engg.
Process that holds technology layer together for the timely development of
P a g e | 15
School Management System
Computer software Process defines a framework for a set of key process Area that must
be establish for effective delivery of software engineering technology.
Software engineering Methods the technicalities involve in the software making process.
Methods include:
Requirement analysis.
Design
Program construction.
Testing and support.
Software engineering tools which is the third layer provide automated or semi automated support
for the process or method .when tools are integrated so that information created by one tool can
be used by another ,a system for the support of software development, called computer aided
software engineering.
The work associated with software Engg. Can be categorized into three generic phases:
1)Definition Phase: focused on what ,i.e. during definition ,the software attempts to
identify what information is to be processed ,what functions and performance are desired ,what
system behavior can be expected ,what interfaces are to be established ,what design constraint
exist ,and what validation criteria are required to define successful system.
P a g e | 16
School Management System
characterized ,how design will be translated into a programming language ,and how testing will
be performed .
3)Support Phase : focuses on the change associated with error correction ,adaptations
are required as the software’s environment involves , and changes due to enhancements brought
about by changing customer requirement. Software development is a cyclic process and it
proceeds in step by step, manner. There are many models has been developed & they are failed
due to some drawbacks like they do not fulfill the requirement ,risk factor more, can not be
understand by customer , finally incremental model & spiral model has been developed which
fulfill most of the requirement & risk factors are less.
P a g e | 17
School Management System
FEASIBILITY
STUDY
P a g e | 18
School Management System
FEASIBILITY STUDY
System analysis:
Identification of need:
P a g e | 19
School Management System
Feasibility Study:
Economic Feasibility:
1. Direct cost: the hardware required for this project is any computer having
configuration of minimum 2gb hard disk, 16mb Ram, LAN card, modem which
will cost around 40 thousand rupees.
2. Tangible cost: time required for this project is around one month. Cost – benefit
analysis is complicated by criteria that vary with the characteristics of the system
to be developed, the relative size of project and the expected return on investment
derived as part of an office’s strategic plan.
P a g e | 20
School Management System
Technical Feasibility:
Behavioral Feasibility:
1. As the project very easy for our project to implement with ease and
convenience.
2. Behavioral analysis is an operational principle for all requirements
analysis methods.
3. The state – transmission diagram represents the behavior of system by
depicting its status and the events that events that use the system to
change state.
P a g e | 21
School Management System
FORMULATION OF
PROBLEM
P a g e | 22
School Management System
FORMULATION OF PROBLEM
Requirement Analysis :
Our aim is to make a software for managing different tasks and information about
students , teachers and various of the management of school. To gather all the requirements first
the problem is decomposed in many sub problems which can be specify their own requirement
separately.
Problem Decomposition:
This is also called partitioning or problem elaboration and forms the core of requirement
analysis. Decomposition as applied in two major areas.
When analyze the requirements for the school management system then we have to
consider all the functions that the software has to perform regarding the different functions
performed in the school and to manage the records of all students and all teachers of the school.
We partition the complete requirements into different parts like
P a g e | 23
School Management System
So we must have separate record for each category and thus maintain files of student
records and teachers record.
P a g e | 24
School Management System
MINIMUM
SYSTEM
REQUIREMENTS
P a g e | 25
School Management System
SOFTWARE
HARDWARE
P a g e | 26
School Management System
GANTT CHART
P a g e | 27
School Management System
P a g e | 28
School Management System
GANTT CHART
P a g e | 29
School Management System
E-R DIAGRAM
P a g e | 30
School Management System
An entity is a “thing” or “object” in the real world that is distinguishable from all set of
objects. An entity set is a set of entities of the same type that share same properties, or attributes.
An entity is represented by a set of attributes.
E-R diagram is a relationship between two entity sets. E-R diagram can express the overall
structure of a database graphically. E-R diagrams are simple and clear.
Symbols used:
P a g e | 31
School Management System
P a g e | 32
School Management System
L_name
Class_ID
M_name Father
Subject
Div
Strength F_name Mother
Std N
CLASS 1 STUDY STUDENT
Address
N Phone
Dept_ID Name Description
DEPARTMENT
HAS 1
IN
Staff_ID M
TEACHES
HAS
STAFF
Type
PAYS
NON - TEACHING 1
TEACHING (Teacher) 1
FEES GUARDIAN
F_name Phone
F_name
Date_of_
M_name Student_ID
M_name Payment Name
email
L_name
L_name
Relationship
P a g e | 33
School Management System
DATA FLOW
DIAGRAM (DFD)
P a g e | 34
School Management System
A data flow diagram (DFD) is a graphical system model that shows all of the main
requirements for an information system in one diagram: inputs and outputs, processes, and data
storage. A DFD describes what data flows rather than how it is processed. Everyone working on
a development project can see all aspects of the system working together at once with DFD. That
is one reason for its popularity. The DFD is also easy to read because it is graphical model.
The DFD is mainly used during problem analysis. End Users, management, and all
information systems workers typically can read and interpret the DFD with minimal training.
Symbols used:
P a g e | 35
School Management System
Leveling of DFD’s:
If one DFD contains all the details then it will have too many
processes and data flow lines. Thus, it will be complicated and it will be difficult to understand
all the data flows and their processing. To overcome this first an overview of problem is
represented using context diagram and the process is expanded into a connected set of processes.
P a g e | 36
School Management System
Leveling rules:
1) New files which are not referred to in a process may appear in equivalent DFD of that process.
This implies that this file is local to the process and will not appear in the context diagram.
2) The number of processes at each level is usually kept small.
3)This is mainly to aid understanding of each level.
P a g e | 37
School Management System
P a g e | 38
School Management System
Level 1 DFD
Context diagrams are diagrams where the whole system is represented as a single
process. A level 1 DFD notates each of the main sub-processes that together form the complete
system. We can think of a level 1 DFD as an „exploded view of thecontext diagram.You may
also need some downward leveling. That is, the processes identified in the preliminary DFD may
not turn out to be primitive processes and may require downward partitioning into lower-level
DFDs.
P a g e | 39
School Management System
Level 1 DFD
Explanation : Here the system user will try to log in by entering his/her user_ID and password.
If the user is valid the user will gain access to the system according to its privilege. But if the
user is invalid, he/she may be not be allowed access to the system.
Explanation : Here a student will apply for its enrollment in the school. The system will check
the availability status of the seat of the respective class. If there is availability of seat, the student
will be enrolled to the school. But if there is non-availability of seat then the enrollment will be
denied.
P a g e | 40
School Management System
Explanation : Here the student will pay the fees. System will check the student_ID as well as the
current fees_structure of the class. Accordingly the system will accept the fees and provide the
student with the receipt.
Explanation : here the staff(generally user with administrator privilege) will the create and
manage the new department of the school according to the need of the school for department.
Explanation : here the staff (generally user with administrator privilege) will appoint a new
employee (teaching or non-teaching) according the need of the school and will assign the
employee accordingly to the department which he/her will be managing/serving.
P a g e | 41
School Management System
MENU TREE
P a g e | 42
School Management System
Main menu
File
Administration
o System user
o New user
o User report
System lock
Logout
Exit
Transaction
Student
o Student enroll
o Create result
o Delete student
o Student attendance
Staff
o Staff enroll
o Daily attendance
o Salary
o Delete staff
Department
o New department
P a g e | 43
School Management System
o Edit department
Fee
o Fee payment
o Fee structure
Class
o Add class
o Edit class
o Find class
View
Student Information
o General Info
o Fee record
o Attendance
Staff Information
o General Info
o Attendance
Department
Report
Student
o Information
o Fees
P a g e | 44
School Management System
o Result
Staff
o Staff Info
o Salary Info
Class
Utilities
Notepad
Calculator
Backup Database
Help
About
Acknowledgement
HelponShortcuts
Online Help!
P a g e | 45
School Management System
TABLES
P a g e | 46
School Management System
TABLES
Student_mstr :
student_id
First_name
Middle_name
Last_name
Std
Div
roll_no
mother_name
father_name
name_of_gardian
Permanent_address
city
State
pincode
phone_no
mobile_no
Email
gender
place_of_birth
Nationality
Age
Name_of_previous_School
Address_of_previous_School
School_mention_above_was_Recognise
STD_in_previous_School
Year_of_passing
Promotion_Was_Granted
Action
P a g e | 47
School Management System
Relationship_With_student
Occupation
annual_Income
Number_of_Dependent_in_family
Phone_Home
Phone_Office
Date_of_Admission
Religion
Mother_tongue
Category
DOB
specified_category
Caste
picture
Staff_mstr :
staff_id
fname
mname
lname
dob
sex
address
city
state
pincode
con_no
mob_no
email
nationality
birthplace
age
religion
caste
ifspecify
P a g e | 48
School Management System
civilstatus
type
department_id
department_name
qualification
summaryofqual
post
enroll_yr
jobstatus
enrollDate
salary
cont_term
pre_exp
no_of_yr
remark
pre_employr
Subject1
Subject2
Subject3
Subject4
picture
Class_mstr :
Class_ID
Std
Div
Number_Of_student
Student_Strength
Class_shedule
Acemedic_Behaviour
Class_requirenment
Subject1 to Subject12
Department
department_ID
department_name
P a g e | 49
School Management System
Description
Fees_payment
student_ID
Paid
Due
Fees_date
Fees_time
total
Fees_stru
Class_ID
Std
Tution_fees
General_fund
Annual_charges
Examination fee
Computer_fee
Admission_fee
Total
Result
Student_id
Std
Div
Roll_no
Exam_date
Subject
Exam_name
Max_marks
Marks_obt
Result
createdBy
Stu_att:
Student_id
Date
P a g e | 50
School Management System
status
user_mstr :
user_id
password
staff_id
acct_typ
Salary :
Staff_id
salPaid
salMonth
salYear
User_log :
userID
sessionStart
sessionEnd
Description
P a g e | 51
School Management System
DATA DICTIONARY
P a g e | 52
School Management System
P a g e | 53
School Management System
Staff_mstr: staff_id + fname + mname + lname + dob + sex + address + city + state + pincode +
con_no + mob_no + email + nationality + birthplace + age + religion + caste + ifspecify + civilstatus + type
+ department_id + department_name + qualification + summaryofqual + post + enroll_yr + jobstatus +
enrollDate + salary + cont_term + pre_exp + no_of_yr + remark + pre_employr + Subject1 + Subject2 +
Subject3 + Subject4 + picture
P a g e | 54
School Management System
P a g e | 55
School Management System
P a g e | 56
School Management System
P a g e | 57
School Management System
P a g e | 58
School Management System
P a g e | 59
School Management System
FORM
SPECIFICATION
P a g e | 60
School Management System
FORM SPECIFICATION
There are 42 forms in this project. The main functionality of each form is briefly
described here :
P a g e | 61
School Management System
teaching staff may range from clerk to all that persons related for the management
of the school.
P a g e | 62
School Management System
Class (AddClass)
This form lets you create class representing the actual scenarios of the class in the
School with lots of other details as well.
P a g e | 63
School Management System
P a g e | 64
School Management System
P a g e | 65
School Management System
TESTING
P a g e | 66
School Management System
TESTING
In a software development project, errors can be injected at any stage during the
development. For each phase of the software development cycle different techniques are used
for detecting and eliminating errors that originate in that phase. However, some requirement
errors and design errors are likely to remain undetected. Ultimately these errors will be reflected
in the code. Testing performs a very critical role for quality assurance and for ensuring the
reliability of the software.
During testing, the program to be tested is executed with a set of test cases. It is
evaluated to determine if the program is performing as it is expected to. Clearly, the success of
testing in revealing errors in a program depends critically on the test cases.
TEST PLAN :
A test plan was designed to test the system to ensure integrity, security, validity,
reliability and concurrency.
The different testing strategies that have been used in this project are as follows :
Unit Testing
Integration Testing
Validation Testing
System Testing
Black Box Testing
White Box Testing
Gray Box Testing
Alpha Testing
Beta Testing
Regression Testing
All the above mentioned testing strategies were implemented to test the system.
P a g e | 67
School Management System
UNIT TESTING
Unit testing was performed in this project by executing each line of the code. Testing
begins by going to the main and then the control passes to the next line of the code that is
executed next and so on until the entire code has been executed. For unit testing, functional
testing will be used. The goal is to check the functionality of the modules whether they produce
the intended results or not. Here each teak was tested independently. Tests were designed and
executed for each task. Task testing uncovers errors in logic and function but will not uncover
timing and behavioral errors.
INTEGRATION TESTING
Bottom-up Testing
Top-down Testing
This project has been tested using the bottom-up approach. The smaller modules or units were
tested first and finally the main modules were tested as a whole.
VALIDATION TESTING
The next testing strategy to be used was validation testing. This testing involves
checking the system for its validity i.e. it is a set of activities that ensure that the system that has
been built is traceable to customer requirements. Software validation is performed to
demonstrate conformity with given requirements. For this, a test plan that outlines the classes of
tests to be conducted and a test procedure that defines specific test cases to be used were
P a g e | 68
School Management System
designed. Both the plan and the procedure were designed so as to ensure that all functional
requirements are satisfied, all behavioral characteristics are achieved, all performance
requirements are attained, documentation is correct and human-engineered and other
requirements i.e. transportability, compatibility, error-recovery, maintainability are met.
SYSTEM TESTING
The last testing strategy i.e. system testing was implemented by compiling and running
the entire system as a whole.
All errors and deviations from specifications and norms encountered while implementing
the testing strategies mentioned above were corrected prior to the implementation of the system
at the company.
For system testing software and hardware were integrated and a full range of system tests
was conducted in an attempt to uncover errors at the software / hardware interface.
White box and Black box testing are terms used to describe the point of view that a test
engineer takes when designing test cases.
Testing treats the software as a black-box without any understanding as to how the
internals behave. It aims to test the functionality according to the requirements. Thus, the tester
inputs data and only sees the output from the test object. This level of testing usually requires
P a g e | 69
School Management System
thorough test cases to be provided to the tester who then can simply verify that for a given input,
the output value (or behavior), is the same as the expected value specified in the test case.
Testing, however, is when the tester has access to the internal data structures, code, and
algorithms. For this reason, unit testing and debugging can be classified as white-box testing and
it usually requires writing code, or at a minimum, stepping through it, and thus requires more
knowledge of the product than the black-box tester. If the software in test is an interface or API
of any sort, white-box testing is almost always required.
In recent years the term grey box testing has come into common usage. This involves
having access to internal data structures and algorithms for purposes of designing the test cases,
but testing at the user, or black-box level. Manipulating input data and formatting output do not
qualify as grey-box because the input and output are clearly outside of the black-box we are
calling the software under test. This is particularly important when conducting integration
testing between two modules of code written by two different developers, where only the
interfaces are exposed for test.
ALPHA TESTING
P a g e | 70
School Management System
BETA TESTING
Beta testing comes after alpha testing. Versions of the software, known as beta versions,
are released to a limited audience outside of the programming team. The software is released to
groups of people so that further testing can ensure the product has few faults or bugs.
Sometimes, beta versions are made available to the open public to increase the feedback field to
a maximal number of future users. It should be noted that although both Alpha and Beta are
referred to as testing it is in fact use immersion. The rigors that are applied are often
unsystematic and many of the basic tenets of testing process are not used. The alpha and beta
period provides insight into environmental and utilization conditions that can impact the
software.
REGRESSION TESTING
Verification : Have we built the software right (i.e., does it match the specification) ? Software
testing is just one kind of verification, which also uses techniques such as reviews, inspections,
and walkthroughs.
P a g e | 71
School Management System
Validation : Have we built the right software (i.e., is this what the customer wants) ?
P a g e | 72
School Management System
Output Screen
P a g e | 73
School Management System
TABLES
P a g e | 74
School Management System
Student_mstr :
P a g e | 75
School Management System
Staff_mstr :
P a g e | 76
School Management System
Department :
P a g e | 77
School Management System
Class_mstr :
P a g e | 78
School Management System
Student Attendance :
P a g e | 79
School Management System
Staff Attendance :
P a g e | 80
School Management System
Class Structure :
P a g e | 81
School Management System
Fees Payment :
P a g e | 82
School Management System
Result :
P a g e | 83
School Management System
Staff Salary :
P a g e | 84
School Management System
User :
P a g e | 85
School Management System
UserLog :
P a g e | 86
School Management System
FORMS
P a g e | 87
School Management System
P a g e | 88
School Management System
P a g e | 89
School Management System
P a g e | 90
School Management System
P a g e | 91
School Management System
P a g e | 92
School Management System
P a g e | 93
School Management System
P a g e | 94
School Management System
About form :
P a g e | 95
School Management System
Acknowledgement form :
P a g e | 96
School Management System
P a g e | 97
School Management System
P a g e | 98
School Management System
P a g e | 99
School Management System
Class Report :
P a g e | 100
School Management System
P a g e | 101
School Management System
P a g e | 102
School Management System
P a g e | 103
School Management System
P a g e | 104
School Management System
P a g e | 105
School Management System
P a g e | 106
School Management System
P a g e | 107
School Management System
Help form :
P a g e | 108
School Management System
P a g e | 109
School Management System
P a g e | 110
School Management System
P a g e | 111
School Management System
P a g e | 112
School Management System
P a g e | 113
School Management System
P a g e | 114
School Management System
P a g e | 115
School Management System
P a g e | 116
School Management System
P a g e | 117
School Management System
Report form:
P a g e | 118
School Management System
P a g e | 119
School Management System
P a g e | 120
School Management System
P a g e | 121
School Management System
P a g e | 122
School Management System
P a g e | 123
School Management System
P a g e | 124
School Management System
P a g e | 125
School Management System
REPORTS
P a g e | 126
School Management System
Class report
P a g e | 127
School Management System
Fees information
P a g e | 128
School Management System
P a g e | 129
School Management System
Staff information
P a g e | 130
School Management System
Staff salary
P a g e | 131
School Management System
Student informatoin
P a g e | 132
School Management System
Result report
P a g e | 133
School Management System
CODING
P a g e | 134
School Management System
CODING
SchoolMain :
Option Explicit
frmAbout.Show
End Sub
frmsturegister1.Show
End Sub
'frmPdf.Show
End Sub
Call mnuquit_Click
End Sub
P a g e | 135
School Management System
End Sub
frmChgPass.Show
End Sub
Call mnulogout_Click
End Sub
Label5.Caption = Date
horizontal.Show
Vertical.Show
'========
With lvMenu
P a g e | 136
School Management System
'For Sales
End With
End Sub
P a g e | 137
School Management System
End Select
End Sub
End
End Sub
editclass.Show
End Sub
frm_stu_attendance.Show
End Sub
frmAck.Show
End Sub
BackupDatabase.Show
End Sub
P a g e | 138
School Management System
Exit Sub
Err:
End Sub
Addclass.Show
End Sub
MsgBox "Please for any Query " & vbCrLf & "----------------------------- " & vbCrLf & "Just e-
mail me at : sms.shakeal@gmail.com" & vbCrLf & vbCrLf & " Saad Ansari Email :
saadansari12345@gmail.com", vbOKOnly, "Online Help!"
End Sub
frmstffattendance.Show
End Sub
frmedtDep.Show
P a g e | 139
School Management System
End Sub
Feespayment.Show
End Sub
feesstu.Show
End Sub
Findclass.Show
End Sub
frmUserAdd.Show
End Sub
frmStffGeneral.Show
End Sub
frmAbout.Show
P a g e | 140
School Management System
End Sub
frmIndfees.Show
End Sub
Load frmLock
frmLock.Show vbModal
End Sub
Dim rep
rep = MsgBox("Are you sure you want to Logout ?", vbYesNo, "Confirm Logout")
Call connect
With rs_find
.AddNew
.Fields("UserID").Value = SchoolMain.Label2.Caption
.Fields("SessionStart").Value = frmLogin.lblval.Caption
.Fields("SessionEnd").Value = Now
P a g e | 141
School Management System
.Update
.Close
End With
SchoolMain.Label2.Caption = ""
SchoolMain.Label5.Caption = ""
SchoolMain.Label6.Caption = ""
SchoolMain.Label8.Caption = ""
SchoolMain.Timer1.Enabled = False
MsgBox "THANK YOU FOR USING NLES AUTOMATED SYSTEM" & vbCrLf &
vbCrLf & " SESSION ENDS AT : " & Now, vbInformation + vbOKOnly, "SUCCESSFULLY
LOGGED OUT"
Unload frmsturegister1
Unload frmsturegister2
Unload Addclass
Unload BackupDatabase
Unload editclass
Unload Feespayment
Unload feesstu
Unload Findclass
Unload frm_stu_attendance
Unload frmAbout
Unload frmAck
P a g e | 142
School Management System
Unload frmChgPass
Unload frmclassrep
Unload frmDepartment
Unload Frmeditstaff
Unload frmedtDep
Unload frmHlp
Unload frmIndfees
Unload frmNewDepart
Unload frmResult
Unload frmResultRep
Unload frmSchoolInfo
Unload frmstffattendance
Unload frmStffGeneral
Unload frmStffSalary
Unload frmstudel
Unload frmStudFull
Unload frmStudGeneral
Unload frmSysUser
Unload frmUserAdd
Unload horizontal
Unload Stu_att_detail
Unload teach_att_detail
Unload teachregister
Unload teachregister2
P a g e | 143
School Management System
Unload teachsuspend
Unload Vertical
Unload classreport
Unload druser
Unload IndFees
Unload ResultReport
Unload StaffReport
Unload StudentFees
Unload StudentReport
SchoolMain.Enabled = False
frmLogin.Show
frmLogin.txtuid.Text = ""
frmLogin.txtpassword.Text = ""
Else
GoTo dude
End If
Call Login
End If
dude:
Exit Sub
End Sub
P a g e | 144
School Management System
frmNewDepart.Show
End Sub
Exit Sub
Err:
MsgBox "You don't have Notepad installed in your computer.", vbExclamation, "Notepad
Missing"
End Sub
Dim rep
rep = MsgBox("Are you sure you wanna Quit ? ", vbExclamation + vbYesNo, "Program Exit")
Call connect
With rs_find
.AddNew
P a g e | 145
School Management System
.Fields("UserID").Value = SchoolMain.Label2.Caption
.Fields("SessionStart").Value = frmLogin.lblval.Caption
.Fields("SessionEnd").Value = Now
.Update
.Close
End With
End If
MsgBox "THANK YOU FOR USING NLES AUTOMATED SYSTEM" & vbCrLf & vbCrLf
& " SESSION ENDS AT : " & Now, vbInformation + vbOKOnly, "SESSION SUCCESSFULLY
TERMINATED"
End
Else
Exit Sub
End If
Exit Sub
handle:
End Sub
frmclassrep.Show
End Sub
P a g e | 146
School Management System
AdodbConnection.Init_studFees_Report
End Sub
frmResultRep.Show
End Sub
AdodbConnection.Init_student_Report
End Sub
AdodbConnection.Init_user_Report
End Sub
frmResult.Show
End Sub
frmResult.Show
End Sub
P a g e | 147
School Management System
frmStffSalary.Show
End Sub
frmStffSalary.Show
End Sub
frmHlp.Show
End Sub
frmsturegister1.Show
End Sub
teach_att_detail.Show
End Sub
AdodbConnection.Init_staff_Report
End Sub
P a g e | 148
School Management System
teachregister.Show
End Sub
teachsuspend.Show
End Sub
Stu_att_detail.Show
End Sub
frmstudel.Show
End Sub
AdodbConnection.Init_studFees_Report
End Sub
frmStudGeneral.Show
End Sub
P a g e | 149
School Management System
frmSysUser.Show
End Sub
frmDepartment.Show
End Sub
Label6.Caption = Time$
End Sub
NLESLBL.Left = NLESLBL.Left - 100 'code to move the newlife tag in the form
NLESLBL.Left = Picture1.Width
End If
End Sub
P a g e | 150
School Management System
Student Registration :
Student Register 1
Option Explicit
Dim no As Integer
cd1.ShowOpen
str = cd1.FileName
Image1.Picture = LoadPicture(str)
End Sub
Image1.Picture = LoadPicture()
End Sub
P a g e | 151
School Management System
MsgBox "Please Fill all the entries", vbInformation + vbOKOnly, "FIELD EMPTY"
Else
Me.Hide
frmsturegister2.Show
End If
End Sub
Unload Me
End Sub
cdb.ShowOpen
pcbox.Picture = LoadPicture(cdb.FileName)
pic_name = cdb.FileName
pic_ext = Right(cdb.FileTitle, 4)
pic_changed = True
P a g e | 152
School Management System
End If
End Sub
pic_name = ""
pic_changed = True
End Sub
Unload Me
End Sub
Me.Hide
frmsturegister2.Show
End Sub
Dim a, b, c As Integer
a = Format(dtdob.Value, "yyyy")
b = Format(Date, "yyyy")
c=b-a
P a g e | 153
School Management System
Texage.Text = c
End Sub
Call connect
con.Refresh
With rs_find
.MoveLast
If IsNull(.Fields("student_id").Value) Then
Texstu_id.Text = 1
Else
no = .Fields("student_id") + 1
Texstu_id.Text = no
End If
.Close
End With
End Sub
KeyAscii = number(KeyAscii)
End Sub
P a g e | 154
School Management System
KeyAscii = character(KeyAscii)
End Sub
KeyAscii = character(KeyAscii)
End Sub
KeyAscii = character(KeyAscii)
End Sub
KeyAscii = character(KeyAscii)
End Sub
KeyAscii = number(KeyAscii)
End Sub
KeyAscii = number(KeyAscii)
End Sub
P a g e | 155
School Management System
KeyAscii = number(KeyAscii)
End Sub
Student Register 2
Option Explicit
frmsturegister1.Show
Unload Me
End Sub
Label28.Visible = True
TexCat.Visible = True
End If
End Sub
Texroll.Text = ""
Dim no
With rs_roll
P a g e | 156
School Management System
.Open "select * from student_mstr where Std='" & ComStd.Text & "' and Div = '" &
ComDiv.Text & "'", con, adOpenDynamic, adLockPessimistic
.MoveLast
no = Val(.Fields("roll_no")) + 1
Texroll.Text = no
Else
Texroll.Text = 1
End If
.Close
End With
End Sub
Exit Sub
End If
End If
P a g e | 157
School Management System
MsgBox "Please Select the appropriate value from the dropdown box"
Exit Sub
End If
End If
Next
Call connect
With rs_student
.AddNew
.Fields("First_name") = frmsturegister1.Texfname.Text
.Fields("DOB") = frmsturegister1.dtdob.Value
.Fields("Middle_name") = frmsturegister1.Texmname.Text
.Fields("Last_name") = frmsturegister1.Texlname.Text
.Fields("mother_name") = frmsturegister1.Texmotname.Text
.Fields("father_name") = frmsturegister1.Texfatname.Text
.Fields("name_of_gardian") = frmsturegister1.Texgarname.Text
.Fields("Permanent_address") = frmsturegister1.Texaddress.Text
.Fields("city") = frmsturegister1.Texcity.Text
.Fields("state") = frmsturegister1.Texstate.Text
.Fields("pincode") = frmsturegister1.Texpin.Text
.Fields("phone_no") = frmsturegister1.Texphone.Text
.Fields("mobile_no") = frmsturegister1.Texmobile.Text
.Fields("Email") = frmsturegister1.Texemail.Text
P a g e | 158
School Management System
.Fields("gender") = frmsturegister1.ComGen.Text
.Fields("place_of_birth") = frmsturegister1.TexPOB.Text
.Fields("Nationality") = frmsturegister1.Texnaton.Text
.Fields("Age") = frmsturegister1.Texage.Text
.Fields("student_id") = frmsturegister1.Texstu_id.Text
.Fields("Name_of_previous_School") = Texpresch.Text
.Fields("Address_of_previous_School") = Texaddpresch.Text
.Fields("STD_in_previous_School") = Texclasspre.Text
.Fields("Year_of_passing") = dtyrofpass.Value
.Fields("Relationship_With_student") = Texrelation.Text
.Fields("Occupation") = Texocc.Text
.Fields("annual_Income") = Texanullinc.Text
.Fields("Number_of_Dependent_in_family") = Texnodepend.Text
.Fields("Phone_Home") = Texphohome.Text
.Fields("Phone_Office") = Texphooffic.Text
.Fields("Religion") = Texrelig.Text
.Fields("Caste") = Texcast.Text
.Fields("Mother_tongue") = Texmottong.Text
.Fields("School_mention_above_was_Recognise") = Comsclrec.Text
.Fields("roll_no") = Texroll.Text
.Fields("Category") = ComCate.Text
.Fields("Std") = ComStd.Text
.Fields("Div") = ComDiv.Text
.Fields("Action") = Comact.Text
P a g e | 159
School Management System
.Fields("Date_of_Admission") = dtofadm.Value
.Fields("specified_category") = TexCat.Text
End If
.Update
End With
Dim rep
rep = MsgBox("Do you wish to enroll new student ?", vbInformation + vbYesNo, "CREATE
NEW")
Unload frmsturegister1
Unload Me
frmsturegister1.Show
Else
Unload frmsturegister1
Unload Me
End If
End Sub
P a g e | 160
School Management System
Unload frmsturegister1
Unload Me
End Sub
Texroll.Text = ""
ComDiv.Clear
Call connect
With rs_class
.Open "select distinct Div from class_mstr where Std = '" & ComStd.Text & "'", con,
adOpenDynamic, adLockPessimistic
Do Until .EOF
ComDiv.AddItem .Fields("Div")
.MoveNext
Loop
.Close
End With
End Sub
frmsturegister1.pcbox.Picture = LoadPicture(frmsturegister1.cdb.FileName)
P a g e | 161
School Management System
pic_name = frmsturegister1.cdb.FileName
pic_ext = Right(frmsturegister1.cdb.FileTitle, 4)
pic_changed = True
End If
Call connect
With rs_class
Do Until .EOF
ComStd.AddItem .Fields("Std")
.MoveNext
Loop
.Close
End With
End Sub
KeyAscii = number(KeyAscii)
End Sub
Texclasspre.Text = ""
P a g e | 162
School Management System
Texclasspre.SetFocus
End If
End Sub
KeyAscii = number(KeyAscii)
End Sub
KeyAscii = number(KeyAscii)
End Sub
KeyAscii = number(KeyAscii)
End Sub
KeyAscii = number(KeyAscii)
End Sub
P a g e | 163
School Management System
Staff Registration :
Staff Register 1
Option Explicit
Dim no As Integer
cdb.ShowOpen
pcbox.Picture = LoadPicture(cdb.FileName)
pic_name = cdb.FileName
pic_ext = Right(cdb.FileTitle, 4)
pic_changed = True
End If
End Sub
P a g e | 164
School Management System
pic_name = ""
pic_changed = True
End Sub
Exit Sub
End If
End If
MsgBox "Please Select the appropriate value from the dropdown box"
Exit Sub
End If
End If
Next
Me.Hide
teachregister2.Show
End Sub
P a g e | 165
School Management System
Unload Me
End Sub
Dim a, b, c As Integer
a = Format(DTPdob.Value, "yyyy")
b = Format(Date, "yyyy")
c=b-a
Texage.Text = c
End Sub
Call connect
con.Refresh
With rs_find
.MoveLast
If IsNull(.Fields("staff_id").Value) Then
Texid.Text = 1
Else
no = .Fields("staff_id") + 1
P a g e | 166
School Management System
Texid.Text = no
End If
.Close
End With
End Sub
KeyAscii = number(KeyAscii)
End Sub
KeyAscii = number(KeyAscii)
End Sub
KeyAscii = character(KeyAscii)
End Sub
KeyAscii = character(KeyAscii)
End Sub
KeyAscii = character(KeyAscii)
P a g e | 167
School Management System
End Sub
KeyAscii = number(KeyAscii)
End Sub
KeyAscii = number(KeyAscii)
End Sub
Staff Register 2
Option Explicit
teachregister.Show
unloa Me
End Sub
Unload teachregister
Unload Me
End Sub
P a g e | 168
School Management System
Exit Sub
End If
End If
MsgBox "Please Select the appropriate value from the dropdown box"
Exit Sub
End If
End If
Next
Call connect
With rs_staff
.AddNew
.Fields("staff_id").Value = teachregister.Texid.Text
P a g e | 169
School Management System
.Fields("fname") = teachregister.Texfname.Text
.Fields("mname") = teachregister.Texmname.Text
.Fields("lname") = teachregister.Texlname.Text
.Fields("dob") = teachregister.DTPdob.Value
.Fields("sex") = teachregister.Comsex.Text
.Fields("address") = teachregister.Texadd.Text
.Fields("city") = teachregister.Texcity.Text
.Fields("state") = teachregister.Texstate.Text
.Fields("pincode") = teachregister.Texpin.Text
.Fields("con_no") = teachregister.Texcn.Text
.Fields("mob_no") = teachregister.Texmo.Text
.Fields("email") = teachregister.Texemail.Text
.Fields("nationality") = teachregister.Texnat.Text
.Fields("birthplace") = teachregister.Texbp.Text
.Fields("age") = teachregister.Texage.Text
.Fields("religion") = teachregister.Texrel.Text
.Fields("caste") = teachregister.Texcast.Text
.Fields("civilstatus") = teachregister.Texcivil.Text
.Fields("type") = Comtype.Text
.Fields("department_id") = Comdepid.Text
.Fields("department_name") = Texdepname.Text
.Fields("qualification") = Texqual.Text
.Fields("summaryofqual") = Texsumqual.Text
.Fields("post") = Texpost.Text
P a g e | 170
School Management System
.Fields("enroll_yr") = Texenroll.Text
.Fields("jobstatus") = Comjob.Text
.Fields("enrollDate") = DTPendate.Value
.Fields("salary") = Texsal.Text
.Fields("cont_term") = DTPCT.Value
.Fields("pre_exp") = Comexp.Text
.Fields("no_of_yr") = Texnoyear.Text
.Fields("remark") = Texrem.Text
.Fields("pre_employr") = Texpre.Text
.Fields("Subject1") = Texsub1.Text
.Fields("Subject2") = Texsub2.Text
.Fields("Subject3") = Texsub3.Text
.Fields("Subject4") = Texsub4.Text
End If
.Update
.Close
P a g e | 171
School Management System
End With
End Sub
teachregister2.Texsub1.Text = "NiL"
teachregister2.Texsub1.Text = "NiL"
teachregister2.Texsub1.Text = "NiL"
teachregister2.Texsub1.Text = "NiL"
teachregister2.Texsub1.Enabled = False
teachregister2.Texsub2.Enabled = False
teachregister2.Texsub3.Enabled = False
teachregister2.Texsub4.Enabled = False
Else
teachregister2.Texsub1.Enabled = True
teachregister2.Texsub2.Enabled = True
teachregister2.Texsub3.Enabled = True
teachregister2.Texsub4.Enabled = True
End If
End Sub
With rs_find
P a g e | 172
School Management System
Do Until .EOF
Texdepname.Text = .Fields("department_name")
.MoveNext
Loop
.Close
End With
End Sub
Texnoyear.Enabled = True
Texrem.Enabled = True
Texpre.Enabled = True
Else
Texnoyear.Text = "NiL"
Texrem.Text = "NiL"
Texpre.Text = "NiL"
Texnoyear.Enabled = False
Texrem.Enabled = False
Texpre.Enabled = False
End If
P a g e | 173
School Management System
End Sub
teachregister.pcbox.Picture = LoadPicture(teachregister.cdb.FileName)
pic_name = teachregister.cdb.FileName
pic_ext = Right(teachregister.cdb.FileTitle, 4)
pic_changed = True
End If
With rs_find
Do Until .EOF
Comdepid.AddItem .Fields("department_id")
.MoveNext
Loop
.Close
End With
End Sub
KeyAscii = number(KeyAscii)
End Sub
P a g e | 174
School Management System
KeyAscii = number(KeyAscii)
End Sub
KeyAscii = number(KeyAscii)
End Sub
P a g e | 175
School Management System
Creating Class :
Option Explicit
Dim no As Integer
cmdSav.Enabled = True
Command4.Enabled = True
cmdclos.Enabled = False
Texclassid.locked = False
Texstd.locked = False
Texdiv.locked = False
TexPerstu.locked = False
Texclassrec.locked = False
sub1.locked = False
sub2.locked = False
sub3.locked = False
sub4.locked = False
sub5.locked = False
sub6.locked = False
sub7.locked = False
sub8.locked = False
P a g e | 176
School Management System
sub9.locked = False
sub10.locked = False
sub11.locked = False
sub12.locked = False
Comsch.locked = False
Comacdbehav.locked = False
Texstd.Text = ""
Texdiv.Text = ""
TexPerstu.Text = ""
Texclassrec.Text = ""
sub1.Text = ""
sub2.Text = ""
sub3.Text = ""
sub4.Text = ""
sub5.Text = ""
sub6.Text = ""
sub7.Text = ""
sub8.Text = ""
sub9.Text = ""
sub10.Text = ""
sub11.Text = ""
sub12.Text = ""
cmdSav.Enabled = True
cmdAdd.Enabled = False
P a g e | 177
School Management System
Call connect
End Sub
Dim I As Integer
For I = 0 To List1.ListCount - 1
List1.RemoveItem I
End If
Next
End Sub
Unload Me
End Sub
Call connect
With rs_find
.Open "select * from class_mstr where Std = '" & Texstd.Text & "' and Div = '" & Texdiv.Text &
"'", con, adOpenStatic, adLockOptimistic
.Close
P a g e | 178
School Management System
Texstd.Text = ""
Texdiv.Text = ""
Exit Sub
End If
.Close
End With
TexPerstu.Text = "" Or _
MsgBox "All fields are Mandatory to filled", vbInformation + vbOKOnly, "Field Empty"
ElseIf sub1.Text = "" And sub2.Text = "" And sub3.Text = "" And sub4.Text = "" And _
sub5.Text = "" And sub6.Text = "" And sub7.Text = "" And sub8.Text = "" _
And sub9.Text = "" And sub10.Text = "" And sub11.Text = "" And sub12.Text = "" Then
MsgBox "please add atleast one subject ", vbInformation + vbOKOnly, "Subject Field Empty"
Else
Call connect
With rs_class
.AddNew
.Fields("Class_ID") = Texclassid.Text
P a g e | 179
School Management System
.Fields("Std") = Texstd.Text
.Fields("Div") = Texdiv.Text
.Fields("Student_Strength") = TexPerstu.Text
.Fields("Class_shedule") = Comsch.Text
.Fields("Acemedic_Behaviour") = Comacdbehav.Text
.Fields("Class_requirenment") = Texclassrec.Text
.Fields("Subject1") = sub1.Text
.Fields("Subject2") = sub2.Text
.Fields("Subject3") = sub3.Text
.Fields("Subject4") = sub4.Text
.Fields("Subject5") = sub5.Text
.Fields("Subject6") = sub6.Text
.Fields("Subject7") = sub7.Text
.Fields("Subject8") = sub8.Text
.Fields("Subject9") = sub9.Text
.Fields("Subject10") = sub10.Text
.Fields("Subject11") = sub11.Text
.Fields("Subject12") = sub12.Text
.Update
.Close
End With
Unload Me
End If
P a g e | 180
School Management System
End Sub
cmdSav.Enabled = False
Command4.Enabled = False
cmdclos.Enabled = True
cmdAdd.Enabled = True
End Sub
Call connect
With rs_feesfind
Dim c As Double
c = Val(comstffid.Text)
.Open "select * from staff_mstr where staff_id =" & c & " ", con, adOpenDynamic,
adLockPessimistic
Do Until .EOF
Texteach.Text = .Fields("lname").Value & " " & .Fields("fname").Value & " " &
.Fields("mname").Value
.MoveNext
Loop
.Close
P a g e | 181
School Management System
End With
Exit Sub
handle:
End Sub
Call connect
con.Refresh
With rs_find
.MoveLast
If IsNull(.Fields("Class_ID").Value) Then
Texclassid.Text = 1
Else
no = .Fields("Class_ID") + 1
Texclassid.Text = no
End If
.Close
End With
End Sub
P a g e | 182
School Management System
KeyAscii = uppercharacter(KeyAscii)
End Sub
KeyAscii = number(KeyAscii)
End Sub
KeyAscii = number(KeyAscii)
End Sub
P a g e | 183
School Management System
Creating Department :
Unload Me
End Sub
Call connect
With rs_dep
.AddNew
.Fields("department_id") = Texdid.Text
.Fields("department_name") = Texdn.Text
.Fields("description") = Texdes.Text
.Update
.Close
End With
Command2.Enabled = True
Command1.Enabled = False
Dim rep
rep = MsgBox("Record Succesfully Created " & vbCrLf & "Would you like to create new
department ?", vbInformation + vbYesNo, "RECORD CREATED")
P a g e | 184
School Management System
Unload Me
Call SchoolMain.mnuNewDepart_Click
Else
Unload Me
End If
End Sub
Texdn.locked = False
Texdes.locked = False
Texdn.Text = ""
Texdes.Text = ""
Command1.Enabled = True
Command2.Enabled = False
End Sub
Call CenterForm(frmNewDepart)
Call connect
con.Refresh
With rs_find
P a g e | 185
School Management System
.MoveLast
If IsNull(.Fields("department_id").Value) Then
Texdid.Text = 1
Else
no = .Fields("department_id") + 1
Texdid.Text = no
End If
.Close
End With
End Sub
P a g e | 186
School Management System
Creating Result:
Unload Me
End Sub
Exit Sub
End If
Exit Sub
End If
Exit Sub
End If
P a g e | 187
School Management System
Call connect
rs_find.Open "select * from result where student_id= " & Val(stu_id.Text) & " and exam_name=
'" & comExamnm.Text & "' and Std='" & ComStd.Text & "' and Div='" & ComDiv.Text & "' and
roll_no= '" & comRoll.Text & "' and subject='" & comSub.Text & "' and exam_date= '" &
Format(dtExam, "yyyy") & "'", con, adOpenDynamic, adLockPessimistic
rs_find.Close
Exit Sub
End If
Dim a As Integer
a = comSub.ListCount
Label4.Caption = a
With rs_find
.AddNew
.Fields("student_id") = stu_id.Text
.Fields("Std") = ComStd.Text
.Fields("Div") = ComDiv.Text
.Fields("roll_no") = comRoll.Text
P a g e | 188
School Management System
.Fields("subject") = comSub.Text
.Fields("exam_name") = comExamnm.Text
.Fields("max_marks") = txtMax.Text
.Fields("marks_obt") = txtMarkObt.Text
.Fields("result") = comRes.Text
.Fields("createdBy") = SchoolMain.Label2.Caption
.Update
.Close
comSub.RemoveItem comSub.ListIndex
End With
End Sub
comRoll.Clear
comSub.Clear
Call connect
With rs_find
.Open "select roll_no from student_mstr where Std='" & ComStd.Text & "' and Div ='" &
ComDiv.Text & "'", con, adOpenDynamic, adLockPessimistic
Do Until .EOF
comRoll.AddItem .Fields("roll_no").Value
.MoveNext
P a g e | 189
School Management System
Loop
.Close
End With
End Sub
txtMax.Text = 40
txtMax.Text = 40
txtMax.Text = 100
txtMax.Text = 100
End If
End Sub
comSub.Clear
stu_id.Text = ""
lblnm.Caption = ""
Call connect
P a g e | 190
School Management System
With rs_find
Do Until .EOF
stu_id.Text = .Fields("student_id").Value
lblnm.Caption = .Fields("First_name") & " " & .Fields("Middle_name") & " " &
.Fields("Last_name")
.MoveNext
Loop
.Close
End With
With rs_find
.Open "select
Subject1,Subject2,Subject3,Subject4,Subject5,Subject6,Subject7,Subject8,Subject9,Subject10,Sub
ject11,Subject12 from class_mstr where Std = '" & ComStd.Text & "' and Div='" & ComDiv.Text
& "'", con, adOpenDynamic, adLockPessimistic
Do Until .EOF
comSub.AddItem .Fields("Subject1")
comSub.AddItem .Fields("Subject2")
comSub.AddItem .Fields("Subject3")
comSub.AddItem .Fields("Subject4")
comSub.AddItem .Fields("Subject5")
comSub.AddItem .Fields("Subject6")
P a g e | 191
School Management System
comSub.AddItem .Fields("Subject7")
comSub.AddItem .Fields("Subject8")
comSub.AddItem .Fields("Subject9")
comSub.AddItem .Fields("Subject10")
comSub.AddItem .Fields("Subject11")
comSub.AddItem .Fields("Subject12")
.MoveNext
Loop
.Close
End With
End Sub
ComDiv.Clear
comSub.Clear
Call connect
With rs_find
.Open "select Div from class_mstr where Std='" & ComStd.Text & "'", con, adOpenDynamic,
adLockPessimistic
Do Until .EOF
ComDiv.AddItem .Fields("Div").Value
.MoveNext
Loop
P a g e | 192
School Management System
.Close
End With
End Sub
Exit Sub
End If
End Sub
Call connect
dtExam.Value = Date
With rs_find
Do Until .EOF
ComStd.AddItem .Fields("Std").Value
.MoveNext
Loop
.Close
End With
End Sub
P a g e | 193
School Management System
txtMarkObt.Text = ""
txtMarkObt.SetFocus
End If
End Sub
KeyAscii = number(KeyAscii)
End Sub
P a g e | 194
School Management System
Creating User:
Unload Me
End Sub
Call connect
Exit Sub
End If
txtrepass.Text = ""
Exit Sub
End If
With rs_find
P a g e | 195
School Management System
.Open " select * from user_mstr where staff_id= " & Val(comstffid.Text) & "", con,
adOpenDynamic, adLockOptimistic
.Close
comstffid.Text = ""
Exit Sub
End If
.Close
End With
Dim rep
rep = MsgBox("Are you sure you wanna create new User ?", vbYesNo)
With rs_find
.AddNew
.Fields("user_id") = txtun.Text
.Fields("pass") = txtPass.Text
.Fields("staff_id").Value = Val(comstffid.Text)
.Fields("Acct_typ") = comAcctyp.Text
.Update
P a g e | 196
School Management System
.Close
End With
Unload Me
Else
Exit Sub
End If
End Sub
Call connect
With rs_find
.Open "select * from staff_mstr where staff_id= " & Val(comstffid.Text) & "", con,
adOpenDynamic, adLockOptimistic
Do Until .EOF
txtname.Text = .Fields("fname") & " " & .Fields("mname") & " " & .Fields("lname")
.MoveNext
Loop
.Close
End With
End Sub
P a g e | 197
School Management System
Call CenterForm(frmUserAdd)
Call connect
With rs_find
Do Until .EOF
comstffid.AddItem .Fields("staff_id").Value
.MoveNext
Loop
.Close
End With
End Sub
Fees Payment :
Option Explicit
Dim a As Integer
Call Command3_Click
Command2.Enabled = False
cmd_can.Enabled = False
P a g e | 198
School Management System
Cmd_chk.Enabled = True
End Sub
Cmd_chk.Enabled = False
Command2.Enabled = True
cmd_can.Enabled = True
Else
End If
End Sub
TexfeepayID.Text = ""
txtpaid.Text = 0
Call Command3_Click
End Sub
Unload Me
End Sub
P a g e | 199
School Management System
Command2.Enabled = False
cmd_can.Enabled = False
Cmd_chk.Enabled = True
MsgBox "Please fill the asterisk marked field", vbInformation + vbOKOnly, "Field Empty"
Else
Call connect
With rs_feepay
.AddNew
.Fields("Student_ID").Value = Feespayment.TexfeepayID.Text
.Fields("Paid") = Feespayment.txtpaid.Text
.Fields("Due") = Feespayment.Text10.Text
.Fields("fees_date") = DTPfees.Value
.Fields("total") = Text9.Text
.Update
P a g e | 200
School Management System
.Close
End With
End If
Dim rep
rep = MsgBox("Would you like to perform another transaction ? ", vbQuestion + vbYesNo,
"New Transaction")
txtpaid.Text = 0
Call Command3_Click
Else
Unload Me
End If
End Sub
Cmd_chk.Enabled = True
Clear
Call connect
With rs_sudfind
Dim c As Double
c = Val(TexfeepayID.Text)
P a g e | 201
School Management System
TexfeepayID.Text = ""
TexfeepayID.SetFocus
Exit Sub
End If
Do Until .EOF
txtfpfname.Text = .Fields("First_name").Value
txtfpmname.Text = .Fields("Middle_name").Value
txtfplname.Text = .Fields("Last_name").Value
txtfpstd.Text = .Fields("Std").Value
txtfpdiv.Text = .Fields("Div").Value
txtfproll.Text = .Fields("roll_no").Value
.MoveNext
Loop
.Close
End With
With rs_feesfind
.Open "select
Tution_Fees,General_Fund,Annual_Charges,Examination_Fee,Computer_Fee,Admission_Fee,T
otal from fees_stru where Std = '" & txtfpstd.Text & "'", con, adOpenDynamic,
adLockPessimistic
P a g e | 202
School Management System
Do Until .EOF
Text3.Text = .Fields("Tution_Fees").Value
Text4.Text = .Fields("General_Fund").Value
Text5.Text = .Fields("Annual_Charges").Value
Text6.Text = .Fields("Examination_Fee").Value
Text7.Text = .Fields("Computer_Fee").Value
Text8.Text = .Fields("Admission_Fee").Value
Text9.Text = .Fields("Total").Value
.MoveNext
Loop
.Close
End With
With rs_feepay
Do Until .EOF
Text10.Text = .Fields("Due").Value
.MoveNext
Loop
.Close
End With
a = Text10.Text
P a g e | 203
School Management System
End Sub
DTPfees.Value = Date
End Sub
KeyAscii = number(KeyAscii)
End Sub
txtpaid.Text = ""
Text10.Text = a
End If
End Sub
txtfpfname.Text = ""
txtfpmname.Text = ""
txtfplname.Text = ""
txtfpstd.Text = ""
txtfpdiv.Text = ""
txtfproll.Text = ""
P a g e | 204
School Management System
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
End Sub
KeyAscii = number(KeyAscii)
End Sub
Daily Attendance :
Option Explicit
Dim c As Double
Exit Sub
P a g e | 205
School Management System
End If
Exit Sub
End If
Exit Sub
End If
c = Val(comname.Text)
With rs_att
.AddNew
.Fields("staff_id") = c
.Fields("date") = Date
.Fields("status") = comstatus.Text
.Update
.Close
End With
comname.RemoveItem comname.ListIndex
Texname.Text = ""
End Sub
P a g e | 206
School Management System
Unload Me
End Sub
Texname.Text = ""
Call connect
With rs_att
c = Val(comname.Text)
.Open "select fname,mname,lname from staff_mstr where staff_id = " & c & "", con,
adOpenDynamic, adLockPessimistic
Do Until .EOF
Texname.Text = .Fields("fname") & " " & .Fields("mname") & " " & .Fields("lname")
.MoveNext
Loop
.Close
End With
End Sub
P a g e | 207
School Management System
Call connect
With rs_att
rs_att.MoveFirst
End If
Do Until .EOF
comname.AddItem .Fields("staff_id")
.MoveNext
Loop
.Close
End With
End Sub
Salary :
txtsal.Text = ""
cmbmon.Text = ""
P a g e | 208
School Management System
cmbmon.Enabled = False
txtsal.Enabled = False
DTPsalYear.Enabled = False
cmdSave.Enabled = False
cmd_can.Enabled = False
cmdAdd.Enabled = True
End Sub
cmbmon.Enabled = True
txtsal.Enabled = True
DTPsalYear.Enabled = True
txtsal.Text = texsal.Text
cmdSave.Enabled = True
cmd_can.Enabled = True
cmdAdd.Enabled = False
End Sub
Unload Me
End Sub
P a g e | 209
School Management System
Call connect
With rs_find
.Open "select * from salary where staff_id=" & Val(com_id.Text) & " and salMonth='" &
cmbmon.Text & "' and salYear='" & Format(DTPsalYear, "yyyy") & "'", con, adOpenDynamic,
adLockOptimistic
MsgBox "The Entry for the month of " & cmbmon.Text & " " & Format(DTPsalYear, "yyyy") & "
is Present"
.Close
cmbmon.Text = ""
cmbmon.SetFocus
Exit Sub
End If
.Close
End With
With rs_find
.AddNew
.Fields("staff_id") = Val(com_id.Text)
.Fields("salPaid") = txtsal.Text
P a g e | 210
School Management System
.Fields("salMonth") = cmbmon.Text
.Update
.Close
MsgBox "Salary for the month of " & cmbmon.Text & " has been Updated !"
End With
txtsal.Text = ""
cmbmon.Text = ""
cmbmon.Enabled = False
txtsal.Enabled = False
DTPsalYear.Enabled = False
cmd_can.Enabled = False
cmdAdd.Enabled = True
cmdSave.Enabled = False
End Sub
Call connect
With rs_find
.Open "select * from staff_mstr where staff_id=" & Val(com_id.Text), con, adOpenDynamic,
adLockOptimistic
Do Until .EOF
P a g e | 211
School Management System
Texname.Text = .Fields("lname") & " " & .Fields("fname") & " " & .Fields("mname")
texsal.Text = .Fields("salary")
.MoveNext
Loop
.Close
End With
With rs_find
.Open "select * from salary where staff_id=" & Val(com_id.Text), con, adOpenDynamic,
adLockOptimistic
.Close
Exit Sub
End If
Do Until .EOF
txtlsal.Text = .Fields("salPaid")
txtlmon.Text = .Fields("salMonth")
txtlyear.Text = .Fields("salYear")
.MoveNext
Loop
.Close
P a g e | 212
School Management System
End With
End Sub
End Sub
Call connect
With rs_find
Do Until .EOF
com_id.AddItem .Fields("staff_id")
.MoveNext
Loop
.Close
End With
End Sub
End Sub
P a g e | 213
School Management System
Dim a As String
ComDiv.Clear
Call connect
With rs_class
.Open "select distinct Div from class_mstr where Std = '" & ComStd.Text & "'", con,
adOpenDynamic, adLockPessimistic
Do Until .EOF
ComDiv.AddItem .Fields("Div")
.MoveNext
Loop
.Close
End With
End Sub
Call connect
P a g e | 214
School Management System
rs_stugrid.CursorLocation = adUseClient
sql = "select * from student_mstr where Std= '" & ComStd.Text & "' and Div= '" &
ComDiv.Text & "'"
ComStd.Text = ""
ComDiv.Text = ""
txtsuid.Text = ""
txtfn.Text = ""
txtmn.Text = ""
txtln.Text = ""
txtstd.Text = ""
txtdiv.Text = ""
pcbox.Picture = Nothing
End If
With FlexMember
FlexMember.Cols = rs_stugrid.Fields.count + 1
FlexMember.ColWidth(0) = 0
For c = 0 To rs_stugrid.Fields.count - 1
FlexMember.TextMatrix(0, c + 1) = rs_stugrid(c).Name
P a g e | 215
School Management System
Next
FlexMember.Rows = rs_stugrid.RecordCount + 1
For r = 1 To rs_stugrid.RecordCount
For c = 0 To rs_stugrid.Fields.count - 1
Next c
rs_stugrid.MoveNext
Next r
End With
FlexMember.ColWidth(1) = 850
FlexMember.ColWidth(2) = 1250
FlexMember.ColWidth(3) = 1250
FlexMember.ColWidth(4) = 1250
FlexMember.ColWidth(5) = 2000
FlexMember.ColWidth(6) = 1000
FlexMember.ColWidth(7) = 1000
FlexMember.ColWidth(8) = 1000
FlexMember.ColWidth(9) = 800
FlexMember.ColWidth(10) = 900
End Sub
P a g e | 216
School Management System
Unload Me
End Sub
txtfn.Text = ""
txtmn.Text = ""
txtln.Text = ""
txtstd.Text = ""
txtdiv.Text = ""
Call connect
With rs_find
.Open " select * from student_mstr where student_id = " & Val(txtsuid.Text) & "", con,
adOpenDynamic, adLockPessimistic
.Close
txtsuid.Text = ""
P a g e | 217
School Management System
Exit Sub
End If
End With
With rs_find
Dim c As Double
c = Val(txtsuid.Text)
.Open "select * from student_mstr where student_id = " & c & "", con, adOpenDynamic,
adLockPessimistic
Do Until .EOF
txtfn.Text = .Fields("First_name").Value
txtmn.Text = .Fields("Middle_name").Value
txtln.Text = .Fields("Last_name").Value
txtstd.Text = .Fields("Std").Value
txtdiv.Text = .Fields("Div").Value
Dim a As String
pcbox.Picture = LoadPicture(a)
.MoveNext
Loop
.Close
End With
P a g e | 218
School Management System
End Sub
Me.Hide
frmStudFull.Show
End Sub
Call connect
rs_stugrid.CursorLocation = adUseClient
With FlexMember
FlexMember.Cols = rs_stugrid.Fields.count + 1
FlexMember.ColWidth(0) = 0
For c = 0 To rs_stugrid.Fields.count - 1
FlexMember.TextMatrix(0, c + 1) = rs_stugrid(c).Name
Next
FlexMember.Rows = rs_stugrid.RecordCount + 1
P a g e | 219
School Management System
For r = 1 To rs_stugrid.RecordCount
For c = 0 To rs_stugrid.Fields.count - 1
Next c
rs_stugrid.MoveNext
Next r
End With
End Function
txtsuid.Text = ""
txtfn.Text = ""
txtmn.Text = ""
txtln.Text = ""
txtstd.Text = ""
txtdiv.Text = ""
pcbox.Picture = Nothing
Call connect
rs_stugrid.MoveFirst
rs_stugrid.Move FlexMember.Row - 1
P a g e | 220
School Management System
txtsuid.Text = FlexMember.TextMatrix(FlexMember.Row, 1)
txtfn.Text = FlexMember.TextMatrix(FlexMember.Row, 2)
txtmn.Text = FlexMember.TextMatrix(FlexMember.Row, 3)
txtln.Text = FlexMember.TextMatrix(FlexMember.Row, 4)
txtstd.Text = FlexMember.TextMatrix(FlexMember.Row, 5)
txtdiv.Text = FlexMember.TextMatrix(FlexMember.Row, 6)
pcbox.Picture = LoadPicture(a)
End Sub
Call connect
fillgrid
With rs_find
.Open "select distinct Std from class_mstr order by Std", con, adOpenDynamic,
adLockOptimistic
Do Until .EOF
ComStd.AddItem .Fields("Std")
.MoveNext
Loop
.Close
End With
End Sub
P a g e | 221
School Management System
CONCLUSION
P a g e | 222
School Management System
CONCLUSION
The data(records) remains safe in database and can be retrieved any time,
whenever needed. This software records all the necessary information about the
various entities of the school. This software also provide easy tools for updations
and modifications, thus provides a good support to the school management to keep
information about every field up-to-date.
P a g e | 223
School Management System
SCOPE OF FUTURE
APPLICATION
P a g e | 224
School Management System
When we complete the implementation phase, a user may ask for other
facilities in the system. So processes should be flexible enough to be able to be extended
or modified in near future .
It is certain, this proposed system may not completely cover all of the
problem areas. But it will definitely be able to perform most the managerial tasks.
P a g e | 225
School Management System
BIBLIOGRAPHY
P a g e | 226
School Management System
BIBLIOGRAPHY
Websites Resources :
1) www.google.com
2) www.microsoft.com
3) www.planetsourcecode.com
4) www.bing.com
5) www.vbsourcecode.com
P a g e | 227