227
School Management System Page | 1 “SCHOOL MANAGEMENT” Project Work submitted in partial fulfillment of the requirements for award of the Degree of B.Sc (Information Technology) Submitted by Mr. Ansari Saad Mr. Shaikh Mohd. Shakeal 2009-2010 Project Guide Prof. Sandhya Pandey Prof. Ashwini Kulkarni Prof. Sunanda Mulgund A Project Submitted to the Department of Information Technology G. R. Patil College Of Science, Arts & Commerce Dombivli (E). ( Affiliated to the University of Mumbai )

School Black Book

Embed Size (px)

Citation preview

Page 1: School Black Book

School Management System

P a g e | 1

“SCHOOL MANAGEMENT” Project Work submitted in partial fulfillment of the requirements for

award of the Degree of B.Sc (Information Technology)

Submitted by

Mr. Ansari Saad

Mr. Shaikh Mohd. Shakeal

2009-2010

Project Guide

Prof. Sandhya Pandey

Prof. Ashwini Kulkarni

Prof. Sunanda Mulgund

A Project Submitted to the

Department of Information Technology

G. R. Patil College

Of Science, Arts & Commerce Dombivli (E).

( Affiliated to the University of Mumbai )

Page 2: School Black Book

School Management System

P a g e | 2

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)

It is further certified that they have completed all the required

phases of the project.

Internal Examiner External Examiner Principal Bsc (I T) Coordinator

Place : Dombivli

Date :

Page 3: School Black Book

School Management System

P a g e | 3

“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 4: School Black Book

School Management System

P a g e | 4

PREFACE

This project deals with the atomization in “SCHOOL MANAGEMENT SYSTEM”. This system provides a comprehensive approach towards managing the various activities of the school.

This software boasts of its various features such as managing the student, staff, department, class, fees record, etc. It provides a simple and easy to do interface which is user-friendly. The software provides a range of reports for the students, staff, fees, etc.

This software provides Security in terms of password & multiple login is provided so as to make a very secure environment since security is our prime concern is. This software is not only for the professionals but a layman can easily understand and operate this software as there is no need for any special skill in operating this software.

Page 5: School Black Book

School Management System

P a g e | 5

INDEX

Page 6: School Black Book

School Management System

P a g e | 6

INDEX

CONTENTS PAGE No. PAGE No.

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

9. DATA FLOW DIAGRAM ( DFD ) 34

10. MENU TREE 42

11. TABLES 46

12. DATA DICTIONARY 52

13. FORM SPECIFICATION 60

Page 7: School Black Book

School Management System

P a g e | 7

14. TESTING

66

15. OUTPUT SCREENS

TABLES

FORMS

REPORTS

73

74

87

126

16. CODING 134

17. CONCLUSION 222

18. SCOPE OF FUTURE APPLICATIONS 224

19. BIBILIOGRAPHY 226

Page 8: School Black Book

School Management System

P a g e | 8

INTRODUCTION

Page 9: School Black Book

School Management System

P a g e | 9

INTRODUCTION

The present manual system has many drawbacks in comparison to

computrierized system that we are introducing . In conventional school management system

records were Maintained manually in registers. Manually, it is difficult to find out the

information about Student or teachers.

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.

A school management system is a type of an application program That can

be used by the school administrator. Different parts of school management system are analyzed

and trace to computerize from them defined the details of student and teachers and some other

parts that can be traced for this but as a simple need of student or teacher.

The need of school management system arises as the number of student

increases, so proper system is required to provide facility to the student And administrator

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 10: School Black Book

School Management System

P a g e | 10

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

Page 11: School Black Book

School Management System

P a g e | 11

Why in VB?

Page 12: School Black Book

School Management System

P a g e | 12

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 is a general-purpose versatile language designed to make

programming more interesting for serious programmers. It provides efficient facilities for

defining new data types.

Visual Basic provide integrated development environment (IDE) for the visual

development of Windows application. Visual basic language is also an event driven language.

Like C++ , Visual Basic Supports OOPs features such as inheritance ,

Polymorphism ,encapsulation, etc., but it is not completely object oriented language.

Visual Basic provides totally Graphical User interface .Graphical interface

has the capabilities of Visual Basic support for programmer to develop very user –friendly

interfaces, which are very interactive.

The library of Visual Basic provides complete collection of function and

methods that satisfy the professional requirements of stability, performance, and a sound

theoretical base.

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.

Page 13: School Black Book

School Management System

P a g e | 13

These features of Visual Basic forced us to choose VB as the platform of

our Software as it fulfilled all the requirement of our creation efficiently.

BACK END (MS ACCESS)

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.

Page 14: School Black Book

School Management System

P a g e | 14

REVIEW OF LITERATURE

Page 15: School Black Book

School Management System

P a g e | 15

REVIEW OF LITERATURE

SOFTWARE DEVELOPMENT

Software development is based on layered technology.

Software Engineering Layers

The development of software is based on the quality of the software to be developed

.Total quality management leads to the development of the increasing more natural approaches to

software engineering.

The bedrock that supports software engineering is quality focus.

The foundation of the software engineering process is the process layer. Software Engg. Process that holds technology layer together for the timely development of

Page 16: School Black Book

School Management System

P a g e | 16

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.

2)Development Phase: focused on how . During development a software engineer

attempts to define how data are to be structured, how function is to be implemented within a

software Architecture, how procedural details are implemented , how interfaces are to be

Page 17: School Black Book

School Management System

P a g e | 17

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.

Page 18: School Black Book

School Management System

P a g e | 18

FEASIBILITY STUDY

Page 19: School Black Book

School Management System

P a g e | 19

FEASIBILITY STUDY

System analysis:

System analysis is conducted with following objectives in mind. 1. Identify the user need. 2. Evaluate the system concept for feasibility. 3. Perform economic and technical analysis. 4. Allocate function to hardware and software people. Database and other

system element. 5. Establish cost and schedule constraints. 6. Create a system definition that forms the foundation for all subsequent

engineering work.

Identification of need:

The first step of the system analysis process involves the

identification of need. The analyst meets the user and end user. Once over goals are identified, the analyst moves on to an evaluation of supplementary information.

In earlier days the system computerized, each and every step was done manually, which is very tedious and would create lots of complication and problems.

The need for computerization is for the convenience of the customer. Many a times in manual work, there is no proper record so either one has to search for id or get a new one done.

Information gathered during the needs identification steps are specified in a system concept documents is sometimes prepared by the user before meetings with the analyst.

Page 20: School Black Book

School Management System

P a g e | 20

Feasibility Study:

1. A feasibility study is not warranted for this system in which economic

justification is obvious, technical risk is low, few legal problems are expected and no reasonable alternative exists. However, if any of the preceding condition fails, a study of that should be conducted.

2. All projects are feasible- given unlimited time! Unfortunately, the development of computer- based system of products more like plagued by a scarcity of resources and difficult delivery dates. It is both necessary and prudent to evaluate the feasibility of project at the earliest possible time.

3. Feasibility and risk analysis are related in many ways. If project risk is great, the feasibility of providing quality software is reduced.

4. The feasibility study may be documented as an appendix to the system specification.

Economic Feasibility:

An assessment of the economic justification for a computer based system project

is cost – benefit.

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.

Page 21: School Black Book

School Management System

P a g e | 21

Technical Feasibility:

1. Technically this project is very sophisticated and has faster execution

comparatively used in project. 2. During technical analysis the analyst evaluates the technical merits of

the system concept, at the same time collecting additional information about performance, reliability and maintainability of proposed system.

3. Technical analysis begins with an assessment of the technical ability of proposed system.

4. The tools available for technical are derived from mathematical modeling optimization techniques, probability and statistics, queering theory and control theory. It is important to note, however, that analytical evaluation is not always possible.

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.

Page 22: School Black Book

School Management System

P a g e | 22

FORMULATION OF PROBLEM

Page 23: School Black Book

School Management System

P a g e | 23

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.

(1) The functionality that must be delivered.

(2) The process that will be use to deliver it.

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

1. Student may be asked for different categories:-

Student general information.

Student performanace.

Student marks

Page 24: School Black Book

School Management System

P a g e | 24

2. Staff ( Teaching and Non-teaching ) may be asked for different categories:-

Staff general information

Staff Experience

Staff Salary

So we must have separate record for each category and thus maintain files of student

records and teachers record.

Page 25: School Black Book

School Management System

P a g e | 25

MINIMUM SYSTEM

REQUIREMENTS

Page 26: School Black Book

School Management System

P a g e | 26

Minimum System Requirements

SOFTWARE

Operating System : MS Windows NT, xp or higher.

Front End : MS VB 6.0

Back End : MS Access 2003 or higher

HARDWARE

Processor : Pentium IV or higher

RAM : 512 Mb or higher

Hard Disk : Min. 5 Gb

Page 27: School Black Book

School Management System

P a g e | 27

GANTT CHART

Page 28: School Black Book

School Management System

P a g e | 28

Page 29: School Black Book

School Management System

P a g e | 29

GANTT CHART

Page 30: School Black Book

School Management System

P a g e | 30

E-R DIAGRAM

Page 31: School Black Book

School Management System

P a g e | 31

Entity Relationship Diagram:

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.

A relationship is an association among several entities .A relationship set is a set of

relationships of the same type .The association between entity sets is referred to as participation.

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: E-R diagram consists of the following major components:

Page 32: School Black Book

School Management System

P a g e | 32

Page 33: School Black Book

School Management System

P a g e | 33

E-R DIAGRAM FOR SCHOOL MANAGEMENT SYSTEM

STUDENTCLASS

STAFF

DEPARTMENT

FEES

STUDY

HAS

TEACHES

PAYS

HAS

GUARDIAN

IN

NON -TEACHING

TEACHING(Teacher)

Mother

Address

Father

L_name

M_name

F_name

Phone

Class_ID

Std

DivStrength

Subject

Staff_ID

Type

F_name

M_name

L_name

F_name

M_name

L_name

Student_ID Date_of_Payment Name

Phone

Relationship

email

Dept_ID Name Description

1

M

N

11

N

1

Page 34: School Black Book

School Management System

P a g e | 34

DATA FLOW DIAGRAM (DFD)

Page 35: School Black Book

School Management System

P a g e | 35

Data Flow Diagram:

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:

Page 36: School Black Book

School Management System

P a g e | 36

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.

Page 37: School Black Book

School Management System

P a g e | 37

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. Context level diagram: The context diagram is useful for showing boundaries. The system scope is defined by what is represented within single process and what is represented as an external agent. External agents that supply or receive data from the system are outside of the system scope. Everything else is inside the system scope.

Data stores are not usually shown on the context diagram because all of the system’s data stores are considered to be within the system scope. The context diagram is simply the highest-level DFD. It is also called as Level 0 DFD.

The context diagram provides a good overview of the scope of the system, showing the system in “context” but it does not show any detail about the processing that takes place inside the system.

Page 38: School Black Book

School Management System

P a g e | 38

Context Level Diagram

Page 39: School Black Book

School Management System

P a g e | 39

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.

Page 40: School Black Book

School Management System

P a g e | 40

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.

Page 41: School Black Book

School Management System

P a g e | 41

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.

Page 42: School Black Book

School Management System

P a g e | 42

MENU TREE

Page 43: School Black Book

School Management System

P a g e | 43

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

Page 44: School Black Book

School Management System

P a g e | 44

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

Fees Information (All)

Fees Information (Individual)

Page 45: School Black Book

School Management System

P a g e | 45

o Result

Staff

o Staff Info

o Salary Info

Class

Utilities

Notepad

Calculator

Backup Database

Help

About

Acknowledgement

HelponShortcuts

Online Help!

Page 46: School Black Book

School Management System

P a g e | 46

TABLES

Page 47: School Black Book

School Management System

P a g e | 47

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

Page 48: School Black Book

School Management System

P a g e | 48

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

Page 49: School Black Book

School Management System

P a g e | 49

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

Page 50: School Black Book

School Management System

P a g e | 50

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

Page 51: School Black Book

School Management System

P a g e | 51

status

user_mstr :

user_id

password

staff_id

acct_typ

Salary :

Staff_id

salPaid

salMonth

salYear

User_log :

userID

sessionStart

sessionEnd

Description

Page 52: School Black Book

School Management System

P a g e | 52

DATA DICTIONARY

Page 53: School Black Book

School Management System

P a g e | 53

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 + 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

student_id number uniquely identifies a student

First_name text first name of respective student

Middle_name text middle name of respective student

Last_name text last name of respective student

Std text current standers of student

Div text division of student

roll_no text roll no of student

mother_name text mother name of respective student

father_name text father name of respective student

name_of_gardian text guardian name of respective student

Permanent_address text current address of student

city text city of sstudent

state text state of student

pincode text pin code of student

phone_no text contain Phone n of respective student

mobile_no text contain mobile no of respective student

Email text contain e mail respective student

Gender text define gender of student

place_of_birth text birth place of student

Nationality text nationality of student

Age text current age of student

Name_of_previous_Schoo text contain name of previous school

Page 54: School Black Book

School Management System

P a g e | 54

Address_of_previous_School text contain address of previous school

School_mention_above_was_Recognise text registration of previous school

STD_in_previous_School text standers in previous school

Year_of_passing text passing year of student

Promotion_Was_Granted text define promotion

Action text action of previous school

Relationship_With_student text relation ship of father with student

Occupation text occupation of family member

annual_Income text annual income of family

Number_of_Dependent_in_family text define number of dependent in family

Phone_Home text contain phone no of home

Phone_Office text contain phone no of office

Date_of_Admission Date/time contain date of admission

Religion text define religion of student

Mother_tongue text define mother tongue

Category text category of reservation

DOB date/time date of birth

specified_category text other reservation categories

Caste text caste of student

Picture text contain location of 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 + 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

staff_id number uniquely identifies a particular staff

fname text first name of respective staff

mname text middle name of respective staff

Page 55: School Black Book

School Management System

P a g e | 55

lname text last name of respective staff

dob date/time contain date of birth

sex text define gender

address text contain current address of respective staff

city text name of city

state text name of state

pincode text contain pin code

con_no text contain contact number

mob_no text contain mobile number

email text contain email address

nationality text define nationality of respective staff

birthplace text place of birth

age text current age of respective staff

religion text name of religion

caste text name of caste

ifspecify text name other caste system

civilstatus text current status of saff

type text employment type

department_id number contain ID of respective department

department_name text name of respective department

qualification text qualification of staff

summaryofqual text summary of qualification

post text employment post of respective staff

enroll_yr date/time year of enrollment

jobstatus text status of job

enrollDate date/time date of enrollment

salary text salary of respective staff

cont_term date/time date of contract termination

pre_exp text previous experience

no_of_yr text number of year of experience

Page 56: School Black Book

School Management System

P a g e | 56

remark text remark

pre_employr text name of previous employer

Subject1 text name of 1 subject

Subject2 text name of 2 subject

Subject3 text name of 3 subject

Subject4 text name of 4 subject

Picture text location of picture

Class_mstr: Class_ID + Std + Div + Number_Of_student + Student_Strength + Class_shedule +

Acemedic_Behaviour + Class_requirenment + Subject1 + Subject2 + Subject3 + Subject5 + Subject6 + Subject7 + Subject8 + Subject9 + Subject10 + Subject11 + Subject12

Class_ID number for uniquely identification of respective class

Std text standard of respective class

Div text division of respective class

Number_Of_student text current number of student’s

Student_Strength text permitted student strength

Class_shedule text contain schedule of class

Acemedic_Behaviour text behavior of class

Class_requirenment text current requirement of class

Subject1 text name of 1 subject

Subject2 text name of 2 subject

Subject3 text name of 3 subject

Subject4 text name of 4 subject

Subject5 text name of 5 subject

Subject6 text name of 6 subject

Subject7 text name of 7 subject

Subject8 text name of 8 subject

Subject9 text name of 9 subject

Subject10 text name of 10 subject

Page 57: School Black Book

School Management System

P a g e | 57

Subject11 text name of 11 subject

Subject12 text name of 12 subject

Department : department_id + department_name + description

department_id number uniquely identifies each department

department_name text contain department name

description text description of respective department

Fees_payment: student_id + Paid + Due + fees_date + fees_time + total

student_id number for uniquely identifying of each student

Paid number contain amount paid

Due number contain due amount

fees_date date/time date at which fees was paid

fees_time date/time time at which fees was paid

total text total amount

Fees_stru: Class_ID + Std + Tution_Fees + General_Fund + Annual_Charges + Examination_Fee +

Computer_Fee + Admission_Fee + Total

Class_ID number uniquely identifies each class

Std text standard of respective class

Tution_Fees text contain tution fees

General_Fund text contain general fund

Annual_Charges text contain annual charges

Examination_Fee text contain examination fees

Computer_Fee text contain compter fees

Page 58: School Black Book

School Management System

P a g e | 58

Admission_Fee text contain admission fees

Total text contain total amount

Result: student_id + Std + Div + roll_no + exam_date + subject + exam_name + max_marks +

marks_obt + result + createdBy

student_id number uniquely identifies a student

Std text standard of particular student

Div text division of particular student

roll_no text roll no of particular student

exam_date text date of examination held

subject text contain subject related to examination

exam_name text name of examination

max_marks number contanin maximum marks

marks_obt number contain minimum marks

result text result of particular student

createdBy text name who created result

Stu_att: date + status + student_id

date date/time current date of attendance

status text status of attendance

student_id number ID of student for unique identification

User_mstr : user_id + pass + staff_id + Acct_typ

user_id text user ID for login

pass text user password for login

Page 59: School Black Book

School Management System

P a g e | 59

staff_id number staff ID for identifying staff

Acct_typ text type of account privilege

Salary: staff_id + salPaid + salMonth + salYear

staff_id number uniquely identify particular staff

salPaid text amount of salary paid

salMonth text month of salary

salYear text year of salary

User_log: UserID + SessionStart + SessionEnd + Description

UserID text contain ID of user

SessionStart date/time time at which session start

SessionEnd date/time time at which session end

Description text contain description of session

Page 60: School Black Book

School Management System

P a g e | 60

FORM SPECIFICATION

Page 61: School Black Book

School Management System

P a g e | 61

FORM SPECIFICATION

There are 42 forms in this project. The main functionality of each form is briefly described here :

Main Menu Form ( SchoolMain[MDI Form] ) : Using this menu you can go on any page in this project. This provides a perfect understanding of project. This menu contains the fields such as , File , Transaction, View , Reports, Utilities and Help.

Student Admission Form ( sturegister1 & sturegister2 ): This is the student enrollment form divided in two. Which provides many fields that you will have to enter when enrolling any student? This form provides you to store the every detail of the student.

Daily Attendance Form ( stu_attn ) : This is daily attendance form. This form provides you to keep the daily attendance record of each class’s students.

Fees Payment ( Fees_Payment ) : This form keeps track of each student’s fees details. It includes the class, std, div, date of payment, Total fees, Due, etc

Marks Entry Form ( frmResult ): This form records the exam and marks detail of the student. Thus providing a way to build the result of the Student.

Staff Recruitment Form ( teachregister and teachregister2) : This forms lets you create a staff entry. The staff may either be a teaching or be a non-teaching. The teaching staff may be the teacher, supervisors, etc. The non-

Page 62: School Black Book

School Management System

P a g e | 62

teaching staff may range from clerk to all that persons related for the management of the school.

Daily Attendance Form ( Staff ) : This form records attendance of Staff. Thus you have a good formed of the day-to-day attendance of the staff.

Student General Form ( studGeneral ): This form shows the general details of each student. You just have to provide his/her enroll no. this form will provide you the general detail of the student. This form also let you to the full record form of the student where you can update or edit the detail of the student.

Students full Query Form ( studFull ): This form shows the each and every detail of the students registration. It also lets edit / update a students detail.

Student Attendance Query Form ( stud_att_details): This form enables the system user to know the attendance details of the student like absency, presency or the leave of the student.

Staff general Record Form ( stffGeneral ): This form shows the general details of each staff. You just have to provide his/her staff ID. This form will provide you the general detail of the staff. This form also let you to the full record form of the staff where you can update or edit the detail of the staff.

Staff Salary Form ( frmStffSalary ): This form helps for maintaing the salary record of the staff.

Page 63: School Black Book

School Management System

P a g e | 63

Teacher’s Attendance Enquiry Form ( teach_att_detail ): This form enables the system user to know the attendance details of the staff like absency, presency or the leave of the staff.

Fee Structure Form ( frmFees ): This form provides you a facility to create or modify your fee structure. Thus change in this form may reflect in each form where you are using fee details.

School Information Form ( frmSclInfo ):

This form records information of your school. And whenever you want to change any information about your school, you may use this form directly and can modify the information about your school.

About Form ( frmAbout ): This forms links you to the school information form and provides the information about of the application.

Vertical and Horizontal These forms are used as startup forms that will be displayed when the project is executed. They are also used to increase the display area of the MDI form.

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.

Edit Class (editclass)

This form lets you edit the existing class structure created by the administrator. Only administrative preveileged users can modify this structure.

Search Class (Find Class) This form lets you view the existing structure of the class. You just have to provide the unique ID of the class to view the structure.

Page 64: School Black Book

School Management System

P a g e | 64

Create User (frmUserAdd) This form lets you create users for the system. Only the administrator reserves the right to create the new user for the system

View User (frmSysUser) This form shows the detailed view of the users of the system that were created by the administrator

Change Password (ChgPass) This form lets you to change the existing password of the current user.

Acknowledgement Form ( frmAck ): This form is created with the intention of Acknowledging all the persons, etc who were helpful in creating this system.

Add Department Form ( frmNewDepart ): This form helps in creating various departments of the employee working in the school.

Edit Department Form ( frmedtDep ): This form is helpful in marking the attendance of the student.

View Department Form ( frmDepartment ): This form lets you view the existing departments created / present in the school.

Splash Screen Form ( frmSplash ): This form is the startup form of the system during which all the database connectivity activity is performed

Page 65: School Black Book

School Management System

P a g e | 65

Login Form ( frmLogin ): This form is used for the purpose of security. So, that no unauthorized person could use the information.

Edit Department Form ( frmedtDep ): This form is helpful in marking the attendance of the student.

Result Report Form ( frmResRep ):

This form is used to create the report of the result of the student.

Page 66: School Black Book

School Management System

P a g e | 66

TESTING

Page 67: School Black Book

School Management System

P a g e | 67

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.

Page 68: School Black Book

School Management System

P a g e | 68

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

Integration testing consists of two main approaches, which are as follows :

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

Page 69: School Black Book

School Management System

P a g e | 69

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, BLACK BOX, AND GREY BOX TESTING

White box and Black box testing are terms used to describe the point of view that a test

engineer takes when designing test cases.

Black box Testing

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

Page 70: School Black Book

School Management System

P a g e | 70

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.

White box Testing

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.

Grey box Testing

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

Alpha testing is simulated or actual operational testing by potential users / customers or

an independent test team at the developers’ site. Alpha testing is often employed for off-the-

shelf software as a form of internal acceptance testing, before the software goes to beta testing.

Page 71: School Black Book

School Management System

P a g e | 71

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

After modifying software, either for a change in functionality or to fix defects, a

regression test re-runs previously passing tests on The Modified software to ensure that the

modifications haven’t Unintentionally caused a regression of previous functionality. Regression

testing can be performed at any or all of the above test levels. These regression tests are often

automated. More specific forms of regression testing are known as Sanity testing, when quickly

checking for bizarre behavior, and Smoke testing when testing for basic functionality.

VERIFICATON & VALIDATION

Software testing is used in association with verification and validation ( V & V ) :

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.

Page 72: School Black Book

School Management System

P a g e | 72

Validation : Have we built the right software (i.e., is this what the customer wants) ?

TEST CASES DESCRIPTION

LOGIN Valid UserID and password should be provided

Student Enroll 1) Valid StudentID should be provided 2) No field should be blank 3) Valid data should be entered in the

fields. Staff Registration 1) Valid StaffID should be provided

2) No field should be blank 3) Valid data should be entered in the

fields Department 1) Valid departmentID should be

provided 2) Name field should not be left blank

Class 1) Valid ClassID should be provided 2) No field should be left blank 3) Valid data should be entered in the

field Fees Structure 1) Valid structure should be created for

the corresponding Class 2) No field should be left blank 3) Valid data should be entered in the

field Deletion Forms(Staff & Student) Valid ID should be deleted for the data base

Reports Every report should issued within the validity limit.

Page 73: School Black Book

School Management System

P a g e | 73

Output Screen

Page 74: School Black Book

School Management System

P a g e | 74

TABLES

Page 75: School Black Book

School Management System

P a g e | 75

Student_mstr :

Page 76: School Black Book

School Management System

P a g e | 76

Staff_mstr :

Page 77: School Black Book

School Management System

P a g e | 77

Department :

Page 78: School Black Book

School Management System

P a g e | 78

Class_mstr :

Page 79: School Black Book

School Management System

P a g e | 79

Student Attendance :

Page 80: School Black Book

School Management System

P a g e | 80

Staff Attendance :

Page 81: School Black Book

School Management System

P a g e | 81

Class Structure :

Page 82: School Black Book

School Management System

P a g e | 82

Fees Payment :

Page 83: School Black Book

School Management System

P a g e | 83

Result :

Page 84: School Black Book

School Management System

P a g e | 84

Staff Salary :

Page 85: School Black Book

School Management System

P a g e | 85

User :

Page 86: School Black Book

School Management System

P a g e | 86

UserLog :

Page 87: School Black Book

School Management System

P a g e | 87

FORMS

Page 88: School Black Book

School Management System

P a g e | 88

MDI form (SchoolMain) :

Page 89: School Black Book

School Management System

P a g e | 89

Splash Screen ( frmSplash) :

Page 90: School Black Book

School Management System

P a g e | 90

Login form (frmLogin) :

Page 91: School Black Book

School Management System

P a g e | 91

Student Registration (sturegister1 and sturegister2) :

Page 92: School Black Book

School Management System

P a g e | 92

Page 93: School Black Book

School Management System

P a g e | 93

Staff Registration (1 & 2) :

Page 94: School Black Book

School Management System

P a g e | 94

Page 95: School Black Book

School Management System

P a g e | 95

About form :

Page 96: School Black Book

School Management System

P a g e | 96

Acknowledgement form :

Page 97: School Black Book

School Management System

P a g e | 97

Add New Class :

Page 98: School Black Book

School Management System

P a g e | 98

Backup Utility form :

Page 99: School Black Book

School Management System

P a g e | 99

Change Password form :

Page 100: School Black Book

School Management System

P a g e | 100

Class Report :

Page 101: School Black Book

School Management System

P a g e | 101

Staff suspension form :

Page 102: School Black Book

School Management System

P a g e | 102

Student Removal form :

Page 103: School Black Book

School Management System

P a g e | 103

Edit Class form :

Page 104: School Black Book

School Management System

P a g e | 104

Edit Department form :

Page 105: School Black Book

School Management System

P a g e | 105

Fees Payment form :

Page 106: School Black Book

School Management System

P a g e | 106

Fees Structure form :

Page 107: School Black Book

School Management System

P a g e | 107

View Class Information form :

Page 108: School Black Book

School Management System

P a g e | 108

Help form :

Page 109: School Black Book

School Management System

P a g e | 109

New Department form :

Page 110: School Black Book

School Management System

P a g e | 110

Add New User form :

Page 111: School Black Book

School Management System

P a g e | 111

View Staff Attendance Detail form :

Page 112: School Black Book

School Management System

P a g e | 112

Daily Staff Attendance form :

Page 113: School Black Book

School Management System

P a g e | 113

Edit Staff Information form :

Page 114: School Black Book

School Management System

P a g e | 114

Staff General Information form :

Page 115: School Black Book

School Management System

P a g e | 115

Staff Salary Information form :

Page 116: School Black Book

School Management System

P a g e | 116

Student Daily Attendance form :

Page 117: School Black Book

School Management System

P a g e | 117

Student Fees Report (Individual) :

Page 118: School Black Book

School Management System

P a g e | 118

Report form:

Page 119: School Black Book

School Management System

P a g e | 119

Student Result Entry form :

Page 120: School Black Book

School Management System

P a g e | 120

Student Attendance Detail form :

Page 121: School Black Book

School Management System

P a g e | 121

Edit Student Information form :

Page 122: School Black Book

School Management System

P a g e | 122

Student General Information form :

Page 123: School Black Book

School Management System

P a g e | 123

System lock form :

Page 124: School Black Book

School Management System

P a g e | 124

View System Users form :

Page 125: School Black Book

School Management System

P a g e | 125

View Department form :

Page 126: School Black Book

School Management System

P a g e | 126

REPORTS

Page 127: School Black Book

School Management System

P a g e | 127

Class report

Page 128: School Black Book

School Management System

P a g e | 128

Fees information

Page 129: School Black Book

School Management System

P a g e | 129

Fees report (indivisual )

Page 130: School Black Book

School Management System

P a g e | 130

Staff information

Page 131: School Black Book

School Management System

P a g e | 131

Staff salary

Page 132: School Black Book

School Management System

P a g e | 132

Student informatoin

Page 133: School Black Book

School Management System

P a g e | 133

Result report

Page 134: School Black Book

School Management System

P a g e | 134

CODING

Page 135: School Black Book

School Management System

P a g e | 135

CODING

SchoolMain :

Option Explicit

Private Sub about_Click()

frmAbout.Show

End Sub

Private Sub open_Click()

frmsturegister1.Show

End Sub

Private Sub Command1_Click()

'frmPdf.Show

End Sub

Private Sub cmd_xt_Click()

Call mnuquit_Click

End Sub

Page 136: School Black Book

School Management System

P a g e | 136

Private Sub cmdCp_Click()

Shell "c:\windows\system32\control.exe", vbNormalFocus

End Sub

Private Sub cmdChgPass_Click()

frmChgPass.Show

End Sub

Private Sub cmdLogf_Click()

Call mnulogout_Click

End Sub

Private Sub MDIForm_Initialize()

Label5.Caption = Date

horizontal.Show

Vertical.Show

'=====Code for the icon of the listview

'========

'Dim item1, item2, item3, item4, item5 As ListItem

With lvMenu

Set .SmallIcons = ImageList1

Set .Icons = ImageList1

Page 137: School Black Book

School Management System

P a g e | 137

'For Sales

.ListItems.Add , "user", "View Users", 1, 1

.ListItems.Add , "Add Student", "Add New Student", 2, 2

.ListItems.Add , "Edit Student Information", "Edit Student Information", 3, 3

.ListItems.Add , "Result", "Result", 4, 4

.ListItems.Add , "View Student Report", "View Student Report", 5, 5

.ListItems.Add , "Result Report", "Result Report", 6, 6

.ListItems.Add , "Fees Payment", "Fees Payment", 7, 7

.ListItems.Add , "School Info", "School Info", 8, 8

End With

End Sub

Private Sub lvMenu_DblClick()

Select Case lvMenu.SelectedItem.Key

Case "user": frmSysUser.Show

Case "Add Student": frmsturegister1.Show

Case "Edit Student Information": frmStudGeneral.Show

Case "Result": frmResult.Show

Case "Fees Payment": Feespayment.Show

Case "View Student Report": Call mnurepstu_Click

Case "School Info": frmSchoolInfo.Show

Case "Result Report": frmResultRep.Show

Page 138: School Black Book

School Management System

P a g e | 138

End Select

End Sub

Private Sub MDIForm_Unload(Cancel As Integer)

MsgBox " I N I T I A T I N G A P P L I C A T I O N S H U T D O W N"

End

End Sub

Private Sub mnu_edit_class_Click()

editclass.Show

End Sub

Private Sub mnu_stu_att_Click()

frm_stu_attendance.Show

End Sub

Private Sub mnuAck_Click()

frmAck.Show

End Sub

Private Sub mnuBackDB_Click()

BackupDatabase.Show

End Sub

Page 139: School Black Book

School Management System

P a g e | 139

Private Sub mnuCalc_Click()

On Error GoTo Err

Shell "calc.exe", vbNormalFocus

Exit Sub

Err:

MsgBox "You don't have a Calculator installed in your computer.", vbExclamation, "Calculator Missing"

End Sub

Private Sub mnuClsInfo_Click()

Addclass.Show

End Sub

Private Sub mnucontact_Click()

MsgBox "Please for any Query " & vbCrLf & "----------------------------- " & vbCrLf & "Just e-mail me at : [email protected]" & vbCrLf & vbCrLf & " Saad Ansari Email : [email protected]", vbOKOnly, "Online Help!"

End Sub

Private Sub mnuDlyAttn_Click()

frmstffattendance.Show

End Sub

Public Sub mnuedtdep_Click()

frmedtDep.Show

Page 140: School Black Book

School Management System

P a g e | 140

End Sub

Private Sub mnuFeeS_Click()

Feespayment.Show

End Sub

Private Sub mnuFeeStruct_Click()

feesstu.Show

End Sub

Private Sub mnuFindclass_Click()

Findclass.Show

End Sub

Private Sub mnuflnewUser_Click()

frmUserAdd.Show

End Sub

Private Sub mnuGenInfo_Click()

frmStffGeneral.Show

End Sub

Private Sub mnuhlpAbt_Click()

frmAbout.Show

Page 141: School Black Book

School Management System

P a g e | 141

End Sub

Private Sub mnuIndFee_Click()

frmIndfees.Show

End Sub

Private Sub mnuLock_Click()

Load frmLock

frmLock.Show vbModal

End Sub

Public Sub mnulogout_Click()

Dim rep

If SchoolMain.mnulogout.Caption = "Logout" Then

rep = MsgBox("Are you sure you want to Logout ?", vbYesNo, "Confirm Logout")

If rep = vbYes Then

Call connect

With rs_find

If .State = adStateOpen Then .Close

.Open "select * from UserLog", con, adOpenDynamic, adLockPessimistic

.AddNew

.Fields("UserID").Value = SchoolMain.Label2.Caption

.Fields("SessionStart").Value = frmLogin.lblval.Caption

.Fields("SessionEnd").Value = Now

Page 142: School Black Book

School Management System

P a g e | 142

.Fields("Description") = "Session Successfully Terminated"

.Update

.Close

End With

SchoolMain.Label2.Caption = ""

SchoolMain.Label5.Caption = ""

SchoolMain.Label6.Caption = ""

SchoolMain.Label8.Caption = ""

SchoolMain.Timer1.Enabled = False

SchoolMain.StatusBar1.Panels(1).Text = SchoolMain.StatusBar1.Panels(1).Text + " "

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

Page 143: School Black Book

School Management System

P a g e | 143

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

Page 144: School Black Book

School Management System

P a g e | 144

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

ElseIf SchoolMain.mnulogout.Caption = "Login" Then

Call Login

End If

dude:

Exit Sub

End Sub

Page 145: School Black Book

School Management System

P a g e | 145

Public Sub mnuNewDepart_Click()

frmNewDepart.Show

End Sub

Private Sub mnuNtpad_Click()

On Error GoTo Err

Shell "Notepad.exe", vbNormalFocus

Exit Sub

Err:

MsgBox "You don't have Notepad installed in your computer.", vbExclamation, "Notepad Missing"

End Sub

Public Sub mnuquit_Click()

Dim rep

On Error GoTo handle

rep = MsgBox("Are you sure you wanna Quit ? ", vbExclamation + vbYesNo, "Program Exit")

If rep = vbYes Then

If SchoolMain.Label2.Caption <> "" Then

Call connect

With rs_find

If .State = adStateOpen Then .Close

.Open "select * from UserLog", con, adOpenDynamic, adLockPessimistic

.AddNew

Page 146: School Black Book

School Management System

P a g e | 146

.Fields("UserID").Value = SchoolMain.Label2.Caption

.Fields("SessionStart").Value = frmLogin.lblval.Caption

.Fields("SessionEnd").Value = Now

.Fields("Description") = "Session Successfully Terminated"

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

MsgBox "Error : " & Error$, vbCritical + vbOKOnly, "ERROR"

End Sub

Private Sub mnurepClass_Click()

frmclassrep.Show

End Sub

Page 147: School Black Book

School Management System

P a g e | 147

Private Sub mnurepfee_Click()

AdodbConnection.Init_studFees_Report

End Sub

Private Sub mnurepRes_Click()

frmResultRep.Show

End Sub

Private Sub mnurepstu_Click()

AdodbConnection.Init_student_Report

End Sub

Private Sub mnurepuser_Click()

AdodbConnection.Init_user_Report

End Sub

Private Sub mnuresinfo_Click()

frmResult.Show

End Sub

Private Sub mnuresultinfo_Click()

frmResult.Show

End Sub

Page 148: School Black Book

School Management System

P a g e | 148

Private Sub mnuSalInfo_Click()

frmStffSalary.Show

End Sub

Private Sub mnuSaly_Click()

frmStffSalary.Show

End Sub

Private Sub mnuShortcuts_Click()

frmHlp.Show

End Sub

Private Sub mnustdtreg_Click()

frmsturegister1.Show

End Sub

Private Sub mnustffatt_Click()

teach_att_detail.Show

End Sub

Private Sub mnustffInfo_Click()

AdodbConnection.Init_staff_Report

End Sub

Page 149: School Black Book

School Management System

P a g e | 149

Private Sub mnustffreg_Click()

teachregister.Show

End Sub

Private Sub mnuStffsusp_Click()

teachsuspend.Show

End Sub

Private Sub mnustuatt_Click()

Stu_att_detail.Show

End Sub

Private Sub mnuStudel_Click()

frmstudel.Show

End Sub

Private Sub mnuStudFee_Click()

AdodbConnection.Init_studFees_Report

End Sub

Private Sub mnuStudGenInfo_Click()

frmStudGeneral.Show

End Sub

Page 150: School Black Book

School Management System

P a g e | 150

Private Sub mnuSysUser_Click()

frmSysUser.Show

End Sub

Private Sub mnuViewDepart_Click()

frmDepartment.Show

End Sub

Private Sub Timer1_Timer()

Label6.Caption = Time$

End Sub

Private Sub Timer2_Timer()

NLESLBL.Left = NLESLBL.Left - 100 'code to move the newlife tag in the form

If NLESLBL.Left + NLESLBL.Width <= 0 Then

NLESLBL.Left = Picture1.Width

End If

End Sub

Page 151: School Black Book

School Management System

P a g e | 151

Student Registration :

Student Register 1

Option Explicit

Public str As Variant

Dim pic_name As String, pic_ext As String, pic_changed As Boolean

Dim no As Integer

Private Sub Command1_Click()

cd1.ShowOpen

str = cd1.FileName

Image1.Picture = LoadPicture(str)

End Sub

Private Sub Command2_Click()

Image1.Picture = LoadPicture()

End Sub

Private Sub Command3_Click()

If Texfname.Text = "" Or Texmname.Text = "" Or Texlname.Text = "" Or _

Texmotname.Text = "" Or Texfatname.Text = "" Or Texgarname.Text = "" Or _

Texaddress.Text = "" Or Texcity.Text = "" Or Texstate.Text = "" Or _

Texpin.Text = "" Or Texphone.Text = "" Or Texmobile.Text = "" Or _

Page 152: School Black Book

School Management System

P a g e | 152

Texemail.Text = "" Or ComGen.Text = "" Or TexPOB.Text = "" Or _

Texnaton.Text = "" Or Texage.Text = "" Then

MsgBox "Please Fill all the entries", vbInformation + vbOKOnly, "FIELD EMPTY"

Else

Me.Hide

frmsturegister2.Show

End If

End Sub

Private Sub Command4_Click()

Unload Me

End Sub

Private Sub cmdAdd_Click()

On Error Resume Next

cdb.Filter = "All Picture Files|*.jpg;*.gif;*.bmp;*.wmf;*.ico|JPEG Images(*.jpg)|*.jpg|Bitmap Images (*.bmp)|*.bmp|Word Meta Files (*.wmf)|*.wmf|GIF Images (*.gif)|*.gif"

cdb.ShowOpen

If cdb.FileName <> "" Then

pcbox.Picture = LoadPicture(cdb.FileName)

pic_name = cdb.FileName

pic_ext = Right(cdb.FileTitle, 4)

pic_changed = True

Page 153: School Black Book

School Management System

P a g e | 153

End If

End Sub

Private Sub cmdclr_Click()

On Error Resume Next

Set pcbox.Picture = Nothing

pic_name = ""

pic_changed = True

End Sub

Private Sub cmdcls_Click()

Unload Me

End Sub

Private Sub cmdnext_Click()

Me.Hide

frmsturegister2.Show

End Sub

Private Sub dtdob_Click()

Dim a, b, c As Integer

a = Format(dtdob.Value, "yyyy")

b = Format(Date, "yyyy")

c = b - a

Page 154: School Black Book

School Management System

P a g e | 154

Texage.Text = c

End Sub

Private Sub Form_Load()

On Error Resume Next

Call connect

con.Refresh

With rs_find

.Open "select * from student_mstr", con, adOpenDynamic, adLockPessimistic

.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

Private Sub Texage_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Page 155: School Black Book

School Management System

P a g e | 155

Private Sub Texfatname_KeyPress(KeyAscii As Integer)

KeyAscii = character(KeyAscii)

End Sub

Private Sub Texfname_KeyPress(KeyAscii As Integer)

KeyAscii = character(KeyAscii)

End Sub

Private Sub Texlname_KeyPress(KeyAscii As Integer)

KeyAscii = character(KeyAscii)

End Sub

Private Sub Texmname_KeyPress(KeyAscii As Integer)

KeyAscii = character(KeyAscii)

End Sub

Private Sub Texmobile_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Private Sub Texphone_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Page 156: School Black Book

School Management System

P a g e | 156

Private Sub Texpin_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Student Register 2

Option Explicit

Dim pic_name As String, pic_ext As String, pic_changed As Boolean

Private Sub cmd_Bk_Click()

frmsturegister1.Show

Unload Me

End Sub

Private Sub ComCate_Click()

If ComCate.Text = "OTHER" Then

Label28.Visible = True

TexCat.Visible = True

End If

End Sub

Private Sub ComDiv_Click()

Texroll.Text = ""

Dim no

With rs_roll

Page 157: School Black Book

School Management System

P a g e | 157

If .State = adStateOpen Then .Close

.Open "select * from student_mstr where Std='" & ComStd.Text & "' and Div = '" & ComDiv.Text & "'", con, adOpenDynamic, adLockPessimistic

If .EOF = False Then

.MoveLast

no = Val(.Fields("roll_no")) + 1

Texroll.Text = no

Else

Texroll.Text = 1

End If

.Close

End With

End Sub

Private Sub Command1_Click()

Dim cntrl As Control

For Each cntrl In Me

If TypeOf cntrl Is TextBox Then

If cntrl.Text = "" Then

MsgBox "Please provide value in the blank field "

Exit Sub

End If

End If

If TypeOf cntrl Is ComboBox Then

Page 158: School Black Book

School Management System

P a g e | 158

If cntrl.Text = "" Then

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

Page 159: School Black Book

School Management System

P a g e | 159

.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

Page 160: School Black Book

School Management System

P a g e | 160

.Fields("Date_of_Admission") = dtofadm.Value

.Fields("specified_category") = TexCat.Text

If pic_name <> "" Then

FileCopy pic_name, App.Path & "\Miscellaneous\STUDENT_IMAGE\" & .Fields("student_id") & pic_ext

.Fields("picture") = "\Miscellaneous\STUDENT_IMAGE\" & .Fields("student_id") & pic_ext

End If

.Update

End With

MsgBox "Student Successfully Added, Please Proceed for Enrollment", vbInformation, "STUDENT ENROLLED"

Dim rep

rep = MsgBox("Do you wish to enroll new student ?", vbInformation + vbYesNo, "CREATE NEW")

If rep = vbYes Then

Unload frmsturegister1

Unload Me

frmsturegister1.Show

Else

Unload frmsturegister1

Unload Me

End If

End Sub

Page 161: School Black Book

School Management System

P a g e | 161

Private Sub Command2_Click()

Unload frmsturegister1

Unload Me

End Sub

Private Sub ComStd_Click()

Texroll.Text = ""

ComDiv.Clear

Call connect

With rs_class

If .State = adStateOpen Then .Close

.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

Private Sub Form_Load()

If frmsturegister1.cdb.FileName <> "" Then

frmsturegister1.pcbox.Picture = LoadPicture(frmsturegister1.cdb.FileName)

Page 162: School Black Book

School Management System

P a g e | 162

pic_name = frmsturegister1.cdb.FileName

pic_ext = Right(frmsturegister1.cdb.FileTitle, 4)

pic_changed = True

End If

Call connect

With rs_class

If .State = adStateOpen Then .Close

.Open "SELECT distinct Std FROM class_mstr", con, adOpenDynamic, adLockPessimistic

Do Until .EOF

ComStd.AddItem .Fields("Std")

.MoveNext

Loop

.Close

End With

End Sub

Private Sub Texanullinc_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Private Sub Texclasspre_Change()

If Not IsNumeric(Texclasspre) Then

MsgBox "Please provide numeric value", vbInformation, "WRONG FIELD VALUE"

Texclasspre.Text = ""

Page 163: School Black Book

School Management System

P a g e | 163

Texclasspre.SetFocus

End If

End Sub

Private Sub Texnodepend_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Private Sub Texphohome_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Private Sub Texphooffic_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Private Sub Texroll_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Page 164: School Black Book

School Management System

P a g e | 164

Staff Registration :

Staff Register 1

Option Explicit

Dim no As Integer

Dim pic_name As String, pic_ext As String, pic_changed As Boolean

Private Sub Command1_Click()

On Error Resume Next

cdb.Filter = "All Picture Files|*.jpg;*.gif;*.bmp;*.wmf;*.ico|JPEG Images(*.jpg)|*.jpg|Bitmap Images (*.bmp)|*.bmp|Word Meta Files (*.wmf)|*.wmf|GIF Images (*.gif)|*.gif"

cdb.ShowOpen

If cdb.FileName <> "" Then

pcbox.Picture = LoadPicture(cdb.FileName)

pic_name = cdb.FileName

pic_ext = Right(cdb.FileTitle, 4)

pic_changed = True

End If

End Sub

Private Sub Command2_Click()

On Error Resume Next

Set pcbox.Picture = Nothing

Page 165: School Black Book

School Management System

P a g e | 165

pic_name = ""

pic_changed = True

End Sub

Private Sub Command3_Click()

Dim cntrl As Control

For Each cntrl In Me

If TypeOf cntrl Is TextBox Then

If cntrl.Text = "" Then

MsgBox "Please provide value in the blank field "

Exit Sub

End If

End If

If TypeOf cntrl Is ComboBox Then

If cntrl.Text = "" Then

MsgBox "Please Select the appropriate value from the dropdown box"

Exit Sub

End If

End If

Next

Me.Hide

teachregister2.Show

End Sub

Page 166: School Black Book

School Management System

P a g e | 166

Private Sub Command4_Click()

Unload Me

End Sub

Private Sub DTPdob_Click()

Dim a, b, c As Integer

a = Format(DTPdob.Value, "yyyy")

b = Format(Date, "yyyy")

c = b - a

Texage.Text = c

End Sub

Private Sub Form_Load()

On Error Resume Next

Call connect

con.Refresh

With rs_find

If .State = adStateOpen Then .Close

.Open "select * from staff_mstr", con, adOpenDynamic, adLockPessimistic

.MoveLast

If IsNull(.Fields("staff_id").Value) Then

Texid.Text = 1

Else

no = .Fields("staff_id") + 1

Page 167: School Black Book

School Management System

P a g e | 167

Texid.Text = no

End If

.Close

End With

End Sub

Private Sub Texage_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Private Sub Texcn_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Private Sub Texfname_KeyPress(KeyAscii As Integer)

KeyAscii = character(KeyAscii)

End Sub

Private Sub Texlname_KeyPress(KeyAscii As Integer)

KeyAscii = character(KeyAscii)

End Sub

Private Sub Texmname_KeyPress(KeyAscii As Integer)

KeyAscii = character(KeyAscii)

Page 168: School Black Book

School Management System

P a g e | 168

End Sub

Private Sub Texmo_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Private Sub Texpin_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Staff Register 2

Option Explicit

Dim pic_name As String, pic_ext As String, pic_changed As Boolean

Private Sub cmd_Bk_Click()

teachregister.Show

unloa Me

End Sub

Private Sub cmdcls_Click()

Unload teachregister

Unload Me

End Sub

Page 169: School Black Book

School Management System

P a g e | 169

Private Sub cmdSave_Click()

On Error Resume Next

Dim cntrl As Control

For Each cntrl In Me

If TypeOf cntrl Is TextBox Then

If cntrl.Text = "" Then

MsgBox "Please provide value in the blank field "

Exit Sub

End If

End If

If TypeOf cntrl Is ComboBox Then

If cntrl.Text = "" Then

MsgBox "Please Select the appropriate value from the dropdown box"

Exit Sub

End If

End If

Next

Call connect

With rs_staff

If .State = adStateOpen Then .Close

.Open "select * from staff_mstr", con, adOpenDynamic, adLockOptimistic

.AddNew

.Fields("staff_id").Value = teachregister.Texid.Text

Page 170: School Black Book

School Management System

P a g e | 170

.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

Page 171: School Black Book

School Management System

P a g e | 171

.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

If pic_name <> "" Then

FileCopy pic_name, App.Path & "\Miscellaneous\STAFF_IMAGE\" & .Fields("staff_id") & pic_ext

.Fields("picture") = "\Miscellaneous\STAFF_IMAGE\" & .Fields("staff_id") & pic_ext

End If

.Update

.Close

MsgBox "Record Successfully Entered", vbInformation + vbOKOnly, "NEW RECORD ENTRY"

Page 172: School Black Book

School Management System

P a g e | 172

End With

End Sub

Private Sub Comtype_Click()

If Comtype.Text = "NON-TEACHING" Then

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

Private Sub Comdepid_Click()

With rs_find

If .State = adStateOpen Then .Close

Page 173: School Black Book

School Management System

P a g e | 173

.Open "select department_name from department where department_id= " & Val(Comdepid.Text) & "", con, adOpenDynamic, adLockPessimistic

Do Until .EOF

Texdepname.Text = .Fields("department_name")

.MoveNext

Loop

.Close

End With

End Sub

Private Sub Comexp_Click()

If Comexp.Text = "EXPERIENCED" Then

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

Page 174: School Black Book

School Management System

P a g e | 174

End Sub

Private Sub Form_Load()

If teachregister.cdb.FileName <> "" Then

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

If .State = adStateOpen Then .Close

.Open "select * from department", con, adOpenDynamic, adLockPessimistic

Do Until .EOF

Comdepid.AddItem .Fields("department_id")

.MoveNext

Loop

.Close

End With

End Sub

Private Sub Texenroll_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Page 175: School Black Book

School Management System

P a g e | 175

Private Sub Texnoyear_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Private Sub Texsal_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Page 176: School Black Book

School Management System

P a g e | 176

Creating Class :

Option Explicit

Dim no As Integer

Private Sub cmdAdd_Click()

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

Page 177: School Black Book

School Management System

P a g e | 177

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

Page 178: School Black Book

School Management System

P a g e | 178

Call connect

End Sub

Private Sub Command2_Click()

Dim I As Integer

For I = 0 To List1.ListCount - 1

If List1.Selected(I) = True Then

List1.RemoveItem I

End If

Next

End Sub

Private Sub cmdclos_Click()

Unload Me

End Sub

Private Sub cmdSav_Click()

Call connect

With rs_find

If .State = adStateOpen Then .Close

.Open "select * from class_mstr where Std = '" & Texstd.Text & "' and Div = '" & Texdiv.Text & "'", con, adOpenStatic, adLockOptimistic

If .RecordCount >= 1 Then

.Close

Page 179: School Black Book

School Management System

P a g e | 179

MsgBox " class allready preasent"

Texstd.Text = ""

Texdiv.Text = ""

Exit Sub

End If

.Close

End With

If Texclassid.Text = "" Or Texstd.Text = "" Or Texdiv.Text = "" Or _

TexPerstu.Text = "" Or _

Comsch.Text = "" Or Comacdbehav.Text = "" Or Texclassrec.Text = "" Then

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

If .State = adStateOpen Then .Close

.Open "select * from class_mstr", con, adOpenDynamic, adLockPessimistic

.AddNew

.Fields("Class_ID") = Texclassid.Text

Page 180: School Black Book

School Management System

P a g e | 180

.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

MsgBox "Class Successfully Created", vbInformation + vbOKOnly, "Add Class"

Unload Me

End If

Page 181: School Black Book

School Management System

P a g e | 181

End Sub

Private Sub Command4_Click()

cmdSav.Enabled = False

Command4.Enabled = False

cmdclos.Enabled = True

cmdAdd.Enabled = True

End Sub

Private Sub comstffid_Click()

On Error GoTo handle

Call connect

With rs_feesfind

Dim c As Double

c = Val(comstffid.Text)

If .State = adStateOpen Then .Close

.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

Page 182: School Black Book

School Management System

P a g e | 182

End With

Exit Sub

handle:

MsgBox "Error : " & Error, vbCritical + vbOKOnly

End Sub

Private Sub Form_Load()

On Error Resume Next

Call connect

con.Refresh

With rs_find

If .State = adStateOpen Then .Close

.Open "select * from class_mstr", con, adOpenDynamic, adLockPessimistic

.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

Page 183: School Black Book

School Management System

P a g e | 183

Private Sub Texdiv_KeyPress(KeyAscii As Integer)

KeyAscii = uppercharacter(KeyAscii)

End Sub

Private Sub TexPerstu_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Private Sub Texstd_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Page 184: School Black Book

School Management System

P a g e | 184

Creating Department :

Private Sub cmd_ok_NewDep_Click()

Unload Me

End Sub

Private Sub Command1_Click()

Call connect

With rs_dep

If .State = adStateOpen Then .Close

.Open "select * from department", con, adOpenDynamic, adLockPessimistic

.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")

Page 185: School Black Book

School Management System

P a g e | 185

If rep = vbYes Then

Unload Me

Call SchoolMain.mnuNewDepart_Click

Else

Unload Me

End If

End Sub

Private Sub Command2_Click()

Texdn.locked = False

Texdes.locked = False

Texdn.Text = ""

Texdes.Text = ""

Command1.Enabled = True

Command2.Enabled = False

End Sub

Private Sub Form_Load()

Call CenterForm(frmNewDepart)

On Error Resume Next

Call connect

con.Refresh

With rs_find

If .State = adStateOpen Then .Close

Page 186: School Black Book

School Management System

P a g e | 186

.Open "select * from department", con, adOpenDynamic, adLockPessimistic

.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

Page 187: School Black Book

School Management System

P a g e | 187

Creating Result:

Private Sub cmd_close_Click()

Unload Me

End Sub

Private Sub cmd_save_Click()

If lblnm.Caption = "" Then

MsgBox "please select a student"

Exit Sub

End If

If comSub.Text = "" Then

MsgBox " please select a subject "

Exit Sub

End If

If comExamnm.Text = "" Or txtMax.Text = "" Or txtMarkObt.Text = "" Or comRes.Text = "" Then

MsgBox " please select required fields"

Exit Sub

End If

Page 188: School Black Book

School Management System

P a g e | 188

Call connect

If rs_find.State = adStateOpen Then rs_find.Close

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

If rs_find.RecordCount > 0 Then

MsgBox "marks entry already present"

rs_find.Close

Exit Sub

End If

On Error Resume Next

Dim a As Integer

a = comSub.ListCount

Label4.Caption = a

With rs_find

If .State = adStateOpen Then .Close

.Open "select * from result", con, adOpenDynamic, adLockPessimistic

.AddNew

.Fields("student_id") = stu_id.Text

.Fields("Std") = ComStd.Text

.Fields("Div") = ComDiv.Text

.Fields("roll_no") = comRoll.Text

.Fields("exam_date") = Format(dtExam.Value, "yyyy")

Page 189: School Black Book

School Management System

P a g e | 189

.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

MsgBox "Record Successfully Entered", vbInformation + vbOKOnly, "RESULT"

comSub.RemoveItem comSub.ListIndex

End With

End Sub

Private Sub ComDiv_Click()

comRoll.Clear

comSub.Clear

Call connect

With rs_find

If .State = adStateOpen Then .Close

.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

Page 190: School Black Book

School Management System

P a g e | 190

Loop

.Close

End With

End Sub

Private Sub comExamnm_Click()

If comExamnm.Text = "I UNIT TEST" Then

txtMax.Text = 40

ElseIf comExamnm.Text = "II UNIT TEST" Then

txtMax.Text = 40

ElseIf comExamnm.Text = "I SEMESTER" Then

txtMax.Text = 100

ElseIf comExamnm.Text = "II SEMESTER" Then

txtMax.Text = 100

End If

End Sub

Private Sub comRoll_Click()

On Error Resume Next

comSub.Clear

stu_id.Text = ""

lblnm.Caption = ""

Call connect

Page 191: School Black Book

School Management System

P a g e | 191

With rs_find

If .State = adStateOpen Then .Close

.Open "select First_name,Middle_name,Last_name,student_id from student_mstr where Std='" & ComStd.Text & "' and Div ='" & ComDiv.Text & "'and roll_no='" & comRoll.Text & "'", con, adOpenDynamic, adLockPessimistic

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

If .State = adStateOpen Then .Close

.Open "select Subject1,Subject2,Subject3,Subject4,Subject5,Subject6,Subject7,Subject8,Subject9,Subject10,Subject11,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")

Page 192: School Black Book

School Management System

P a g e | 192

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

Private Sub ComStd_Click()

ComDiv.Clear

comSub.Clear

Call connect

With rs_find

If .State = adStateOpen Then .Close

.Open "select Div from class_mstr where Std='" & ComStd.Text & "'", con, adOpenDynamic, adLockPessimistic

Do Until .EOF

ComDiv.AddItem .Fields("Div").Value

.MoveNext

Loop

Page 193: School Black Book

School Management System

P a g e | 193

.Close

End With

End Sub

Private Sub comSub_Click()

If comSub.Text = "" Then

MsgBox "please select Subject"

Exit Sub

End If

End Sub

Private Sub Form_Load()

Call connect

dtExam.Value = Date

With rs_find

If .State = adStateOpen Then .Close

.Open "select distinct Std from class_mstr", con, adOpenDynamic, adLockPessimistic

Do Until .EOF

ComStd.AddItem .Fields("Std").Value

.MoveNext

Loop

.Close

End With

End Sub

Page 194: School Black Book

School Management System

P a g e | 194

Private Sub txtMarkObt_Change()

If Val(txtMax.Text) < Val(txtMarkObt.Text) Then

MsgBox "Invalid Marks Entered", vbInformation + vbOKOnly, "INVALID MARKS"

txtMarkObt.Text = ""

txtMarkObt.SetFocus

End If

End Sub

Private Sub txtMarkObt_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Page 195: School Black Book

School Management System

P a g e | 195

Creating User:

Private Sub cmdCan_Click()

Unload Me

End Sub

Private Sub cmdCreate_Click()

Call connect

If txtun.Text = "" Or txtPass.Text = "" Or txtrepass.Text = "" Or txtname.Text = "" Or comAcctyp.Text = "" Or comAcctyp.Text = "<<--SELECT-->>" Then

MsgBox "all fill all fields"

Exit Sub

End If

If txtPass.Text <> txtrepass.Text Then

MsgBox " please confirm password"

txtrepass.Text = ""

Exit Sub

End If

With rs_find

If .State = adStateOpen Then .Close

Page 196: School Black Book

School Management System

P a g e | 196

.Open " select * from user_mstr where staff_id= " & Val(comstffid.Text) & "", con, adOpenDynamic, adLockOptimistic

If .RecordCount >= 1 Then

.Close

MsgBox "current user already present"

comstffid.Text = ""

Exit Sub

End If

.Close

End With

Dim rep

rep = MsgBox("Are you sure you wanna create new User ?", vbYesNo)

If rep = vbYes Then

With rs_find

If .State = adStateOpen Then .Close

.Open "select * from user_mstr", con, adOpenDynamic, adLockPessimistic

.AddNew

.Fields("user_id") = txtun.Text

.Fields("pass") = txtPass.Text

.Fields("staff_id").Value = Val(comstffid.Text)

.Fields("Acct_typ") = comAcctyp.Text

.Update

Page 197: School Black Book

School Management System

P a g e | 197

.Close

MsgBox "User Successfully Created !"

End With

Unload Me

Else

Exit Sub

End If

End Sub

Private Sub comstffid_Click()

Call connect

With rs_find

If .State = adStateOpen Then .Close

.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

Private Sub Form_Load()

Page 198: School Black Book

School Management System

P a g e | 198

Call CenterForm(frmUserAdd)

Call connect

With rs_find

If .State = adStateOpen Then .Close

.Open "select staff_id from staff_mstr", con, adOpenDynamic, adLockPessimistic

Do Until .EOF

comstffid.AddItem .Fields("staff_id").Value

.MoveNext

Loop

.Close

End With

End Sub

Fees Payment :

Option Explicit

Dim a As Integer

Private Sub cmd_can_Click()

Call Command3_Click

Command2.Enabled = False

cmd_can.Enabled = False

Page 199: School Black Book

School Management System

P a g e | 199

Cmd_chk.Enabled = True

End Sub

Private Sub Cmd_chk_Click()

Cmd_chk.Enabled = False

Command2.Enabled = True

cmd_can.Enabled = True

On Error Resume Next

If Text10.Text = "" Then

Text10.Text = Val(Text9.Text) - Val(txtpaid.Text)

Else

Text10.Text = Val(Text10.Text) - Val(txtpaid.Text)

End If

End Sub

Private Sub cmd_rst_Click()

TexfeepayID.Text = ""

txtpaid.Text = 0

Call Command3_Click

End Sub

Private Sub cmdFeesPayOk_Click()

Unload Me

End Sub

Page 200: School Black Book

School Management System

P a g e | 200

Private Sub Command2_Click()

Command2.Enabled = False

cmd_can.Enabled = False

Cmd_chk.Enabled = True

On Error Resume Next

If TexfeepayID.Text = "" Or TexfeepayID.Text = "" Or Text9.Text = "" Or txtpaid.Text = 0 Or Text10.Text = "" Then

MsgBox "Please fill the asterisk marked field", vbInformation + vbOKOnly, "Field Empty"

Else

Call connect

With rs_feepay

If .State = adStateOpen Then .Close

.Open "SELECT * FROM Fees_Payment", con, adOpenDynamic, adLockPessimistic

.AddNew

.Fields("Student_ID").Value = Feespayment.TexfeepayID.Text

.Fields("Paid") = Feespayment.txtpaid.Text

.Fields("Due") = Feespayment.Text10.Text

.Fields("fees_date") = DTPfees.Value

.Fields("fees_time") = Format(Now, "hh:mm:ss")

.Fields("total") = Text9.Text

.Update

Page 201: School Black Book

School Management System

P a g e | 201

.Close

End With

MsgBox "Payment successfully accomplished", vbInformation + vbOKOnly, "Fee Payment"

End If

Dim rep

rep = MsgBox("Would you like to perform another transaction ? ", vbQuestion + vbYesNo, "New Transaction")

If rep = vbYes Then

txtpaid.Text = 0

Call Command3_Click

Else

Unload Me

End If

End Sub

Public Sub Command3_Click()

Cmd_chk.Enabled = True

On Error Resume Next

Clear

Call connect

With rs_sudfind

Dim c As Double

c = Val(TexfeepayID.Text)

If .State = adStateOpen Then .Close

Page 202: School Black Book

School Management System

P a g e | 202

.Open "select First_name,Middle_name,Last_name,Std,Div,roll_no from student_mstr where student_id=" & c & "", con, adOpenDynamic, adLockPessimistic

If .RecordCount <= 0 Then

MsgBox "no record found Enter correct Student ID"

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

If .State = adStateOpen Then .Close

.Open "select Tution_Fees,General_Fund,Annual_Charges,Examination_Fee,Computer_Fee,Admission_Fee,Total from fees_stru where Std = '" & txtfpstd.Text & "'", con, adOpenDynamic, adLockPessimistic

Page 203: School Black Book

School Management System

P a g e | 203

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

If .State = adStateOpen Then .Close

.Open "select Due from Fees_Payment where Student_ID =" & Val(Feespayment.TexfeepayID.Text), con, adOpenDynamic, adLockPessimistic

Do Until .EOF

Text10.Text = .Fields("Due").Value

.MoveNext

Loop

.Close

End With

a = Text10.Text

Page 204: School Black Book

School Management System

P a g e | 204

End Sub

Private Sub Form_Load()

DTPfees.Value = Date

End Sub

Private Sub TexfeepayID_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Private Sub Text10_Change()

If Val(Text10.Text) < 0 Then

MsgBox "Minimum value reached", vbInformation + vbOKOnly, "Error"

txtpaid.Text = ""

Text10.Text = a

End If

End Sub

Private Sub Clear()

txtfpfname.Text = ""

txtfpmname.Text = ""

txtfplname.Text = ""

txtfpstd.Text = ""

txtfpdiv.Text = ""

txtfproll.Text = ""

Page 205: School Black Book

School Management System

P a g e | 205

Text3.Text = ""

Text4.Text = ""

Text5.Text = ""

Text6.Text = ""

Text7.Text = ""

Text8.Text = ""

Text9.Text = ""

Text10.Text = ""

End Sub

Private Sub txtpaid_KeyPress(KeyAscii As Integer)

KeyAscii = number(KeyAscii)

End Sub

Daily Attendance :

Option Explicit

Dim c As Double

Private Sub cmdok_Click()

If Texname.Text = "" Then

MsgBox "select staff_id"

Exit Sub

Page 206: School Black Book

School Management System

P a g e | 206

End If

If comname.Text = "" Then

MsgBox "select staff_id"

Exit Sub

End If

If comstatus.Text = "" Or comname.Text = "" Then

MsgBox "select status"

Exit Sub

End If

c = Val(comname.Text)

With rs_att

If .State = adStateOpen Then .Close

.Open "select * from attendance", con, adOpenDynamic, adLockPessimistic

.AddNew

.Fields("staff_id") = c

.Fields("date") = Date

.Fields("status") = comstatus.Text

.Update

.Close

End With

comname.RemoveItem comname.ListIndex

Texname.Text = ""

End Sub

Page 207: School Black Book

School Management System

P a g e | 207

Private Sub cmdxt_Click()

Unload Me

End Sub

Private Sub comname_Click()

Texname.Text = ""

Call connect

With rs_att

c = Val(comname.Text)

If .State = adStateOpen Then .Close

.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

Private Sub Form_Load()

lbldate.Caption = Format(Date, "long date")

Page 208: School Black Book

School Management System

P a g e | 208

On Error Resume Next

Call connect

With rs_att

If .State = adStateOpen Then .Close

.Open "select staff_id,fname,mname,lname from staff_mstr where staff_mstr.staff_id not in ( select staff_id from attendance where date=# " & Format(Date, "m-d-yy") & "#)", con, adOpenStatic, adLockOptimistic

If Not .EOF Or .BOF Then

rs_att.MoveFirst

End If

Do Until .EOF

comname.AddItem .Fields("staff_id")

.MoveNext

Loop

.Close

End With

End Sub

Salary :

Private Sub cmd_can_Click()

txtsal.Text = ""

cmbmon.Text = ""

Page 209: School Black Book

School Management System

P a g e | 209

cmbmon.Enabled = False

txtsal.Enabled = False

DTPsalYear.Enabled = False

cmdSave.Enabled = False

cmd_can.Enabled = False

cmdAdd.Enabled = True

End Sub

Private Sub cmdAdd_Click()

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

Private Sub cmdClose_Click()

Unload Me

End Sub

Private Sub cmdSave_Click()

Page 210: School Black Book

School Management System

P a g e | 210

Call connect

With rs_find

If .State = adStateOpen Then .Close

.Open "select * from salary where staff_id=" & Val(com_id.Text) & " and salMonth='" & cmbmon.Text & "' and salYear='" & Format(DTPsalYear, "yyyy") & "'", con, adOpenDynamic, adLockOptimistic

If .RecordCount >= 1 Then

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

If .State = adStateOpen Then .Close

.Open "select * from salary", con, adOpenDynamic, adLockOptimistic

.AddNew

.Fields("staff_id") = Val(com_id.Text)

.Fields("salPaid") = txtsal.Text

Page 211: School Black Book

School Management System

P a g e | 211

.Fields("salMonth") = cmbmon.Text

.Fields("salYear") = Format(DTPsalYear, "yyyy")

.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

Private Sub com_id_Click()

On Error Resume Next

Call connect

With rs_find

If .State = adStateOpen Then .Close

.Open "select * from staff_mstr where staff_id=" & Val(com_id.Text), con, adOpenDynamic, adLockOptimistic

Do Until .EOF

Page 212: School Black Book

School Management System

P a g e | 212

Texname.Text = .Fields("lname") & " " & .Fields("fname") & " " & .Fields("mname")

texsal.Text = .Fields("salary")

.MoveNext

Loop

.Close

End With

With rs_find

If .State = adStateOpen Then .Close

.Open "select * from salary where staff_id=" & Val(com_id.Text), con, adOpenDynamic, adLockOptimistic

If .RecordCount <= 0 Then

.Close

MsgBox "No Entry for this Record !"

Exit Sub

End If

Do Until .EOF

txtlsal.Text = .Fields("salPaid")

txtlmon.Text = .Fields("salMonth")

txtlyear.Text = .Fields("salYear")

.MoveNext

Loop

.Close

Page 213: School Black Book

School Management System

P a g e | 213

End With

End Sub

Private Sub Command1_Click()

End Sub

Private Sub Form_Load()

Call connect

With rs_find

If .State = adStateOpen Then .Close

.Open "select * from staff_mstr", con, adOpenDynamic, adLockOptimistic

Do Until .EOF

com_id.AddItem .Fields("staff_id")

.MoveNext

Loop

.Close

End With

End Sub

Private Sub texsal_Change()

texsal.Text = Format(Val(texsal), 0#)

End Sub

Page 214: School Black Book

School Management System

P a g e | 214

View Student General Record :

Dim a As String

Private Sub ComStd_Click()

ComDiv.Clear

Call connect

With rs_class

If .State = adStateOpen Then .Close

.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

Private Sub ComDiv_Click()

Call connect

Page 215: School Black Book

School Management System

P a g e | 215

Dim sql As String

If rs_stugrid.State = adStateOpen Then rs_stugrid.Close

rs_stugrid.CursorLocation = adUseClient

sql = "select * from student_mstr where Std= '" & ComStd.Text & "' and Div= '" & ComDiv.Text & "'"

rs_stugrid.Open sql, con, adOpenKeyset, adLockOptimistic

If rs_stugrid.RecordCount <= 0 Then

MsgBox "no record found"

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

Page 216: School Black Book

School Management System

P a g e | 216

Next

FlexMember.Rows = rs_stugrid.RecordCount + 1

For r = 1 To rs_stugrid.RecordCount

For c = 0 To rs_stugrid.Fields.count - 1

FlexMember.TextMatrix(r, c + 1) = IIf(IsNull(rs_stugrid(c).Value), "{Null}", rs_stugrid(c).Value)

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

Page 217: School Black Book

School Management System

P a g e | 217

Private Sub cmdClassfindOk_Click()

Unload Me

End Sub

Private Sub Cmdgo_Click()

txtfn.Text = ""

txtmn.Text = ""

txtln.Text = ""

txtstd.Text = ""

txtdiv.Text = ""

On Error Resume Next

Call connect

With rs_find

If .State = adStateOpen Then .Close

.Open " select * from student_mstr where student_id = " & Val(txtsuid.Text) & "", con, adOpenDynamic, adLockPessimistic

If .RecordCount <= 0 Then

MsgBox "no record found"

.Close

txtsuid.Text = ""

Page 218: School Black Book

School Management System

P a g e | 218

Exit Sub

End If

End With

With rs_find

Dim c As Double

c = Val(txtsuid.Text)

If .State = adStateOpen Then .Close

.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

a = App.Path & .Fields("picture")

pcbox.Picture = LoadPicture(a)

.MoveNext

Loop

.Close

End With

Page 219: School Black Book

School Management System

P a g e | 219

End Sub

Private Sub cmdStdGenFull_Click()

Me.Hide

frmStudFull.Show

End Sub

Public Function fillgrid()

Call connect

Dim sql As String

rs_stugrid.CursorLocation = adUseClient

sql = "select * from student_mstr"

rs_stugrid.Open sql, con, adOpenKeyset, adLockOptimistic

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

Page 220: School Black Book

School Management System

P a g e | 220

For r = 1 To rs_stugrid.RecordCount

For c = 0 To rs_stugrid.Fields.count - 1

FlexMember.TextMatrix(r, c + 1) = IIf(IsNull(rs_stugrid(c).Value), "{Null}", rs_stugrid(c).Value)

Next c

rs_stugrid.MoveNext

Next r

End With

End Function

Private Sub FlexMember_Click()

On Error Resume Next

txtsuid.Text = ""

txtfn.Text = ""

txtmn.Text = ""

txtln.Text = ""

txtstd.Text = ""

txtdiv.Text = ""

pcbox.Picture = Nothing

Call connect

rs_stugrid.Open "select * from student_mstr", con, adOpenDynamic, adLockOptimistic

rs_stugrid.MoveFirst

rs_stugrid.Move FlexMember.Row - 1

Page 221: School Black Book

School Management System

P a g e | 221

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)

a = App.Path & FlexMember.TextMatrix(FlexMember.Row, 42)

pcbox.Picture = LoadPicture(a)

End Sub

Private Sub Form_Load()

Call connect

fillgrid

With rs_find

If .State = adStateOpen Then .Close

.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

Page 222: School Black Book

School Management System

P a g e | 222

CONCLUSION

Page 223: School Black Book

School Management System

P a g e | 223

CONCLUSION

As we know about the drawbacks of the conventional methods of the

management of the records of the various entities of school, as a result this

software was developed for removing the difficult and tedious methods of the

conventional management of the school. This software provides more or less every

important management aspect of the school. Hence, this is one of the plus point of

this software. The software is user-friendly and easy-to-use. With a short demo the

user may be able to manage the all aspects of this software. The know-how of this

software is mandatory to use it to its fullest.

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.

Also with the increasing complexity of world and with increasing

intelligence, I assure that we will update this software package by applying the

requirements arousing out of this software in the run of its use of schools.

Page 224: School Black Book

School Management System

P a g e | 224

SCOPE OF FUTURE APPLICATION

Page 225: School Black Book

School Management System

P a g e | 225

SCOPE OF FUTURE APPLICATION

Software Development phase is later phase of SDLC cycle. This phase is

totally depended on analysis phase .Analysis phase decides which part of the problem has

to start to design and what to design and code .

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.

Computerization may make them perfect. Whenever management of video

library think to expand the facility ; they would have better option from current stages.

Page 226: School Black Book

School Management System

P a g e | 226

BIBLIOGRAPHY

Page 227: School Black Book

School Management System

P a g e | 227

BIBLIOGRAPHY

Software Engineering - By Roger s. Pressman

Beginning Visual Basic 6.0 - By Peter Wright

Mastering Visual Basic 6.0 - By Evangelos Petroutsos

Microsoft Access - By Russell A.Stultz

Websites Resources :

1) www.google.com

2) www.microsoft.com

3) www.planetsourcecode.com

4) www.bing.com

5) www.vbsourcecode.com