+ All Categories
Home > Documents > Documentation

Documentation

Date post: 19-Jul-2016
Category:
Upload: ujwaljaiswal
View: 7 times
Download: 5 times
Share this document with a friend
158
School Management System TABLE OF CONTENTS Topics: Page No. Introduction 2 Preface 3 Purpose of our Software 4 Documentation 6 Preliminary System Analysis Identification of Need Feasibility Study Technical Feasibility Economical Feasibility Operational Feasibility Need of New System Flow in Present System Hardware and Software Specification System Analysis Software Engineering Paradigm Applied System Design Dataflow Diagram E-R Diagram Development Phase Database Design Coding Reports Forms Validation Checks Gantt Chart 1
Transcript
Page 1: Documentation

School Management System TABLE OF CONTENTS

Topics: Page No.

Introduction 2

Preface 3

Purpose of our Software 4

Documentation 6

Preliminary System Analysis

Identification of Need

Feasibility Study

Technical Feasibility

Economical Feasibility

Operational Feasibility

Need of New System

Flow in Present System

Hardware and Software Specification

System Analysis

Software Engineering Paradigm Applied

System Design

Dataflow Diagram

E-R Diagram

Development Phase

Database Design

Coding

Reports

Forms

Validation Checks

Gantt Chart

Implementation & Maintenance

Cost Estimation Of Project

Future Scope

Bibliography

1

Page 2: Documentation

INTRODUCTION

School Management System

2

Page 3: Documentation

School Management System PREFACEThe growth of computer software during the last few years has been phenomenal. Emerged as

the need of every next door, due to the speed, probability, and compactness of ideas. It has now

been implemented on virtually every short of activity. From micro to mainframe. In one sense

the software is construction manual. It describes the tools the user need for the success of his

action, and offers blue print help to built and manage successful database and to fulfill his other

demands. In second sense, it is a cook book, it lists the ingredients- the principal you need to

follow to become a good software user. It gives the recipe for mixing them in correct

proportion.

3

Page 4: Documentation

School Management System PURPOSE OF OUR PROJECTOne of the purpose of this project is to provide you the information that the School Details

works with Student Detail and their project maintenance, and many other too. It creates an

action plan that can make you operate any kind of database software. As you go through this

project, keep a notebook handy, divided into three section goal of project, the stages of operate

the software and your database for input. The principles in this project are universal. They are

applicable in any situation, organization or country. The main purpose of this project is to test

this project from the user point of view so that we can get the updates amendments for this

project. while subordinate purpose is to create a new version of School Management System

software which is handy to handle and convenient for cost efficiency.

Introduction: School Management SystemGoals of School Management System

Promote continuous excellence in Admine quality.

Continue to develop coverage plans and facility plans to meet student needs and accommodate volume growth. Expand the roll out the student record and their maintenance tools to two additional high volume departments/ divisions. Develop and implement records safety initiatives in the simulation and skills center including training in the placement of center venous lines and in triggers/ crisis management. Achieve higher rate of donor conversion and organs/ donors the national goals for organ donation.

Ensure outstanding patient, physician and employee satisfaction and loyalty

Complete the roll of out of student satisfaction training. Implement key reformation formal referring physician survey including formal outreach to first time refers an identifying selected enhancement to discharge fax for referring physician. Develop and implement a plan for assessment of core residency program performance in attraction and training resident. Continue foster open communication between employee management through town halls.

Sustain Financial strength trough achievement of our Inpatient and outpatient volume goals and increased focused on productivity targets.

Support growth to achieve budgeted inpatient and ambulated volumes. Completing the facility master plan and developing list of recommended multi – year facility action required to ensure adequate capacity for ambulatory visits, surgical cases, and inpatient admission continuing to indentify a carry out projects to reduce energy utilization. Healthcare organizations are currently faced with verity of decisions regarding computer system and information.

4

Page 5: Documentation

School Management System Materials School Management System One of the School system greatest resource s is its information. The School Management System, whether computerized or manual, is the means by which data is collection, integrated, and retrieved. However, because optimal patient treatment, financial management, and School Management System operation required that decision be best on current, accurate, complete and well organized data, a computerized School Management System, when correctly implemented, can be the most effective means of disseminating valuable information to decision market.

The School Management System as a source for the planning and feed-back of specialized health care.In university School, choices are made to which extends specialized health care will be supported. It is the characteristic, for this type of care, that it takes place in a process of the continuer advanced of medical technology and the growing awareness by consumers and payers. Specialized health care contributes to the School Management System qualifiers having a political and strategic impact. The School management board needs information for planning and budgeting this new task. Much of the information will be based on data stored in the Schoool Management System.

Other New Feature Support for web service (Professional and Enterprise Edition only) Impact web page generation from web module (Professional and Enterprise Edition

only) – “Web Server Programming With Web Snap.” SOAP support for multi tier database application (Enterprise edition only) – “SOAO

and Web Server With Biz,” and “Distributed application with data snap”. A non-BDE database component set called db Express, database application (Interface,

DB2, Oracle, MYSQL, Informix) – “Data access with db Express.” Enhancement to the IDE – “Visual Basic Project and more on the IDE.”

5

Page 6: Documentation

School Management System

6

DOCUMENTATION

Page 7: Documentation

School Management System PRELIMINARY SYSTEM ANALYSIS

The analysis involves a detailed analysis of the different function to be carried out by the

system and identification of data flow among the different function. Each function required by

the user is studied carefully and then recursively decomposed into the various sub function (i.e.

processing activity). The addition to identify dataflow diagrams techniques (DFD) is used.

Structure analysis usually sticks itself at need to be done care fully avoided functional

requirement specifies in the document are decomposed into sub function and the dataflow

between these sub function are analyses.

After structure analysis architectural design (or the high level design) and detailed

design are carried out. The various detailed steps are to be taken for the design of the system,

out of them some are as:-

identification of need

preliminary investigation

feasibility study

need of new system

flaws in present system

IDENTIFICATION OF NEEDIn this phase the determination of requirement need by the system are analyzed. At the end of

the system a set of requirement and their priorities are evaluated. In this phase we draw

understandable plan of what the system will provide as output. We also determine the need and

priorities of the task needed by the end use. Detailed specification of the information needed by

the end user are planned.

7

Page 8: Documentation

School Management System

8

FEASIBILITY STUDY

Page 9: Documentation

School Management System FEASIBLITY STUDYThe feasibility study is a general examination of the potential of an idea to be converted into a business. This study focused largely on the ability of the entrepreneur to convert the idea into business enterprise. The feasibility study differs from the viability study as the viability of the idea.To be converted into a business enterprise.A feasibility study is a preliminary study undertaken to determine and document a project’s viability or the discipline of planning organizing, All or apart also known as feasibility analysis. The term is also used to refer to the resulting document. The result of the study are used to make a decision whether or not to proceed with the project. If it is indeed leads to a project being approved, it will – before the real work of the proposed start and be used to ascertain the likelihood of the project’s success. It is an analysis of possible alternative solution to the problem and a recommendation on the best alternative. it can decide, for example, whether order processing can be carried out by new system more efficiently than the previous one.Types of Feasibility StudiesThe following sections describe various types of feasibility studies.

i. Marketing And Real Estimation Feasibility Market feasibility study typical involves testing geographic location for a real estate development project, and usually involves parcels of real estate land. Developers often conduct market studies to determine the best location within jurisdictions, and to test alternative land users for given parcels.

ii. Technology And System Feasibility This involves question such as whether the technology need for the system exists, how difficult it will be to build, and whether the firm has enough experience using the technology. The assessment is based on outline design of system requirements in terms of input, processes, output, fields, programs, and procedure.

iii. Resources Feasibility This involves question such as how much time is available to build the new system, when it can be build, whether it interface with normal business operations, type and amount of resources required, dependencies, etc.

iv. Operational Feasibility Do the current word practices and procedures support a new system. Also social factor i.e. how the organization changes with affect the working lives of those affected by the system.

v. Legal Feasibility Determines whether the proposed system conflicts with legal requirements, e.g. a data processing system must comply with the local data protections acts. When an organizations has either internal or external legal counsel, such reviews are typically standard.

9

Page 10: Documentation

School Management System vi. Schedule Feasibility

Project will fail if it takes to long to be completed before it is useful. Typically this means estimates how long the system will take to develop and if it can be completed in a given time period using some method like payback period.

vii. Economic Feasibility Economic analysis is the most frequently method for evaluating the effectiveness of a candidate system. More commonly known as cost/Benefit analysis, the procedure is to determine the benefit and saving that are excepted from a candidate system and them with costs. If benefit outweighs costs, them the decision is made to design and implement the system.

NEED OF NEW SYSTEM In stage the salesperson takes qualified prospects through a series of question and answer session in order to identify requirements of the prospect. During this step, the salesperson will attempt to help the buyer identify and quantify a business need or a “gap” between where the client is that gap, does can be clarified to determine if the solution will fill all, part of the overall gap. From this procedure the salesperson is able to come up with a proposal suggest in various products/services that will suffice the need as presented by the prospect.

FLOWS IN PRESENT SYSTEMWe found the following flaws in present system:-

1) They were much tougher to operators. As well to understand for others.2) They were not able to maintain proper records customers transactions employee

information’s in a structure manner. The biggest flaws was that they couldn’t avoid data redundancy.

3) They were much slower to bring out the needed information.If a new person wanted to learn the functioning and operating those programs, it took long time to learn them hence they got tired of it and sometimes abandoned the idea of learning.

10

Page 11: Documentation

HARDWAREAND

SOFTWARE SPECIFICATON

School Management System

11

Page 12: Documentation

School Management System Software and Hardware Requirements specification

Hardware1. A machine (Dual Core), which has at least 512 GB hard disk with 2 GB RAM.2. Printer3. Visual Basic 6.0 & Ms-Access4. Ms-Office for documentation

Platform & Tools usedThe system is developed to run under Windows platform. It also uses various tools, Compile and libraries, which are available with Windows for the development and implementation of this project. A brief description about the platform and tools used are given below.

Platform WindowsWindows is a fast developing, free, multi-user, multitasking and multi processing operating system. Since it is free software anyone can work on it, make changes and enhance it. The window command controls the display window. You can use this command to change the display characteristics of the window or provide a destination window for the driver to use in place of the default display window. Digital-video and video-overlay devices recognized the command. Some of the features, which justify the selection of windows as a platform for my project, are given below.

Open source

Free

Availability of wide range of compiler and utilities

Database server support

GUI supports and Designers, tools and libraries to build GUI

Support for a variety of hardware

Worldwide user group support

Highly reliable and secure

Choice of the ToolsFor efficient implementation of the plan I have choose two tools. Microsoft Visual Basic 6.0 front end tool & Microsoft Access 2003 back end tool for handling the data.

Software RequirementsFor efficient implementation of the plan we have choose two tools. Visual Basic Language as a front end tool & MS-Access as back end tool for handling the data.

12

Page 13: Documentation

School Management System Visual BasicVisual Basic evolved from BASIC. BASIC was developed in the mid-1960s. BASIC’s primary purpose was to help people learn how to program. It is the enhance version of BASIC language developed by Microsoft Corporation. The widespread use of BASIC with types of computers led to many enhancements to the language. With the development of Microsoft Windows GUI in the late 1980s, the natural evolution of BASIC was Visual Basic, which was created by Microsoft Corporation in 1991. Until Visual Basic appeared, developing Microsoft Windows based application was a difficult, cumbersome process Visual Basic greatly simplifies Windows application development. Since 1991 six versions have been released, with the latest Visual Basic 6.0, appearing in September 1998.Although Visual Basic is derived from the BASIC programming language, it is a distinctly different language. Providing powerful features such as graphical user interfaces, event handling, access to Win 32 API, Object-oriented features, error handling, structured programming and much more. Microsoft provides several versions of Visual Basic, the learning edition, the professional edition, and the Enterprise edition. The learning edition provides fundamental programming capabilities. The Professional Edition provides a much richer set of programming capabilities then the learning edition and is the choice of many programmers when Basic based applications. The Enterprise edition is used for developing large-scale, multi-user, commercial applications that meet the programming needs of large organizations. Visual Basic is an interpreted language. However, the professional and Enterprise edition allow Visual Basic code o be native code. Event Driven Programming

From the programmers point of views the principle different found in GUI is the need to employ event driven programming technique. That is at any instant the program must be ready to respond to a wide variety of user actions at the interface. In a traditional programming environment, the program performs the runtime proceeding requesting the user input. And at any instance the program has only one point of interactions. While using GUI the user can move to any point of screen, select a menu item, select menu item from drop down list, and move the whole window. Thus the program has to respond to vast number of user actions at any instant. The style and structure of event driven program is therefore different from traditional program. In traditional programs, the application itself controls which portion of code to be executes and in what sequence. Execution starts with first line of code and follows a predefined path through the application. Calling procedures as needed. In an even driven application the code does not follow a predetermined path. It executes different code section in response to events. Events can be triggered by the user’s actions, by message from the system or other applications of even from the application itself. The traditional application development process can break into three distinct steps, writing, compiling and testing code. With this application, if we make a mistake in writing our code, the error is caught by the compiler when we start compile our application. We must then find and fix the errors and begin the compile cycle again. Event driven application use interactive approach. It interprets the code as we enter it catching and highlighting most syntax or spelling errors on the fly. It is almost like having an expert watching as we enter our code. In addition to catching error on the fly, it also partially compiles the codes as it is entered. When the program is ready to run.

13

Page 14: Documentation

School Management System There is only slight delay to finish compiling. If compiler finds error, it as highlighted in the code. We can fix the error and continue compiling without having to start over.

The major advantages of GUI system are: More natural metaphor of underlying operation.

More quickly learned by users.

Consistent interface for winding range of software product.

Convenience in window and pointing techniques.

Good inter program communication.

Proper integration with distributed system.

Integrates both textual and graphical data.

Predefined programming tools like menu, windows, icons, etc.

Provides built in functionality like windows resizing, movement etc.

Inter-program communication facilities application

Expansion and integration.

Types of events:In event driven programming technique the events are generates by different means. And these events basically area classified on the basis of their source of generation. Events are broadly classified into four categories:

System Events : System events are the events generates by the operating system. These events create communication between the system and programs. These events triggered whenever something happens in a system and system conveys the corresponding information to the program. The information is sent in the form of messages to the program and responds to that if needed.

Control Events : Control event are the events generates by the different controls. As the controls like text boxes, buttons like boxes menus as also the windows they also generates messages. These messages are specific to each control. The control event is very important aspect of event driven programming technique and it create user-friendly user interface.

User Events : These events are the actions performed by the users. These are generated by the users. But the user events are system dependent. If the system is working properly then only the user can events. Users events can be of varied type such as clicking a right mouse button, moving and resizing the window etc.

Other Events : These events are miscellaneous events, which are defined by the

14

Page 15: Documentation

School Management System users or more often by programmers. These are the events, which programmers specifically define for their program.

VB Project Structure1 Each application is single Project.

2 Projects consist of forms and/or Modules.

3 Forms contain Controls, Subroutines and Functions.

4 Modules contain global variable Declaration, Subroutines and function.

5 Subroutines and function are handled in a similar manner to other languages.

6 Forms and Modules (and Classes) may be included in other Projects.

7 Variables have scope that is global or within a form or within a Subroutines Function.

VB Controls:1Events (e.g. click) {passed to the control by windows. These are located in a combo box in

the code window.

2Methods (e.g. Set Focus) {actions that the control can initiates. There are typically generated by programmer writing code.

3Properties (e.g. Font Italic) {values associated with a control that can effect its operations. These are accessed in the Properties windows (press the f4 key) or from the tool bar when a object is selected.

Procedures:Subroutines & Functions are either private or public. Modules usually contain any required Public Variables or Subroutines. Classes contain user-defined objects.

Functions and Subroutines have the form:Public Function F (N As integer) as integer

StatementsEnd functionPrivate Function Find name (this name as string)

StatementsEnd sub

Data Environment and Data Report:Visual Basic can connect to many kinds of data sources including Access database, and even non-relational data sources. The bridge between the data sources and Visual Basic is through the data environment service. The Data environment is a graphical designer that allows you to quickly create ADO Connection and Commands to access your data. The Data Environment designer provides a dynamic programming interface to the data access object in your project. In addition, the Data Environment provide advanced data shaping service- the ability to create

15

Page 16: Documentation

School Management System hierarchies if related data, aggregates and automating groupings, all without code. The Data Environment is designed for Active data Objects (ADO). For backward compatibility and project maintenance, Remote Data Object (RDO) and Data Access Objects (DAO) are still supported, through with slightly less power.Adding a Data Environment To a VB Project : 1 From the menu select Project Add Data environment.

2 If you want to change the name of the Data Environment, click on Dataenvironment1. Then change the Name property in the properties window.

Set the Connection

A data environment is made up of one or more connection. To set the connections information, click on connection1.

1 Change the name of connection1 with the Name property In the Properties window. You’ I probably wants to name of the database you are connecting to. The name cannot contain spaces.

2 To set the connection information, click on the properties button in the Data environment toolbar or right click on the connection and select properties.

3 In the provider tab, select type of data source. For access as database, select Microsoft Jet3.51 OLEDB Provider.

4 In the connection tab, click on the Build button beside “Select or enter a database name” and browse to find your database.

5 Also in the connection tab, click on Test connection.

6 Click OK

7 You can add additional connection by right clicking on the connections.

Set Data Source CommandAfter a connection to a database is set up, you can set up commands. Each Command specifies a record set to be used for a report. A Command can be a:

1 Table

2 Query saved in the database.

3 SQL Command

To create a Command object:1 Right click on Connection or an existing command and select Add command.

2 Right click on the new Command and select properties.

3 Set the Command name to something descriptive if the table or query you are connecting to.

16

Page 17: Documentation

School Management System 4 Set connection to the name of connection.

5 If you are connecting to a table, choose table for the database object. For the object name, select the table from the drop down list.

6 If you are creating a query using SQL, click on SQL statement and type the SQL code into the window. The SQL builder gives you a graphics interface.

7 To set selection parameters, sorting option, or table relationships, you either type them into the SQL code or use the other tabs.

8 Click OK save the command.

Adding a Data Report to a VB Project:1 From the Menu select project Add Data Report.

2 You will see a banded report structure.

3 Anything placed in the report will print once at the top of the report.

4 Anything placed in the page header will print at the top of each page.

5 Anything placed in detailed will print once for each record reported.

6 Anything placed in page footer will print at the bottom of the each page.

7 Anything placed in the report footer will print once immediately following the last line of Detail and above the final page footer.

8 In the properties window set the Data source to the name of your Data environment. Set the data Member to the name of the command you want to use.

9 Click into the report. Then right click and select retrieve structure. When asked if you want to replace the current report structure, click Yes.

10 With both your Data Environment and Data Report windows open, you can simply drag fields from the appropriate command into your report.

11 Position the fields as you in the various bands.

12 Add lines, labels, pictures, or shape to the report using the various tools in the toolbar.

13 To add a total, average, or other aggregate calculation, use the rpt function tool, placing it in the appropriate band. Set its Data Fields property to the field that is the source of the calculation, the Data Format property to the proper numeric formatting, the Data Member property to the command name, the Function Type property to the appropriate aggregate calculation, and the alignment property.

14 Database Technology: ADO

ADO is what you will use from visual Basic to get at data. You, as a Visual Basic programmer,

17

Page 18: Documentation

School Management System cannot program the OLEDB layer directly (nor would you want to). This layer is reserved for C++ programmers. Instead you will use ADO for all your data manipulation. Ado is interface to the OLEDB layer that utilizes a provider to retrieve and update data in a data source. There are a couple of native providers that allow direct access to SQL Server, Oracle and Microsoft access MDBs. There is also the Microsoft ODBC for the OLEDB. This provider allows us to establish a Connection to a data source via ODBC. Because ODBC supplies driver for many different data sources, you can use ADO to manipulate a wide variety of databases. ADO’s primary advantage over other database access methods is its ease of use, high speed, low memory overhead, and small footprint. Also, because it’s an object-based access method, it’s easy to learn. The learning curve for jet programmers will be low since ADO uses an object model just like jet does. While the model is different, it is still easy to learn.ADO FeaturesADO has several features that make it an ideal object model for building client/server and Web-Based applications. Here’s a list of some of this features:

1Small object model, which make easy to learn.

2Low memory footprint, so more memory is Fred up for your application.

3Fast access to a data source.

4Connection can be established on-the-fly, which is great for Web-based application.

5 Different cursor types are supported, including server-sides and client-side cursors.

6 Support for stored procedures, including input and output parameters and return values.

7 Multiple record sets can be returned.

8 Advanced record set cache management, including number of rows to return and how many rows to cache on the client.

9 Asynchronous queries can be used for those quires that take a long time to complete. This allows your user to continue working your application while the database server is processing the data.

10 Events will be call to signifies that processing is about to happen. You’ll use these quite a bit because Visual Basic is well designed to interact with events.

Although ADO supports these listed features, you’ll need to make sure the underlying OLEDB provider supports each of them as well. Not all providers are created equal, and what may support, another may not.

18

Page 19: Documentation

School Management System MICROSOFT ACCESS 2003IntroductionA database is a collection of information related to a particular subject or purpose, such as tracking customer order or maintaining a music collection. If your database isn’t stored on a computer or only parts of it are, you may be tracking information from of variety of sources that you are having to co-ordinate and organized yourself.Using Microsoft access, you can manage all your information from a single database file. Within the file, divide your data into separate container called tables: view, add, and update table data using online firms: find and retrieve just the data you want using queries: and analysis or print data in specific layout using reports. To store your data create one table for each types of information you track. To find and retrieve just the data the database meets conditions you specify including data multiple tables, create a query. A query can also update or delete multiple records at the same time, and perform built-in or custom calculations on your data. To easily view, enter and change data directly in a table create a form. When you open a form, Microsoft access retrieve the data form one or more tables and displays it on screen using the layout you choose in form wizard or using a layout that you created from scratch. To analyze your data or present it in print, create a report for example, you might print one report that group’s data and calculates totals and another report with different data formatted for printing mailing labels.Features of Microsoft Access 2003Microsoft access 2000 offers many new and improved features to help you to create powerful database application.

New objects, properties, methods and other language elements

Microsoft accesses provide new features designed to help you easily use the Internet

Use record-level locking

View related data in a sub datasheet

Automatically fix errors caused by renaming fields

Take advantage of Unicode support

Work with the euro.

Creating custom objects with class modules

Customizing menus and toolbar in your application.

USE Microsoft Data Engine (MSDE)MSDE is a new technology that provides local data storage compatible with Microsoft SQL severs 7.0 Think of MSDE as a client/server data engine alternative the file server Microsoft Jet database engine. It is designed and optimize for use on smaller computer system, such as a single user computer or small workgroup sever.

Replacing only a specified part of a database.

19

Page 20: Documentation

School Management System Easily create a client/server application.

A Microsoft Access project ( .adp ) is a new type of Access file that provide efficient, native mode Access to a Microsoft SQL Server database through the OLEDB component architecture. Using an access project, you can easily create server application.

MS-Access Helps User Stored Their Data In Computer

In computer system data stored in the way of fields, records, files in the computer memory. A field is a collection of entities and collection of fields are called as record and collection of record are called as files. The data item are of different types. So different types of data items mainly defined as 5 data type categories. The data types that are used commonly in building application that we have considered as

1) Numeric2) Alphanumeric3) Date4) Logical5) Memo

1) NumericThis data type is used to specify that the fields is to contain numbers, the number can be whole number of\r real number. Numeric field can contain- Only the numeric characters of 0 to 9- The decimal point

1) Alphanumeric:When a combination of alphabets, numeric, and special characters like hyphen is to be stored in a field, the data type should be alphanumeric. Alphanumeric data can be made up of the following characters.

- Numbers 0 to 9- Alphabets A to Z or a to z- Special Character #, /, \, &, *, -, + etc.

2) Date:This data type is used to specify that the field is to contain dates. Some tools have data type that handles date and time values, The MS Access date data tpe that handles date and time values, the specification of this data type as follows.

For date value - Day-Month –Year For time value –Hour- Minute- Second

3) Logical:When the data in a field is to be of the type true/false (or) yes/no then the data type should be logical, this data type is also called as Boolean.

4) Memo:If the amount of alphanumeric data to be stored in a field is large than the data type should be memo. We also specify the field size of data type. It means the maximum

20

Page 21: Documentation

School Management System data of particular data type that can be stored in a field. It is very essential to evaluate the fields required and choose the appropriate data type for each fields. One important reason for this is that operation work on field depending on their data type. The same operation of addition will work differently with numeric data type rather than alphanumeric data type.

Hardware Requirements

21

Minimum Preferred

Processor PentiumIV Dual Core

Ram 1 GB 2 GB

HDD 250GB 500 GB

Printer 132 column 132 column

UPS 20 min Back-up 1 Hour back up

Page 22: Documentation

SYSTEM ANALYSIS

School Management System

22

Page 23: Documentation

School Management System System Analysis Objectives of Project Work:We are familiar that today computers how popular in every field. Whether the application may be small scale organization or large scale organization. Computers also have significant role in Sales Management due to the reason of number of maintain the customer details, disbursement details. Installment details. Mention all these details are a very complex work. Therefore computerization is possible to make this task simple and easy. It also increases the speed and accuracy of all these activities and at the same time reduces the error and improves the service to customers.Why computerization is needed:Nowadays competitions increase in every field of life. In the same way, In business field also competitions increases. Number of customer goes for purchasing to different shops. Because of privatization for different types of selling there are different shops & it’s too much difficult for a customer. So in this competition world “Time” plays an important role. If any business does not use its time properly it may be looses some profits. So for earning more profit in accuracy of business transactions one must adapting computerization to their organizations. The customer detail and the transaction process including disbursement and installment easily. So all these activities should be done carefully with attention of mind. For fulfilling all these objectives by shop and giving the best service to customers computerization is the best option for School management System. Computerization increases the speed and accuracy of processing and mentioning the information and records very carefully and correctly.Initial Investigation:When I stepped into the mobile shop with my friend for Purchase & Selling Goods. I observed that one person gives all the information about the Selling to the customer and other is busy in maintaining the installment detail and the disbursement details are maintain by other. While the shops has limited number of staff members, they had not handling these tasks perfectly and efficiently, in my primary investigation by directly interaction with staff members; I knew that they are facing some problem in their work. The staff members are very friendly and supported us to gathering the required data about shops. The main thing is that, the shops are different for different Selling .So it’s too much difficult for customer as well as shop staff although all the types of Selling are sanctioned from same stores.Problem SolutionFor doing all jobs efficiently and perfectly computerization is needed. This software package solved the maximum requirement of shops with the help of this package. One person can handle the entire School Management System efficiently and at the minimum time. With the help of this package the shops give the best service to the customer and increasing their business with the help of this package School Management System generate very type of reports in a few second.

23

Page 24: Documentation

SOFTWAREENGINEERING

PARADIGM

School Management System

24

Page 25: Documentation

School Management System Software Engineering Paradigm AppliedThroughout the life cycle of the project, I adopted structured system analysis and design,

structured analysis is a set of techniques and graphical tools that allow the analyst to develop a

new kind of the system specification that are easily understandable to the user. I used the

following structured tools in the analysis phase of the project.

Data Flow Diagram (DFD)

Data Dictionary

Decision Tree

Structured design is a data flow based methodology. The approach begins with a system

specification that identifies input and output of the system. General features such as reports and

inputs are identified first and are studied individually in detail. Structure design is an attempt to

minimize the complexity and make a problem manageable by subdividing into small modules.

Software engineers have been trying various tools, methods and procedures to control the

process of software development in order to build high-quality software with improved

productivity. The methods provide “how to‘s” for building the software while the tools provide

automated or semi- automated support for the methods. They are used in all the stages of

software development process, namely, planning, analysis, design development and

maintenance. The software development procedurals integrate the methods and tools together

and enable relational and timely development of software system. The activities include

problem definition, requirement analysis, design; coding, testing and maintenance, further

refinements to this model include iteration back to the previous stages in order to incorporate

any changes or missing links.

25

Page 26: Documentation

School Management System

Software Engineering Paradigm

26

Problem Definition

Design

Analysis

Coding

Testing

Maintenance

Page 27: Documentation

School Management System Problem Definition This activity requires a precious definition of the problem in user terms. A clear statement of

the problem is crucial to the success of the software. It helps not only the developer but also the

user to understand the problem better.

Analysis This covers a detailed study of the requirements of both the user and the software. This

activity is basically concerned with what of the system such as:

What are the inputs to the system?

What are the processes required?

What are the outputs expected?

What are the constraints?

Design The design phase deals with various concepts of system design such as data structure, software

architecture and algorithms. This phase translates the requirements into a representation of the

software. This stage answers the questions of how.

Coding Coding refers to the translation of the design into machine readable form. The more details the

design, the easier is the coding, and better it is reliability.

Testing Once the code is written, it should be tested rigorously for correctness of the code and results.

Testing may involve the individual units and the whole system, It requires a detailed plan as to

what, when and how to test.

Maintenance After the software has been installed, it may undergo some changes. This may occur due to a

change in the user’s requirement, a change in the operating environment, or an error in the

software that has not been fixed during the testing, Maintenance ensures that these changes are

incorporated wherever necessary.

27

Page 28: Documentation

SYSTEM DESIGN

School Management System

28

Page 29: Documentation

School Management System System Design The most creative and challenging phase of the system life cycle is system design. The term

design describes a final system and the process by which it is developed. It refers the technical

specifications that will be applied in implementing the candidate system. It also includes the

construction of program and program testing.

The primary objectives of system design are to deliver the requirement specification in

feasibility report. The main design objective give significances are:-

Practicality :- This system will be user friendly so user with averages kills can easily

operate.

Efficiency :-This system will produce output in time with accuracy.

Cost :- The system is to design with a minimum cost to satisfy the requirements.

Flexibility : -The system will be a modifiable one depending on future needs.

Security : -The system should reliable, secure one.

Mainly following parts have been included in the system design process:

i. Output Design : The starting point of design process is the proper knowledge of system, requirements,

which will normally be converted into terms of output.

ii. Input Design : Once

the output requirements have been finalized, the next step is to find out what data to be

made available to the system to produce the desired outputs. The basic documents in

which these data are available need to be identified.

i. Database Design : Once the data is captured in the system these have to be preserved for long period. The

data is generally stored in files in a logical manner.

ii. Procedure Design : This step involves specifications of how processing will be

performed.

iii. Control Design : It

indicates necessary procedure which will ensure correctness of processing, accuracy of

data, timely output etc.

29

Page 30: Documentation

School Management System Input DesignThe goals of designing make data entry easy and error free. The input screens of the system

clearly give the length of data fields. It allows the same field sequence of the sources

documents/ forms of the origination. The system follows the same date formats as the user

follows. Example: mm/dd/yyyy for date values.

Every input screen is designed for this system requires only limited amount of input data. So it

avoids delay and improves the data entry speed as well as the overall speed of the system.

Necessary input validation checks are provided at every data entry screens, so it reduces the

possibility of erroneous input. The input screens are made as simple as possible by avoiding

extra steps to make it comfortable to the users.

This system uses the menu convention to display the options the user can choose form, All

input screen are provided with help to retrieve previous records of key fields.

Output DesignThe output design should be in an attractive and useful from because success made acceptable

of a system to some extent depends on good presentation. There are main reasons, why outputs

from computer are required. They are:-

1) For communicating to the persons concerned.

2) For re-input to the computer for being connected with other data and further processing.

3) For permanent storage.

4) In this system, there are reports, display in screen and printed forms comes as outputs. Outputs device used in this system are monitor and printer. The main design considering this system are:

5) No data excluded in output.

6) The format of output is similar to the presently existing one.

7) The sequence of reports printed is in a useful way which is similar to that of present system.

8) The outputs generating are having good quality in appearance, contents and accuracy.

9) The outputs sources

30

Page 31: Documentation

School Management System are provided with necessary screen heading and labels for various fields. Buttons are provided for actions like displaying, printing, etc.

31

Page 32: Documentation

School Management System Menu DesignThe menu of this system is designed in a hierarchical manner. Activity of similar nature is

grouped under one menu. Like all entry forms of server side has under “Entry forms” menu

and all reports under “Report Menu “. Menus are designed in the form that the user can work

with more than one form at a time.

Form DesignForm is a tool with message; it is the physical carrier of data. It provides information for

making decision and improving operations. The size of this form is convenient for easy

handling and easy to identify and filing up. The software covers the basic processes starting

from the registration of new customer and also providing facility that already registered.

Data Flow Diagram

A Data Flow Diagram (DFD) is a graphical techniques that depict information flow and

transformations that are applied as data moves from input to output. The DFD is also known as

a data flow graph or a bubble chart.

The data flow diagram may be used to represent a system or software at any level of

abstraction. In fact DFDs may be partitioned into levels that represent increasing information

flow and details. Therefore the DFD provides a mechanism for functional modeling as well as

information flow modeling.

32

Page 33: Documentation

School Management System DATA FLOW DIAGRAM

Data Store

Student Project List List

33

School Management System

Student Admission Database Student Project Entry Student Project Detail

Project and

Student List

Page 34: Documentation

School Management System E-R DIAGRAMS

34

Student info

Enrollno

Studidd

Sname doa

addr

cont

Standard

Session Pbirt

h

dob

Sex

Add/cont..

address

nationnality

contact

Parents infoeducation

FnameMname

occupationMeducation

Category

address

Sub-cast

Religion

Last School Details

School Name

Medium Session

Standard

Page 35: Documentation

School Management System

35

Masters

Class

Enter Class

Section

Enter Class Section Name

Medium

Medium

Subject

Class Subject Name

Faculty

Section

Faculty Name

Class

Subject

Occupation

Occupation

Page 36: Documentation

School Management System DATABASE DESIGN

1) TBL_MST_CLASS

2) TBL_MST_CLASS_FEES_HEAD

3) TBL_MST_MEDIUM

4) TBL_MST_OCCUPATION

36

Page 37: Documentation

School Management System 5) TBL_Mst_Projects

6) TBL_MST_SECTION

7) TBL_MST_SESSION

8) TBL_MST_Subject

37

Page 38: Documentation

School Management System 9) TBL_mst_teacher

10) TBL_Reciept_Master

11) TBL_Student_Info

38

Page 39: Documentation

CODING

School Management System

39

Page 40: Documentation

School Management System CODINGSource code for this project has been written in Visual Basic Language. Code for included as

and when required to ensured maximum modularity and reusability. Source code to build the

GUI interface is stored in a file name ‘Interface’ and it include separate function for each

windows or dialog box used in this package. Each form is called when the window has been

created and shown. Since this project is event driven one, all the required events have to be

handled. Here GTK library provides a signal and slot mechanism for handling events. All of

the event functions or slots are define in a file name ‘back’.

LOGIN FORMPrivate Sub Command1_Click() If UCase(txtuid.Text) <> "SMS" Then MsgBox "Enter Valid User Name", vbExclamation txtuid.SetFocus Exit Sub End If If UCase(txtpwd.Text) <> "SMS" Then MsgBox "Enter Valid Password", vbExclamation txtpwd.SetFocus Exit Sub End If MsgBox "Your Password Accepted", vbInformation MDI_MAIN.Show Unload MeEnd SubStudent Project Details

Private Sub mnuabaut_Click() frmSplash.ShowEnd SubPrivate Sub mnuchangeclass_Click() Frm_Class_Change.ShowEnd SubPrivate Sub mnuclass_Click() frm_Mst_Class.ShowEnd SubPrivate Sub mnuexit_Click() End End SubPrivate Sub mnumedium_Click() frm_Mst_Medium.ShowEnd Sub

40

Page 41: Documentation

School Management System Private Sub mnunewadmission_Click() frmAdmission.ShowEnd SubPrivate Sub mnuoccupation_Click() frm_Mst_Occupation.ShowEnd SubPrivate Sub mnuProjectdetails_Click() frm_Mst_ProjectList.ShowEnd SubPrivate Sub mnuprojectentry_Click() frm_mst_ProjectsEntry.ShowEnd SubPrivate Sub mnuprojectlist_Click() RPT_frmPoject.ShowEnd SubPrivate Sub mnurptatd_Click() 'DataReport2.Show ' Rpt_Student_List.Show RPT_frmStudent.ShowEnd SubPrivate Sub mnusection_Click() frm_Mst_Section.ShowEnd SubPrivate Sub mnuSubjects_Click() frm_Mst_Subject.ShowEnd SubPrivate Sub mnuteacher_Click() frm_Mst_Teacher.Show End SubProject List detailsPrivate Sub Command1_Click()If txtmedium.Text = "" Then MsgBox " Select Medium", vbExclamation txtmedium.SetFocus Exit SubEnd IfIf txtsection.Text = "" Then MsgBox "Select Section", vbExclamation txtsection.SetFocus Exit SubEnd IfIf txtsession.Text = "" Then MsgBox "Select session", vbExclamation txtsession.SetFocus Exit SubEnd Ifgridlist.Rows = 1Dim r As Integerr = 1ConnectDataBase ("select * from TBL_Mst_Projects where trim(standard) = '" & Trim(txtclass.Text) & "'")

41

Page 42: Documentation

School Management System With gridlist While Not rs.EOF .Rows = .Rows + 1 .TextMatrix(r, 0) = rs.Fields(0) .TextMatrix(r, 1) = rs.Fields(1) .TextMatrix(r, 2) = rs.Fields(8) r = r + 1 rs.MoveNext Wend rs.Close End WithEnd SubPrivate Sub Form_Load() ConnectDataBase ("select *from TBL_MST_CLASS ") While Not rs.EOF txtclass.AddItem rs.Fields(1) rs.MoveNext Wend rs.Close ConnectDataBase ("select *from TBL_MST_MEDIUM ") While Not rs.EOF txtmedium.AddItem rs.Fields(1) rs.MoveNext Wend rs.Close ConnectDataBase ("select *from TBL_MST_SESSION ") While Not rs.EOF txtsession.AddItem rs.Fields(1) rs.MoveNext Wend rs.CloseEnd SubPrivate Sub txtclass_Click()txtsection.Clear ConnectDataBase ("select *from TBL_MST_SECTION where class='" & Trim(txtclass.Text) & "'") While Not rs.EOF txtsection.AddItem rs.Fields(2) rs.MoveNext Wend rs.CloseEnd Sub

Projects Entry DetailsOption ExplicitDim flag As String, ans As BooleanPrivate Sub cmdAdd_Click() cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False

42

Page 43: Documentation

School Management System cmdAdd.Enabled = False' txtSection.SetFocus flag = "N" txtId.Text = getNewStudentIDEnd SubPrivate Sub cmdCancel_Click() cmdsave.Enabled = False cmdCancel.Enabled = False cmdAdd.Enabled = True cmdEdit.Enabled = True cmdExit.Enabled = True flag = "N" txtId = Empty txtPName = Empty txtdesc = Empty txtguidedby = Empty txtStandard = Empty txtsection = Empty txtMedium = Empty txtsession = Empty txtnoofmemeber = Empty txtmembers = Empty txtId.Visible = False lblid.Visible = FalseEnd SubPrivate Sub cmdEdit_Click() flag = "E" cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = False txtId.Visible = True lblid.Visible = TrueEnd SubPrivate Sub cmdExit_Click() Unload MeEnd SubPrivate Sub cmdsave_Click()'On Error GoTo GC If MsgBox("Do you Want to Save", vbYesNo + vbQuestion) = vbYes Then If Trim(flag) = "N" Then '---------------------check class exist or not----------------------' ConnectDataBase ("select * from tbl_Mst_Class")' While Not rs.EOF' If rs.Fields("class") = Trim(txtSection.Text) Then' MsgBox ("Class Already Exist"), vbExclamation, Proj_head' Exit Sub' End If' rs.MoveNext' Wend

43

Page 44: Documentation

School Management System '------------------------------------------------------------------- Call txtvalidate If ans = True Then Call DeptSave Call cmdCancel_Click End If ElseIf Trim(flag) = "E" Then Call txtvalidate If ans = True Then Call DeptUpdate Call cmdCancel_Click End If End If Else Exit Sub End If'Exit Sub'GC:' MsgBox Err.Number & " " & Err.DescriptionEnd SubPrivate Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 39 Then KeyAscii = 0End SubPrivate Sub Form_Load() Me.Caption = Proj_head Me.Top = 0 Me.Left = 0 ' SESSION ConnectDataBase1 ("Select * From TBL_MST_SESSION") While Not rs1.EOF txtsession.AddItem Trim(rs1.Fields(1)) rs1.MoveNext Wend rs1.Close ' MEDIUM ConnectDataBase1 ("Select * From TBL_MST_MEDIUM") While Not rs1.EOF txtMedium.AddItem Trim(rs1.Fields(1)) rs1.MoveNext Wend rs1.Close ' CLASS ConnectDataBase1 ("Select * From TBL_MST_CLASS") While Not rs1.EOF txtStandard.AddItem Trim(rs1.Fields(1)) rs1.MoveNext Wend rs1.Close ' TEACHER ConnectDataBase1 ("Select * From TBL_MST_TEACHER") While Not rs1.EOF

44

Page 45: Documentation

School Management System txtguidedby.AddItem Trim(rs1.Fields(1)) rs1.MoveNext Wend rs1.CloseEnd Sub'-------------------------Procedure----------------------------------------Private Sub txtvalidate() ans = False If txtPName.Text = "" Then MsgBox "Project Name Empty", vbExclamation txtPName.SetFocus ans = False Exit Sub End If If txtdesc.Text = "" Then MsgBox "Project Description Empty", vbExclamation txtdesc.SetFocus ans = False Exit Sub End If If txtguidedby.Text = "" Then MsgBox "Guide Name Empty", vbExclamation txtguidedby.SetFocus ans = False Exit Sub End If If txtStandard.Text = "" Then MsgBox "Standard Empty", vbExclamation txtStandard.SetFocus ans = False Exit Sub End If If txtsection.Text = "" Then MsgBox "Section Name Empty", vbExclamation txtsection.SetFocus ans = False Exit Sub End If If txtMedium.Text = "" Then MsgBox "Medium Name Empty", vbExclamation txtMedium.SetFocus ans = False Exit Sub End If If txtsession.Text = "" Then MsgBox "Session Name Empty", vbExclamation txtsession.SetFocus ans = False Exit Sub End If If txtnoofmemeber.Text = "" Then

45

Page 46: Documentation

School Management System MsgBox "No of Member Empty", vbExclamation txtnoofmemeber.SetFocus ans = False Exit Sub End If If txtmembers.Text = "" Then MsgBox "Member Name Empty", vbExclamation txtmembers.SetFocus ans = False Exit Sub End If ans = TrueEnd Sub Private Sub DeptSave() ConnectDataBase ("Select * from TBL_Mst_Projects") rs.AddNew rs.Fields("id") = Val(txtId.Text) rs.Fields("pname") = Trim(txtPName) rs.Fields("desc") = Trim(txtdesc) rs.Fields("guidedby") = Trim(txtdesc) rs.Fields("standard") = Trim(txtStandard) rs.Fields("section") = Trim(txtsection) rs.Fields("medium") = Trim(txtMedium) rs.Fields("Session") = Trim(txtsession) rs.Fields("noofmember") = Val(txtnoofmemeber) rs.Fields("nameofmember") = Trim(txtmembers) rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub DeptUpdate() ConnectDataBase ("Select * from TBL_Mst_Projects where id=" & Val(txtId.Text)) rs.Fields("pname") = Trim(txtPName) rs.Fields("pname") = Trim(txtPName) rs.Fields("desc") = Trim(txtdesc) rs.Fields("guidedby") = Trim(txtdesc) rs.Fields("standard") = Trim(txtStandard) rs.Fields("section") = Trim(txtsection) rs.Fields("medium") = Trim(txtMedium) rs.Fields("Session") = Trim(txtsession) rs.Fields("noofmember") = Val(txtnoofmemeber) rs.Fields("nameofmember") = Trim(txtmembers) rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub txtId_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then If Trim(flag) = "E" Then If Len(txtId.Text) <> 0 Then ConnectDataBase ("select * from TBL_Mst_Projects where id=" & Val(txtId.Text))

46

Page 47: Documentation

School Management System If Not rs.EOF Then txtPName = rs.Fields("pname") txtdesc = rs.Fields("desc") txtguidedby = rs.Fields("guidedby") txtStandard = rs.Fields("standard") txtsection = rs.Fields("section") txtMedium = rs.Fields("medium") txtsession = rs.Fields("Session") txtnoofmemeber = rs.Fields("noofmember") txtmembers = rs.Fields("nameofmember") rs.Close Else MsgBox "Record Not Found", vbExclamation End If Else Exit Sub MsgBox ("Enter Project Id"), vbExclamation End If Else MsgBox "You are not in Edit Mode", vbExclamation + vbOKCancel End If End IfEnd SubPrivate Sub txtnoofmemeber_KeyPress(KeyAscii As Integer) If Not IsNumeric(Chr(KeyAscii)) And KeyAscii <> vbKeyBack Then KeyAscii = 0 End IfEnd SubPrivate Function getNewStudentID() As Long Call ConnectDataBase("Select MAX(id) From TBL_Mst_Projects") If IsNull(rs.Fields(0)) Then getNewStudentID = 1 Else getNewStudentID = Val(rs.Fields(0)) + 1 End IfEnd FunctionPrivate Sub txtStandard_Click() '----FOR ADDING sECTION IN sECTION COMBOBOX txtsection.Clear ConnectDataBase ("select * from TBL_MST_SECTION WHERE TRIM(CLASS)='" & Trim(txtStandard.Text) & "'") While Not rs.EOF txtsection.AddItem rs.Fields("SECTION") rs.MoveNext Wend rs.Close 'End Sub

47

Page 48: Documentation

School Management System New AddmissionOption ExplicitDim editFlag As BooleanDim popUpFlag As BooleanPrivate Sub cmdAdd_Click() Call changeCommandMode("ENTRY_MODE", Me) editFlag = False txtStudentID.Text = getNewStudentIDEnd SubPrivate Sub cmdCancel_Click() Dim ct As Control For Each ct In Controls If TypeOf ct Is TextBox Then ct = Empty ElseIf TypeOf ct Is ComboBox Then ct = Empty End If Next txtStudentID.Locked = True txtStudentID.BackColor = &HE0E0E0 txtPrevMedium.Text = "NO" txtPrevSchoolName.Text = "NO" txtPrevStandard.Text = "NO" txtStandard.Enabled = True txtSection.Enabled = True txtMedium.Enabled = True txtSession.Enabled = True SSTab1.Tab = 0 Call changeCommandMode("NORMAL_MODE", Me)End SubPrivate Sub cmdEdit_Click() Call changeCommandMode("EDIT_MODE", Me) editFlag = True txtStudentID.Locked = False txtStudentID.BackColor = vbWhite txtStudentID.SetFocusEnd SubPrivate Sub cmdExit_Click() Unload MeEnd SubPrivate Sub cmdsave_Click() Dim msgAns As Byte If ValidateData = False Then Exit Sub If editFlag = False Then 'Check for duplicate enrollment no If Trim(txtEnrollmentNo.Text) <> Empty Then Call ConnectDataBase("Select StudentId From TBL_Student_Info Where EnrollmentNo='" & Trim(txtEnrollmentNo.Text) & "'") If Not rs.EOF Then MsgBox "Enrollment no. '" & Trim(txtEnrollmentNo.Text) & "' is used by '" & rs.Fields("StudentID") & "'", vbExclamation

48

Page 49: Documentation

School Management System Exit Sub End If End If msgAns = MsgBox("Do you want to save this record?", vbQuestion + vbYesNo) If msgAns = vbNo Then Exit Sub Call ConnectDataBase("Select * From TBL_Student_Info") rs.AddNew rs.Fields("StudentId") = Val(txtStudentID.Text) rs.Fields("AdmissionDate") = dtpAddmissionDate.Value rs.Fields("Session") = Trim(txtSession.Text) rs.Fields("EnrollmentNo") = Trim(txtEnrollmentNo.Text) rs.Fields("Standard") = Trim(txtStandard.Text) rs.Fields("Section") = Trim(txtSection.Text) rs.Fields("Medium") = Trim(txtMedium.Text) rs.Fields("StudentFirstName") = Trim(txtStudentFirstName.Text) rs.Fields("StudentMiddleName") = Trim(txtStudentMiddleName.Text) rs.Fields("StudentLastName") = Trim(txtStudentLastName.Text) If optMale.Value = True Then rs.Fields("Sex") = "MALE" Else rs.Fields("Sex") = "FEMALE" End If rs.Fields("DOB") = dtpDOB.Value rs.Fields("DOBWords") = Trim(txtDOBWords.Text) rs.Fields("PlaceOfBirth") = Trim(txtPlaceofBirth.Text) rs.Fields("GardianFirstName") = Trim(txtGardianFirstName.Text) rs.Fields("GardianMiddleName") = Trim(txtGardianMiddleName.Text) rs.Fields("GardianLastName") = Trim(txtGardianLastName.Text) rs.Fields("GardianEducation") = Trim(txtGardianEducation.Text) rs.Fields("GardianOccupation") = Trim(txtGardianOccupation.Text) rs.Fields("MotherFirstName") = Trim(txtMotherFirstName.Text) rs.Fields("MotherMiddleName") = Trim(txtMotherMiddleName.Text) rs.Fields("MotherLastName") = Trim(txtMotherLastName.Text) rs.Fields("MotherEducation") = Trim(txtMotherEducation.Text) rs.Fields("StudentAddress") = Trim(txtAddress.Text) rs.Fields("StudentCity") = Trim(txtCity.Text) rs.Fields("StudentZIP") = Trim(txtZIP.Text) rs.Fields("StudentState") = Trim(txtState.Text) rs.Fields("ContactPhone") = Trim(txtPhone.Text) rs.Fields("ContactMobile") = Trim(txtMobile.Text) rs.Fields("Caste") = Trim(txtCaste.Text) rs.Fields("SubCaste") = Trim(txtSubCaste.Text) rs.Fields("Religion") = Trim(txtReligion.Text) rs.Fields("Nationality") = Trim(txtNationality.Text) rs.Fields("PrevSchoolName") = Trim(txtPrevSchoolName.Text) rs.Fields("PrevStandard") = Trim(txtPrevStandard.Text) rs.Fields("PrevMedium") = Trim(txtPrevMedium.Text) rs.Fields("PrevSession") = Trim(txtPrevSession.Text) rs.Fields("Addmited") = True rs.Update rs.Close

49

Page 50: Documentation

School Management System MsgBox "Record Saved Successfully", vbInformation Call cmdCancel_Click Else 'Check for duplicate enrollment no If Trim(txtEnrollmentNo.Text) <> Empty Then Call ConnectDataBase("Select StudentId From TBL_Student_Info Where EnrollmentNo='" & Trim(txtEnrollmentNo.Text) & "'") If Not rs.EOF Then If Val(rs.Fields("StudentID")) <> Val(txtStudentID.Text) Then MsgBox "Enrollment no. '" & Trim(txtEnrollmentNo.Text) & "' is used by '" & rs.Fields("StudentID") & "'", vbExclamation Exit Sub End If End If End If msgAns = MsgBox("Do you want to edit this record?", vbQuestion + vbYesNo) If msgAns = vbNo Then Exit Sub Call ConnectDataBase("Select * From TBL_Student_Info Where StudentID = " & Val(txtStudentID.Text)) If Not rs.EOF Then rs.Fields("AdmissionDate") = dtpAddmissionDate.Value rs.Fields("Session") = txtSession.Text rs.Fields("EnrollmentNo") = Trim(txtEnrollmentNo.Text) rs.Fields("Standard") = Trim(txtStandard.Text) rs.Fields("Section") = Trim(txtSection.Text) rs.Fields("StudentFirstName") = Trim(txtStudentFirstName.Text) rs.Fields("StudentMiddleName") = Trim(txtStudentMiddleName.Text) rs.Fields("StudentLastName") = Trim(txtStudentLastName.Text) If optMale.Value = True Then rs.Fields("Sex") = "MALE" Else rs.Fields("Sex") = "FEMALE" End If rs.Fields("DOB") = dtpDOB.Value rs.Fields("DOBWords") = Trim(txtDOBWords.Text) rs.Fields("PlaceOfBirth") = Trim(txtPlaceofBirth.Text) rs.Fields("GardianFirstName") = Trim(txtGardianFirstName.Text) rs.Fields("GardianMiddleName") = Trim(txtGardianMiddleName.Text) rs.Fields("GardianLastName") = Trim(txtGardianLastName.Text) rs.Fields("GardianEducation") = Trim(txtGardianEducation.Text) rs.Fields("GardianOccupation") = Trim(txtGardianOccupation.Text) rs.Fields("MotherFirstName") = Trim(txtMotherFirstName.Text) rs.Fields("MotherMiddleName") = Trim(txtMotherMiddleName.Text) rs.Fields("MotherLastName") = Trim(txtMotherLastName.Text) rs.Fields("MotherEducation") = Trim(txtMotherEducation.Text) rs.Fields("StudentAddress") = Trim(txtAddress.Text) rs.Fields("StudentCity") = Trim(txtCity.Text) rs.Fields("StudentZIP") = Trim(txtZIP.Text) rs.Fields("StudentState") = Trim(txtState.Text) rs.Fields("ContactPhone") = Trim(txtPhone.Text) rs.Fields("ContactMobile") = Trim(txtMobile.Text)

50

Page 51: Documentation

School Management System rs.Fields("Caste") = Trim(txtCaste.Text) rs.Fields("SubCaste") = Trim(txtSubCaste.Text) rs.Fields("Religion") = Trim(txtReligion.Text) rs.Fields("Nationality") = Trim(txtNationality.Text) rs.Fields("PrevSchoolName") = Trim(txtPrevSchoolName.Text) rs.Fields("PrevStandard") = Trim(txtPrevStandard.Text) rs.Fields("PrevMedium") = Trim(txtPrevMedium.Text) rs.Fields("PrevSession") = Trim(txtPrevSession.Text) rs.Fields("Addmited") = rs.Fields("Addmited") rs.Update rs.Close MsgBox "Record Saved Successfully", vbInformation Call cmdCancel_Click End If End IfEnd SubPrivate Sub cmdTab1Next_Click(Index As Integer) SSTab1.Tab = Index + 1End SubPrivate Sub cmdTab1Prev_Click(Index As Integer) SSTab1.Tab = Index - 1End SubPrivate Sub dtpDOB_LostFocus() 'Convert date in words 'Find date txtDOBWords.Text = getTwoDigitConversion(Day(dtpDOB.Value)) 'Find month txtDOBWords.Text = txtDOBWords.Text & " " & MonthName(Month(dtpDOB.Value)) 'Find year txtDOBWords.Text = StrConv(txtDOBWords.Text & " " & YearConvertToWords(Year(dtpDOB.Value)), vbUpperCase)End SubPrivate Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 39 Then KeyAscii = 0 ElseIf KeyAscii >= 97 And KeyAscii <= 122 Then KeyAscii = KeyAscii - 32 ElseIf KeyAscii = 27 Then ' lstPopUpList.Visible = False End IfEnd SubPrivate Sub Form_Load() dtpAddmissionDate.Value = Date Call addDataInCombo("Select CLASS From TBL_MST_CLASS", txtStandard) Call addDataInCombo("Select CLASS From TBL_MST_CLASS", txtPrevStandard) Call addDataInCombo("Select MEDIUM From TBL_MST_MEDIUM", txtMedium) Call addDataInCombo("Select MEDIUM From TBL_MST_MEDIUM", txtPrevMedium)' Call addDataInCombo("Select SESSION From TBL_MST_SESSION", txtSession) ConnectDataBase1 ("Select * From TBL_MST_SESSION") While Not rs1.EOF txtSession.AddItem Trim(rs1.Fields(1))

51

Page 52: Documentation

School Management System rs1.MoveNext Wend rs1.Close Call addDataInCombo("Select OCCUPATION From TBL_MST_OCCUPATION", txtGardianOccupation) 'Add Caste txtCaste.AddItem "OPEN" txtCaste.AddItem "OBC" txtCaste.AddItem "SC" txtCaste.AddItem "ST" txtCaste.AddItem "NT" txtCaste.AddItem "VJ/NT" 'Add religion txtReligion.AddItem "HINDU" txtReligion.AddItem "MUSLIM" txtReligion.AddItem "SIKH" txtReligion.AddItem "ISAI" txtReligion.AddItem "BUDDHA" txtReligion.AddItem "PARSI" Call cmdCancel_ClickEnd SubPrivate Sub lstPopupName_DblClick() Call showSelectedListItemEnd SubPrivate Sub lstPopupName_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = 13 Then Call showSelectedListItemEnd SubPrivate Sub txtMobile_KeyPress(KeyAscii As Integer) If Not IsNumeric(Chr(KeyAscii)) And KeyAscii <> vbKeyBack Then KeyAscii = 0 End IfEnd SubPrivate Sub txtStandard_Click() txtSection.Clear ConnectDataBase1 ("Select * From TBL_MST_SECTION Where CLASS='" & Trim(txtStandard.Text) & "'") While Not rs1.EOF txtSection.AddItem Trim(rs1.Fields(2)) rs1.MoveNext Wend rs1.CloseEnd SubPrivate Sub txtAddress_Change() If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtAddress.Text)) > 0 Then Call addDataInCombo("Select Distinct StudentAddress From TBL_Student_Info Where StudentAddress Like '" & Trim(txtAddress.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtAddress.Left + SSTab1.Left lstPopupName.Top = txtAddress.Top + SSTab1.Top + 360

52

Page 53: Documentation

School Management System lstPopupName.Width = txtAddress.Width lstPopupName.Tag = "StudentAddress" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtAddress_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtAddress_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtAddress_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtCity_Change() If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtCity.Text)) > 0 Then Call addDataInCombo("Select Distinct StudentCity From TBL_Student_Info Where StudentCity Like '" & Trim(txtCity.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtCity.Left + SSTab1.Left lstPopupName.Top = txtCity.Top + SSTab1.Top + 360 lstPopupName.Width = txtCity.Width lstPopupName.Tag = "StudentCity" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtCity_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtCity_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtCity_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtGardianEducation_Change() If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtGardianEducation.Text)) > 0 Then

53

Page 54: Documentation

School Management System Call addDataInCombo("Select Distinct GardianEducation From TBL_Student_Info Where GardianEducation Like '" & Trim(txtGardianEducation.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtGardianEducation.Left + SSTab1.Left lstPopupName.Top = txtGardianEducation.Top + SSTab1.Top + 360 lstPopupName.Width = txtGardianEducation.Width lstPopupName.Tag = "GardianEducation" lstPopupName.Visible = True End If End IfEnd IfEnd SubPrivate Sub txtGardianEducation_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtGardianEducation_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtGardianEducation_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtGardianFirstName_Change() lblGardianFullName.Caption = txtGardianFirstName.Text & " " & txtGardianMiddleName.Text & " " & txtGardianLastName.Text If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtGardianFirstName.Text)) > 0 Then Call addDataInCombo("Select Distinct GardianFirstName From TBL_Student_Info Where GardianFirstName Like '" & Trim(txtGardianFirstName.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtGardianFirstName.Left + SSTab1.Left lstPopupName.Top = txtGardianFirstName.Top + SSTab1.Top + 360 lstPopupName.Width = txtGardianFirstName.Width lstPopupName.Tag = "GardianFirstName" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtGardianFirstName_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtGardianFirstName_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd Sub

54

Page 55: Documentation

School Management System Private Sub txtGardianFirstName_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtGardianLastName_Change() lblGardianFullName.Caption = txtGardianFirstName.Text & " " & txtGardianMiddleName.Text & " " & txtGardianLastName.Text If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtGardianLastName.Text)) > 0 Then Call addDataInCombo("Select Distinct GardianLastName From TBL_Student_Info Where GardianLastName Like '" & Trim(txtGardianLastName.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtGardianLastName.Left + SSTab1.Left lstPopupName.Top = txtGardianLastName.Top + SSTab1.Top + 360 lstPopupName.Width = txtGardianLastName.Width lstPopupName.Tag = "GardianLastName" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtGardianLastName_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtGardianLastName_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtGardianLastName_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtGardianMiddleName_Change() lblGardianFullName.Caption = txtGardianFirstName.Text & " " & txtGardianMiddleName.Text & " " & txtGardianLastName.Text If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtGardianMiddleName.Text)) > 0 Then Call addDataInCombo("Select Distinct GardianMiddleName From TBL_Student_Info Where GardianMiddleName Like '" & Trim(txtGardianMiddleName.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtGardianMiddleName.Left + SSTab1.Left lstPopupName.Top = txtGardianMiddleName.Top + SSTab1.Top + 360 lstPopupName.Width = txtGardianMiddleName.Width lstPopupName.Tag = "GardianMiddleName" lstPopupName.Visible = True End If End If End If

55

Page 56: Documentation

School Management System End SubPrivate Sub txtGardianMiddleName_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtGardianMiddleName_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtGardianMiddleName_LostFocus() popUpFlag = False txtGardianLastName.Text = txtStudentLastName.Text txtMotherLastName.Text = txtStudentLastName.TextEnd SubPrivate Sub txtMobile_Change() If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtMobile.Text)) > 0 Then Call addDataInCombo("Select Distinct ContactMobile From TBL_Student_Info Where ContactMobile Like '" & Trim(txtMobile.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtMobile.Left + SSTab1.Left lstPopupName.Top = txtMobile.Top + SSTab1.Top + 360 lstPopupName.Width = txtMobile.Width lstPopupName.Tag = "ContactMobile" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtMobile_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtMobile_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtMobile_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtMotherEducation_Change() If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtMotherEducation.Text)) > 0 Then Call addDataInCombo("Select Distinct MotherEducation From TBL_Student_Info Where MotherEducation Like '" & Trim(txtMotherEducation.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtMotherEducation.Left + SSTab1.Left

56

Page 57: Documentation

School Management System lstPopupName.Top = txtMotherEducation.Top + SSTab1.Top + 360 lstPopupName.Width = txtMotherEducation.Width lstPopupName.Tag = "MotherEducation" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtMotherEducation_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtMotherEducation_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtMotherEducation_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtMotherFirstName_Change() lblMotherFullName.Caption = txtMotherFirstName.Text & " " & txtMotherMiddleName.Text & " " & txtMotherLastName.Text If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtMotherFirstName.Text)) > 0 Then Call addDataInCombo("Select Distinct MotherFirstName From TBL_Student_Info Where MotherFirstName Like '" & Trim(txtMotherFirstName.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtMotherFirstName.Left + SSTab1.Left lstPopupName.Top = txtMotherFirstName.Top + SSTab1.Top + 360 lstPopupName.Width = txtMotherFirstName.Width lstPopupName.Tag = "MotherFirstName" lstPopupName.Visible = True End If End If End IfEnd Sub

Private Sub txtMotherFirstName_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtMotherFirstName_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtMotherFirstName_LostFocus() popUpFlag = FalseEnd Sub

57

Page 58: Documentation

School Management System Private Sub txtMotherLastName_Change() lblMotherFullName.Caption = txtMotherFirstName.Text & " " & txtMotherMiddleName.Text & " " & txtMotherLastName.Text If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtMotherLastName.Text)) > 0 Then Call addDataInCombo("Select Distinct MotherLastName From TBL_Student_Info Where MotherLastName Like '" & Trim(txtMotherLastName.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtMotherLastName.Left + SSTab1.Left lstPopupName.Top = txtMotherLastName.Top + SSTab1.Top + 360 lstPopupName.Width = txtMotherLastName.Width lstPopupName.Tag = "MotherLastName" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtMotherLastName_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtMotherLastName_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtMotherLastName_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtMotherMiddleName_Change() lblMotherFullName.Caption = txtMotherFirstName.Text & " " & txtMotherMiddleName.Text & " " & txtMotherLastName.Text If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtMotherMiddleName.Text)) > 0 Then Call addDataInCombo("Select Distinct MotherMiddleName From TBL_Student_Info Where MotherMiddleName Like '" & Trim(txtMotherMiddleName.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtMotherMiddleName.Left + SSTab1.Left lstPopupName.Top = txtMotherMiddleName.Top + SSTab1.Top + 360 lstPopupName.Width = txtMotherMiddleName.Width lstPopupName.Tag = "MotherMiddleName" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtMotherMiddleName_GotFocus() popUpFlag = True

58

Page 59: Documentation

School Management System End SubPrivate Sub txtMotherMiddleName_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtMotherMiddleName_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtPhone_Change() If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtPhone.Text)) > 0 Then Call addDataInCombo("Select Distinct ContactPhone From TBL_Student_Info Where ContactPhone Like '" & Trim(txtPhone.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtPhone.Left + SSTab1.Left lstPopupName.Top = txtPhone.Top + SSTab1.Top + 360 lstPopupName.Width = txtPhone.Width lstPopupName.Tag = "ContactPhone" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtPhone_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtPhone_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtPhone_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtPlaceofBirth_Change() If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtPlaceofBirth.Text)) > 0 Then Call addDataInCombo("Select Distinct PlaceOfBirth From TBL_Student_Info Where PlaceOfBirth Like '" & Trim(txtPlaceofBirth.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtPlaceofBirth.Left + SSTab1.Left lstPopupName.Top = txtPlaceofBirth.Top + SSTab1.Top + 360 lstPopupName.Width = txtPlaceofBirth.Width lstPopupName.Tag = "PlaceOfBirth" lstPopupName.Visible = True End If

59

Page 60: Documentation

School Management System End If End IfEnd SubPrivate Sub txtPlaceofBirth_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtPlaceofBirth_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtPlaceofBirth_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtPrevSchoolName_Change()End SubPrivate Sub txtPrevSchoolName_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtPrevSchoolName_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtPrevSchoolName_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtState_Change() If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtState.Text)) > 0 Then Call addDataInCombo("Select Distinct StudentState From TBL_Student_Info Where StudentState Like '" & Trim(txtState.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtState.Left + SSTab1.Left lstPopupName.Top = txtState.Top + SSTab1.Top + 360 lstPopupName.Width = txtState.Width lstPopupName.Tag = "StudentState" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtState_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtState_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus

60

Page 61: Documentation

School Management System lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtState_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtStudentFirstName_Change() If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtStudentFirstName.Text)) > 0 Then Call addDataInCombo("Select Distinct StudentFirstName From TBL_Student_Info Where StudentFirstName Like '" & Trim(txtStudentFirstName.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtStudentFirstName.Left + SSTab1.Left lstPopupName.Top = txtStudentFirstName.Top + SSTab1.Top + 360 lstPopupName.Width = txtStudentFirstName.Width lstPopupName.Tag = "StudentFirstName" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtStudentFirstName_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtStudentFirstName_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtStudentFirstName_LostFocus() popUpFlag = FalseEnd SubPrivate Sub txtStudentLastName_Change() If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtStudentLastName.Text)) > 0 Then Call addDataInCombo("Select Distinct StudentLastName From TBL_Student_Info Where StudentLastName Like '" & Trim(txtStudentLastName.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtStudentLastName.Left + SSTab1.Left lstPopupName.Top = txtStudentLastName.Top + SSTab1.Top + 360 lstPopupName.Width = txtStudentLastName.Width lstPopupName.Tag = "StudentLastName" lstPopupName.Visible = True End If End If End IfEnd Sub

61

Page 62: Documentation

School Management System Private Sub txtStudentLastName_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtStudentLastName_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtStudentLastName_LostFocus() popUpFlag = False txtGardianLastName.Text = txtStudentLastName.Text txtMotherLastName.Text = txtStudentLastName.TextEnd SubPrivate Sub txtStudentMiddleName_Change()

If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtStudentMiddleName.Text)) > 0 Then Call addDataInCombo("Select Distinct StudentMiddleName From TBL_Student_Info Where StudentMiddleName Like '" & Trim(txtStudentMiddleName.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtStudentMiddleName.Left + SSTab1.Left lstPopupName.Top = txtStudentMiddleName.Top + SSTab1.Top + 360 lstPopupName.Width = txtStudentMiddleName.Width lstPopupName.Tag = "StudentMiddleName" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtStudentMiddleName_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtStudentMiddleName_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtStudentMiddleName_LostFocus() popUpFlag = False txtGardianFirstName.Text = txtStudentMiddleName.Text txtMotherMiddleName.Text = txtStudentMiddleName.TextEnd SubPrivate Sub txtSubCaste_Change() If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtSubCaste.Text)) > 0 Then Call addDataInCombo("Select Distinct SubCaste From TBL_Student_Info Where

62

Page 63: Documentation

School Management System SubCaste Like '" & Trim(txtSubCaste.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtSubCaste.Left + SSTab1.Left lstPopupName.Top = txtSubCaste.Top + SSTab1.Top + 360 lstPopupName.Width = txtSubCaste.Width lstPopupName.Tag = "SubCaste" lstPopupName.Visible = True End If End IfEnd IfEnd SubPrivate Sub txtSubCaste_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtSubCaste_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtSubCaste_LostFocus()popUpFlag = FalseEnd SubPrivate Sub txtZIP_Change() If popUpFlag = True Then lstPopupName.Visible = False If Len(Trim(txtZIP.Text)) > 0 Then Call addDataInCombo("Select Distinct StudentZIP From TBL_Student_Info Where StudentZIP Like '" & Trim(txtZIP.Text) & "%'", lstPopupName) If lstPopupName.ListCount > 0 Then lstPopupName.Left = txtZIP.Left + SSTab1.Left lstPopupName.Top = txtZIP.Top + SSTab1.Top + 360 lstPopupName.Width = txtZIP.Width lstPopupName.Tag = "StudentZIP" lstPopupName.Visible = True End If End If End IfEnd SubPrivate Sub txtZIP_GotFocus() popUpFlag = TrueEnd SubPrivate Sub txtZIP_KeyDown(KeyCode As Integer, Shift As Integer) If KeyCode = vbKeyDown And lstPopupName.Visible = True Then lstPopupName.SetFocus lstPopupName.ListIndex = 0 End IfEnd SubPrivate Sub txtZIP_LostFocus() popUpFlag = False

63

Page 64: Documentation

School Management System End SubPrivate Sub txtStudentID_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then If txtStudentID.Text <> Empty Then Call ConnectDataBase("Select * From TBL_Student_Info Where StudentID = " & Val(txtStudentID.Text) If Not rs.EOF Then dtpAddmissionDate.Value = rs.Fields("AdmissionDate") txtSession.Text = rs.Fields("Session") txtEnrollmentNo.Text = rs.Fields("EnrollmentNo") txtStandard.Text = rs.Fields("Standard") txtMedium.Text = rs.Fields("Medium") txtSection.Text = rs.Fields("Section") txtStudentFirstName.Text = rs.Fields("StudentFirstName") txtStudentMiddleName.Text = rs.Fields("StudentMiddleName") If rs.Fields("Sex") = "MALE" Then txtStudentTitle.Text = "Mr." optMale.Value = True Else txtStudentTitle.Text = "Ms." optFemale.Value = True End If txtStudentLastName.Text = rs.Fields("StudentLastName") dtpDOB.Value = rs.Fields("DOB") txtDOBWords.Text = rs.Fields("DOBWords") txtPlaceofBirth.Text = rs.Fields("PlaceOfBirth") txtGardianFirstName.Text = rs.Fields("GardianFirstName") txtGardianMiddleName.Text = rs.Fields("GardianMiddleName") txtGardianLastName.Text = rs.Fields("GardianLastName") txtGardianEducation.Text = rs.Fields("GardianEducation") txtGardianOccupation.Text = rs.Fields("GardianOccupation") txtMotherFirstName.Text = rs.Fields("MotherFirstName") txtMotherMiddleName.Text = rs.Fields("MotherMiddleName") txtMotherLastName.Text = rs.Fields("MotherLastName") txtMotherEducation.Text = rs.Fields("MotherEducation") txtAddress.Text = rs.Fields("StudentAddress") txtCity.Text = rs.Fields("StudentCity") txtZIP.Text = rs.Fields("StudentZIP") txtState.Text = rs.Fields("StudentState") txtPhone.Text = rs.Fields("ContactPhone") txtMobile.Text = rs.Fields("ContactMobile") txtCaste.Text = rs.Fields("Caste") txtSubCaste.Text = rs.Fields("SubCaste") txtReligion.Text = rs.Fields("Religion") txtNationality.Text = rs.Fields("Nationality") txtPrevSchoolName.Text = rs.Fields("PrevSchoolName") & "" txtPrevStandard.Text = rs.Fields("PrevStandard") txtPrevMedium.Text = rs.Fields("PrevMedium") txtPrevSession.Text = rs.Fields("PrevSession") 'Disable unchangable fields txtStandard.Enabled = False

64

Page 65: Documentation

School Management System txtSection.Enabled = False txtMedium.Enabled = False txtSession.Enabled = False Else MsgBox "Student ID '" & txtStudentID.Text & "' not found!", vbExclamation End If End If End IfEnd SubPrivate Sub txtStudentTitle_Click() If txtStudentTitle.Text = "Mr." Then optMale.Value = True ElseIf txtStudentTitle.Text = "Ms." Then optFemale.Value = True End IfEnd SubPrivate Sub addDataInCombo(sqlQuery As String, obj As Object) Call ConnectDataBase(sqlQuery) obj.Clear While Not rs.EOF obj.AddItem rs.Fields(0) rs.MoveNext Wend End SubPrivate Function getNewStudentID() As Long Call ConnectDataBase("Select MAX(StudentID) From TBL_Student_Info") If IsNull(rs.Fields(0)) Then getNewStudentID = 1 Else getNewStudentID = Val(rs.Fields(0)) + 1 End IfEnd FunctionPrivate Function ValidateData() As Boolean If Trim(txtStandard.Text) = "" Then MsgBox "Standard is not given!", vbExclamation txtStandard.SetFocus ValidateData = False ElseIf Trim(txtSection.Text) = "" Then MsgBox "Section is not given!", vbExclamation txtSection.SetFocus ValidateData = False ElseIf Trim(txtMedium.Text) = "" Then MsgBox "Medium is not given!", vbExclamation txtMedium.SetFocus ValidateData = False ElseIf Trim(txtSession.Text) = "" Then MsgBox "Session is not given!", vbExclamation txtSession.SetFocus ValidateData = False ElseIf Trim(txtStudentTitle.Text) = "" Then MsgBox "Unable to determine student sex!", vbExclamation

65

Page 66: Documentation

School Management System ValidateData = False ElseIf Trim(txtStudentFirstName.Text) = "" Then MsgBox "Student First name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtStudentMiddleName.Text) = "" Then MsgBox "Student Middle name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtStudentLastName.Text) = "" Then MsgBox "Student Last name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtPlaceofBirth.Text) = "" Then MsgBox "Student birth place is not given!", vbExclamation ValidateData = False ElseIf Trim(txtPlaceofBirth.Text) = "" Then MsgBox "Student birth place is not given!", vbExclamation ValidateData = False ElseIf Trim(txtGardianFirstName.Text) = "" Then MsgBox "Father/Gardian first name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtGardianMiddleName.Text) = "" Then MsgBox "Father/Gardian middle name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtGardianLastName.Text) = "" Then MsgBox "Father/Gardian last name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtGardianEducation.Text) = "" Then MsgBox "Father/Gardian education is not given!", vbExclamation ValidateData = False ElseIf Trim(txtGardianOccupation.Text) = "" Then MsgBox "Father/Gardian occupation is not given!", vbExclamation ValidateData = False ElseIf Trim(txtMotherFirstName.Text) = "" Then MsgBox "Mother first name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtMotherMiddleName.Text) = "" Then MsgBox "Mother middle name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtMotherLastName.Text) = "" Then MsgBox "Mother last name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtMotherEducation.Text) = "" Then MsgBox "Mother education is not given!", vbExclamation ValidateData = False ElseIf Trim(txtAddress.Text) = "" Then MsgBox "Street/Area address is not given!", vbExclamation ValidateData = False ElseIf Trim(txtCity.Text) = "" Then MsgBox "City is not given!", vbExclamation ValidateData = False ElseIf Trim(txtZIP.Text) = "" Then MsgBox "ZIP is not given!", vbExclamation

66

Page 67: Documentation

School Management System ValidateData = False ElseIf Trim(txtState.Text) = "" Then MsgBox "State is not given!", vbExclamation ValidateData = False ElseIf Trim(txtNationality.Text) = "" Then MsgBox "Nationality is not given!", vbExclamation ValidateData = False ElseIf Trim(txtCaste.Text) = "" Then MsgBox "Caste is not given!", vbExclamation ValidateData = False ElseIf Trim(txtSubCaste.Text) = "" Then MsgBox "Sub-Caste is not given!", vbExclamation ValidateData = False ElseIf Trim(txtReligion.Text) = "" Then MsgBox "Religion is not given!", vbExclamation ValidateData = False Else ValidateData = True End IfEnd FunctionPrivate Sub showSelectedListItem() Select Case lstPopupName.Tag Case "StudentFirstName" txtStudentFirstName.Text = lstPopupName.List(lstPopupName.ListIndex) txtStudentFirstName.SetFocus txtStudentFirstName.SelStart = Len(txtStudentFirstName.Text) Case "StudentMiddleName" txtStudentMiddleName.Text = lstPopupName.List(lstPopupName.ListIndex) txtStudentMiddleName.SetFocus txtStudentMiddleName.SelStart = Len(txtStudentMiddleName.Text) Case "StudentLastName" txtStudentLastName.Text = lstPopupName.List(lstPopupName.ListIndex) txtStudentLastName.SetFocus txtStudentLastName.SelStart = Len(txtStudentLastName.Text) Case "PlaceOfBirth" txtPlaceofBirth.Text = lstPopupName.List(lstPopupName.ListIndex) txtPlaceofBirth.SetFocus txtPlaceofBirth.SelStart = Len(txtPlaceofBirth.Text) Case "GardianFirstName" txtGardianFirstName.Text = lstPopupName.List(lstPopupName.ListIndex) txtGardianFirstName.SetFocus txtGardianFirstName.SelStart = Len(txtGardianFirstName.Text) Case "GardianMiddleName" txtGardianMiddleName.Text = lstPopupName.List(lstPopupName.ListIndex) txtGardianMiddleName.SetFocus txtGardianMiddleName.SelStart = Len(txtGardianMiddleName.Text) Case "GardianLastName" txtGardianLastName.Text = lstPopupName.List(lstPopupName.ListIndex) txtGardianLastName.SetFocus txtGardianLastName.SelStart = Len(txtGardianLastName.Text) Case "GardianEducation"

67

Page 68: Documentation

School Management System txtGardianEducation.Text = lstPopupName.List(lstPopupName.ListIndex) txtGardianEducation.SetFocus txtGardianEducation.SelStart = Len(txtGardianEducation.Text) Case "MotherFirstName" txtMotherFirstName.Text = lstPopupName.List(lstPopupName.ListIndex) txtMotherFirstName.SetFocus txtMotherFirstName.SelStart = Len(txtMotherFirstName.Text) Case "MotherMiddleName" txtMotherMiddleName.Text = lstPopupName.List(lstPopupName.ListIndex) txtMotherMiddleName.SetFocus txtMotherMiddleName.SelStart = Len(txtMotherMiddleName.Text) Case "MotherLastName" txtMotherLastName.Text = lstPopupName.List(lstPopupName.ListIndex) txtMotherLastName.SetFocus txtMotherLastName.SelStart = Len(txtMotherLastName.Text) Case "MotherEducation" txtMotherEducation.Text = lstPopupName.List(lstPopupName.ListIndex) txtMotherEducation.SetFocus txtMotherEducation.SelStart = Len(txtMotherEducation.Text) Case "StudentAddress" txtAddress.Text = lstPopupName.List(lstPopupName.ListIndex) txtAddress.SetFocus txtAddress.SelStart = Len(txtAddress.Text) Case "StudentState" txtState.Text = lstPopupName.List(lstPopupName.ListIndex) txtState.SetFocus txtState.SelStart = Len(txtState.Text) Case "StudentCity" txtCity.Text = lstPopupName.List(lstPopupName.ListIndex) txtCity.SetFocus txtCity.SelStart = Len(txtCity.Text) Case "StudentZIP" txtZIP.Text = lstPopupName.List(lstPopupName.ListIndex) txtZIP.SetFocus txtZIP.SelStart = Len(txtZIP.Text) Case "ContactMobile" txtMobile.Text = lstPopupName.List(lstPopupName.ListIndex) txtMobile.SetFocus txtMobile.SelStart = Len(txtMobile.Text) Case "ContactPhone" txtPhone.Text = lstPopupName.List(lstPopupName.ListIndex) txtPhone.SetFocus txtPhone.SelStart = Len(txtPhone.Text) Case "SubCaste" txtSubCaste.Text = lstPopupName.List(lstPopupName.ListIndex) txtSubCaste.SetFocus txtSubCaste.SelStart = Len(txtSubCaste.Text) Case "PrevSchoolName" txtPrevSchoolName.Text = lstPopupName.List(lstPopupName.ListIndex) txtPrevSchoolName.SetFocus txtPrevSchoolName.SelStart = Len(txtPrevSchoolName.Text)

68

Page 69: Documentation

School Management System End Select lstPopupName.Visible = FalseEnd SubClass ChangeOption ExplicitDim tempsession As StringPrivate Sub cmdExit_Click() Unload MeEnd SubPrivate Sub cmdUpdate_Click() If ValidateData = False Then Exit Sub If Trim(txtEnrollmentNo.Text) <> Empty Then Call ConnectDataBase("Select StudentId From TBL_Student_Info Where EnrollmentNo='" & Trim(txtEnrollmentNo.Text) & "'") If Not rs.EOF Then If Val(rs.Fields("StudentID")) <> Val(txtStudentID.Text) Then MsgBox "Enrollment no. '" & Trim(txtEnrollmentNo.Text) & "' is used by '" & rs.Fields("StudentID") & "'", vbExclamation Exit Sub End If End If End If Call ConnectDataBase("Select admissiondate From TBL_Student_Info Where studentid=" & Val(txtStudentID.Text) & "") If Not rs.EOF Then If rs.Fields("admissiondate") = dtpAddmissionDate.Value Then MsgBox "Admission Date Not Changed,Can't Proceed Next Class.", vbExclamation Exit Sub End If End If 'check Standard change or not If Trim(txtStandard.Text) <> Empty Then Call ConnectDataBase("Select standard From TBL_Student_Info Where studentid=" & Val(txtStudentID.Text) & "") If Not rs.EOF Then If Trim(rs.Fields("standard")) = Trim(txtStandard.Text) Then MsgBox "Standard Not Changed,Can't Proceed Next Class.", vbExclamation Exit Sub End If End If End If 'check session change or not If Trim(txtSession.Text) <> Empty Then If Trim(tempsession) = Trim(txtSession.Text) Then MsgBox "Session Not Changed, Can't Proceed Next Class.", vbExclamation Exit Sub End If If MsgBox("Do you want to edit this record?", vbQuestion + vbYesNo) = vbNo Then Exit Sub Call ConnectDataBase("Select * From TBL_Student_Info Where StudentID = " & Val(txtStudentID.Text))

69

Page 70: Documentation

School Management System If Not rs.EOF Then rs.Fields("AdmissionDate") = dtpAddmissionDate.Value rs.Fields("Session") = txtSession.Text rs.Fields("EnrollmentNo") = Trim(txtEnrollmentNo.Text) rs.Fields("Standard") = Trim(txtStandard.Text) rs.Fields("Section") = Trim(txtSection.Text) rs.Fields("Medium") = Trim(txtMedium.Text) rs.Update rs.Close End If MsgBox "Record Saved Successfully", vbInformationEnd SubPrivate Sub Command1_Click() If SSTab1.Tab = 0 Then Exit Sub Else SSTab1.Tab = SSTab1.Tab - 1 End If End SubPrivate Sub Command2_Click() If SSTab1.Tab = 4 Then Exit Sub Else SSTab1.Tab = SSTab1.Tab + 1 End IfEnd SubPrivate Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 39 Then KeyAscii = 0 ElseIf KeyAscii >= 97 And KeyAscii <= 122 Then KeyAscii = KeyAscii - 32 ElseIf KeyAscii = 27 Then ' lstPopUpList.Visible = False End IfEnd SubPrivate Sub Form_Load() dtpAddmissionDate.Value = Date Call addDataInCombo("Select CLASS From TBL_MST_CLASS", txtStandard) Call addDataInCombo("Select MEDIUM From TBL_MST_MEDIUM", txtMedium) ConnectDataBase1 ("Select * From TBL_MST_SESSION") While Not rs1.EOF txtSession.AddItem Trim(rs1.Fields(1)) rs1.MoveNext Wend rs1.CloseEnd SubPrivate Sub addDataInCombo(sqlQuery As String, obj As Object) Call ConnectDataBase(sqlQuery) obj.Clear While Not rs.EOF

70

Page 71: Documentation

School Management System obj.AddItem rs.Fields(0) rs.MoveNext WendEnd SubPrivate Sub txtStandard_Click()' If Trim(txtStandard.Text) <> Empty Then txtSection.Clear ConnectDataBase1 ("Select * From TBL_MST_SECTION Where CLASS='" & Trim(txtStandard.Text) & "'") While Not rs1.EOF txtSection.AddItem Trim(rs1.Fields(2)) rs1.MoveNext Wend rs1.CloseEnd SubPrivate Sub txtStudentID_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then If txtStudentID.Text <> Empty Then Call ConnectDataBase("Select * From TBL_Student_Info Where StudentID = " & Val(txtStudentID.Text)) If Not rs.EOF Then dtpAddmissionDate.Value = rs.Fields("AdmissionDate") txtSession.Text = rs.Fields("Session") txtEnrollmentNo.Text = rs.Fields("EnrollmentNo") txtStandard.Text = Trim(rs.Fields("Standard")) txtMedium.Text = Trim(rs.Fields("Medium")) txtSection.Text = Trim(rs.Fields("Section")) txtStudentFirstName.Text = rs.Fields("StudentFirstName") txtStudentMiddleName.Text = rs.Fields("StudentMiddleName") If rs.Fields("Sex") = "MALE" Then txtStudentTitle.Text = "Mr." optMale.Value = True Else txtStudentTitle.Text = "Ms." optFemale.Value = True End If txtStudentLastName.Text = rs.Fields("StudentLastName") dtpDOB.Value = rs.Fields("DOB") txtDOBWords.Text = rs.Fields("DOBWords") txtPlaceofBirth.Text = rs.Fields("PlaceOfBirth") txtGardianFirstName.Text = rs.Fields("GardianFirstName") txtGardianMiddleName.Text = rs.Fields("GardianMiddleName") txtGardianLastName.Text = rs.Fields("GardianLastName") txtGardianEducation.Text = rs.Fields("GardianEducation") txtGardianOccupation.Text = rs.Fields("GardianOccupation") txtMotherFirstName.Text = rs.Fields("MotherFirstName") txtMotherMiddleName.Text = rs.Fields("MotherMiddleName") txtMotherLastName.Text = rs.Fields("MotherLastName") txtMotherEducation.Text = rs.Fields("MotherEducation") txtAddress.Text = rs.Fields("StudentAddress") txtCity.Text = rs.Fields("StudentCity")

71

Page 72: Documentation

School Management System txtZIP.Text = rs.Fields("StudentZIP") txtState.Text = rs.Fields("StudentState") txtPhone.Text = rs.Fields("ContactPhone") txtMobile.Text = rs.Fields("ContactMobile") txtCaste.Text = rs.Fields("Caste") txtSubCaste.Text = rs.Fields("SubCaste") txtReligion.Text = rs.Fields("Religion") txtNationality.Text = rs.Fields("Nationality") txtPrevSchoolName.Text = rs.Fields("PrevSchoolName") txtPrevStandard.Text = rs.Fields("PrevStandard") txtPrevMedium.Text = rs.Fields("PrevMedium") txtPrevSession.Text = rs.Fields("PrevSession") tempsession = Trim(txtSession.Text) Else MsgBox "Student ID '" & txtStudentID.Text & "' not found!", vbExclamation End If End If End IfEnd SubPrivate Function ValidateData() As Boolean If Trim(txtStandard.Text) = "" Then MsgBox "Standard is not given!", vbExclamation txtStandard.SetFocus ValidateData = False ElseIf Trim(txtSection.Text) = "" Then MsgBox "Section is not given!", vbExclamation txtSection.SetFocus ValidateData = False ElseIf Trim(txtMedium.Text) = "" Then MsgBox "Medium is not given!", vbExclamation txtMedium.SetFocus ValidateData = False ElseIf Trim(txtSession.Text) = "" Then MsgBox "Session is not given!", vbExclamation txtSession.SetFocus ValidateData = False ElseIf Trim(txtStudentTitle.Text) = "" Then MsgBox "Unable to determine student sex!", vbExclamation ValidateData = False ElseIf Trim(txtStudentFirstName.Text) = "" Then MsgBox "Student First name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtStudentMiddleName.Text) = "" Then MsgBox "Student Middle name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtStudentLastName.Text) = "" Then MsgBox "Student Last name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtPlaceofBirth.Text) = "" Then MsgBox "Student birth place is not given!", vbExclamation

72

Page 73: Documentation

School Management System ValidateData = False ElseIf Trim(txtPlaceofBirth.Text) = "" Then MsgBox "Student birth place is not given!", vbExclamation ValidateData = False ElseIf Trim(txtGardianFirstName.Text) = "" Then MsgBox "Father/Gardian first name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtGardianMiddleName.Text) = "" Then MsgBox "Father/Gardian middle name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtGardianLastName.Text) = "" Then MsgBox "Father/Gardian last name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtGardianEducation.Text) = "" Then MsgBox "Father/Gardian education is not given!", vbExclamation ValidateData = False ElseIf Trim(txtGardianOccupation.Text) = "" Then MsgBox "Father/Gardian occupation is not given!", vbExclamation ValidateData = False ElseIf Trim(txtMotherFirstName.Text) = "" Then MsgBox "Mother first name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtMotherMiddleName.Text) = "" Then MsgBox "Mother middle name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtMotherLastName.Text) = "" Then MsgBox "Mother last name is not given!", vbExclamation ValidateData = False ElseIf Trim(txtMotherEducation.Text) = "" Then MsgBox "Mother education is not given!", vbExclamation ValidateData = False ElseIf Trim(txtAddress.Text) = "" Then MsgBox "Street/Area address is not given!", vbExclamation ValidateData = False ElseIf Trim(txtCity.Text) = "" Then MsgBox "City is not given!", vbExclamation ValidateData = False ElseIf Trim(txtZIP.Text) = "" Then MsgBox "ZIP is not given!", vbExclamation ValidateData = False ElseIf Trim(txtState.Text) = "" Then MsgBox "State is not given!", vbExclamation ValidateData = False ElseIf Trim(txtNationality.Text) = "" Then MsgBox "Nationality is not given!", vbExclamation ValidateData = False ElseIf Trim(txtCaste.Text) = "" Then MsgBox "Caste is not given!", vbExclamation ValidateData = False ElseIf Trim(txtSubCaste.Text) = "" Then MsgBox "Sub-Caste is not given!", vbExclamation

73

Page 74: Documentation

School Management System ValidateData = False ElseIf Trim(txtReligion.Text) = "" Then MsgBox "Religion is not given!", vbExclamation ValidateData = False Else ValidateData = True End IfEnd Function

ClassOption ExplicitDim flag As String, ans As BooleanPrivate Sub cmdAdd_Click() cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = False txtsection.SetFocus flag = "N"End SubPrivate Sub cmdCancel_Click() cmdsave.Enabled = False cmdCancel.Enabled = False cmdAdd.Enabled = True cmdEdit.Enabled = True cmdExit.Enabled = True flag = "N" txtsection.Text = Empty TXTID.Text = EmptyEnd SubPrivate Sub cmdEdit_Click() flag = "E" cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = FalseEnd SubPrivate Sub cmdExit_Click() Unload MeEnd SubPrivate Sub cmdsave_Click()'On Error GoTo GC If MsgBox("Do you Want to Save", vbYesNo + vbQuestion) = vbYes Then If Trim(flag) = "N" Then '---------------------check class exist or not---------------------- ConnectDataBase ("select * from tbl_Mst_Class") While Not rs.EOF If rs.Fields("class") = Trim(txtsection.Text) Then MsgBox ("Class Already Exist"), vbExclamation, Proj_head

74

Page 75: Documentation

School Management System Exit Sub End If rs.MoveNext Wend Call txtvalidate If ans = True Then Call DeptSave Call cmdCancel_Click Call fillgrid End If ElseIf Trim(flag) = "E" Then Call txtvalidate If ans = True Then Call DeptUpdate Call cmdCancel_Click Call fillgrid End If End If Else Exit Sub End IfEnd SubPrivate Sub txtvalidate() ans = False If txtsection.Text = "" Then MsgBox "Section Name Empty", vbExclamation txtsection.SetFocus ans = False Exit Sub End If ans = TrueEnd Sub Private Sub DeptSave() ConnectDataBase ("Select * from TBL_MST_CLASS") rs.AddNew rs.Fields("CLASS") = txtsection rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub DeptUpdate() ConnectDataBase ("Select * from TBL_mst_CLASS where ID=" & Val(TXTID.Text)) rs.Fields("CLASS") = txtsection rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub fg1_DblClick()If Trim(flag) = "E" Then Dim r As Integer r = fg1.Row

75

Page 76: Documentation

School Management System TXTID.Text = fg1.TextMatrix(r, 0) txtsection.Text = fg1.TextMatrix(r, 1)Else MsgBox "You are not in Edit Mode", vbExclamation + vbOKCancelEnd IfEnd SubPrivate Sub fillgrid() Dim r As Integer fg1.Rows = 1 r = 1 ConnectDataBase ("select * from TBL_mst_class") While Not rs.EOF fg1.Rows = fg1.Rows + 1 fg1.TextMatrix(r, 0) = rs.Fields(0) fg1.TextMatrix(r, 1) = rs.Fields(1) r = r + 1 rs.MoveNext Wend rs.CloseEnd SubPrivate Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 39 Then KeyAscii = 0End SubPrivate Sub Form_Load() Me.Caption = Proj_head Me.Top = 0 Me.Left = 0End Sub

SectionDim ans As BooleanDim flag As StringPrivate Sub cmdAdd_Click() cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = False cboclass.SetFocusEnd SubPrivate Sub cmdCancel_Click() cmdsave.Enabled = False cmdCancel.Enabled = False cmdAdd.Enabled = True cmdEdit.Enabled = True cmdExit.Enabled = True flag = "N" txtId.Text = "" txtSection.Text = "" cboclass.Text = "" cmdAdd.SetFocus

76

Page 77: Documentation

School Management System End SubPrivate Sub cmdEdit_Click() flag = "E" cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = FalseEnd SubPrivate Sub cmdExit_Click() Unload MeEnd SubPrivate Sub cmdsave_Click()On Error GoTo GC If MsgBox("Do you Want to Save", vbYesNo + vbExclamation) = vbYes Then If Trim(flag) = "N" Then ConnectDataBase ("select * from TBL_MST_SECTION where Class='" & Trim(cboclass.Text) & "'") While Not rs.EOF If rs.Fields("Section") = Trim(txtSection.Text) Then MsgBox ("Section Already Exist"), vbExclamation, Proj_head Exit Sub End If rs.MoveNext Wend Call txtvalidate If ans = True Then Call DeptSave Call cmdCancel_Click Call fillgrid End If ElseIf Trim(flag) = "E" Then Call txtvalidate If ans = True Then Call DeptUpdate Call cmdCancel_Click Call fillgrid End If End If Else Exit Sub End IfExit SubGC: MsgBox Err.Number & " " & Err.Description, vbExclamationEnd SubPrivate Sub DeptUpdate() ConnectDataBase ("Select * from TBL_MST_SECTION where ID=" & Val(txtId.Text)) rs.Fields("CLASS") = cboclass

77

Page 78: Documentation

School Management System rs.Fields("SECTION") = txtSection rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub DeptSave() ConnectDataBase ("Select * from TBL_MST_SECTION") rs.AddNew rs.Fields("CLASS") = Trim(cboclass.Text) rs.Fields("SECTION") = Trim(txtSection.Text) rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub txtvalidate() ans = False If txtSection.Text = "" Then MsgBox " Enter the section", vbExclamation txtSection.SetFocus ans = False Exit Sub End If ans = TrueEnd SubPrivate Sub fillgrid() Dim r As Integer fg1.Rows = 1 r = 1 ConnectDataBase ("select * from TBL_mst_section") While Not rs.EOF fg1.Rows = fg1.Rows + 1 fg1.TextMatrix(r, 0) = rs.Fields(0) fg1.TextMatrix(r, 1) = rs.Fields(1) fg1.TextMatrix(r, 2) = rs.Fields(2) r = r + 1 rs.MoveNext Wend rs.CloseEnd SubPrivate Sub fg1_DblClick() If Trim(flag) = "E" Then Dim r As Integer r = fg1.Row txtId.Text = fg1.TextMatrix(r, 0) cboclass.Text = fg1.TextMatrix(r, 1) txtSection.Text = fg1.TextMatrix(r, 2) 'txtstandard.Text = fg1.TextMatrix(r, 2) Else MsgBox "You are not in Edit Mode", vbExclamation + vbOKCancel, msghead End IfEnd Sub

78

Page 79: Documentation

School Management System Private Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 39 Then KeyAscii = 0End SubPrivate Sub Form_Load() Me.Caption = Proj_head Me.Top = 0 Me.Left = 0 Call fillgrid ans = True flag = "N" '--------- for adding class in cambo class from tbl_mst_class ConnectDataBase (" select * from tbl_mst_class") While Not rs.EOF cboclass.AddItem rs.Fields("class") rs.MoveNext Wend rs.Close End SubPrivate Sub txtSection_KeyPress(KeyAscii As Integer) KeyAscii = Asc(UCase(Chr(KeyAscii)))End SubPrivate Sub txtSection_LostFocus() ' cmdsave.SetFocusEnd Sub

Medium Dim flag As StringDim ans As BooleanPrivate Sub cmdAdd_Click() cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = False flag = "N" 'cboper.Clear ' txtmedium.Text = "" txtmedium.SetFocusEnd SubPrivate Sub cmdCancel_Click() cmdsave.Enabled = False cmdCancel.Enabled = False cmdAdd.Enabled = True cmdEdit.Enabled = True cmdExit.Enabled = True txtmedium.Text = ""End SubPrivate Sub cmdEdit_Click() flag = "E" cmdsave.Enabled = True cmdCancel.Enabled = True

79

Page 80: Documentation

School Management System cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = FalseEnd SubPrivate Sub cmdExit_Click() Unload MeEnd SubPrivate Sub cmdsave_Click() If MsgBox("Do you Want to Save", vbYesNo + vbQuestion) = vbYes Then If Trim(flag) = "N" Then '---------------------check class exist or not---------------------- ConnectDataBase ("select * from TBL_MST_MEDIUM") While Not rs.EOF If rs.Fields("MEDIUM") = Trim(txtmedium.Text) Then MsgBox ("Medium Already Exist"), vbExclamation, Proj_head Exit Sub End If rs.MoveNext Wend '------------------------------------------------------------------- Call txtvalidate If ans = True Then Call DeptSave Call cmdCancel_Click Call fillgrid End If ElseIf Trim(flag) = "E" Then Call txtvalidate If ans = True Then Call DeptUpdate Call cmdCancel_Click Call fillgrid End If End If End IfEnd SubPrivate Sub txtvalidate() ans = False If txtmedium.Text = "" Then MsgBox "Select Medium", vbExclamation txtmedium.SetFocus ans = False Exit Sub End If ans = TrueEnd SubPrivate Sub DeptSave() ConnectDataBase ("Select * from TBL_MST_MEDIUM") rs.AddNew rs.Fields("MEDIUM") = Trim(txtmedium.Text) rs.Update

80

Page 81: Documentation

School Management System MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub fillgrid() Dim r As Integer fg1.Rows = 1 r = 1 ConnectDataBase ("select * from TBL_mst_medium") While Not rs.EOF fg1.Rows = fg1.Rows + 1 fg1.TextMatrix(r, 0) = rs.Fields(0) fg1.TextMatrix(r, 1) = rs.Fields(1) r = r + 1 rs.MoveNext Wend rs.CloseEnd SubPrivate Sub DeptUpdate() ConnectDataBase ("Select * from TBL_mst_MEDIUM where ID=" & Val(txtid.Text)) rs.Fields("MEDIUM") = txtmedium rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub fg1_DblClick() If Trim(flag) = "E" Then Dim r As Integer r = fg1.Row txtid.Text = fg1.TextMatrix(r, 0) txtmedium.Text = fg1.TextMatrix(r, 1) Else MsgBox "You are not in Edit Mode", vbExclamation + vbOKCancelEnd IfEnd SubPrivate Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 39 Then KeyAscii = 0End Sub

Private Sub Form_Load() Me.Caption = Proj_head Me.Top = 0 Me.Left = 0 Call fillgrid End SubPrivate Sub txtmedium_KeyPress(KeyAscii As Integer) KeyAscii = Asc(UCase(Chr(KeyAscii)))End Sub

SubjectDim flag As StringDim ans As Boolean

81

Page 82: Documentation

School Management System Private Sub cmdAdd_Click() cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = False flag = "N"End SubPrivate Sub cmdCancel_Click() cmdsave.Enabled = False cmdCancel.Enabled = False cmdAdd.Enabled = True cmdEdit.Enabled = True cmdExit.Enabled = True flag = "N" txtid.Text = "" cboclass.Text = "" txtsubject.Text = ""End Sub

Private Sub cmdEdit_Click() cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = False flag = "E"End SubPrivate Sub cmdExit_Click() Unload MeEnd SubPrivate Sub cmdsave_Click()On Error GoTo GC If MsgBox("Do you Want to Save", vbYesNo + vbQuestion) = vbYes Then If Trim(flag) = "N" Then '---------------------check Subject exist or not---------------------- ConnectDataBase ("select * from TBL_mst_subject where Class='" & Trim(cboclass.Text) & "'") While Not rs.EOF If rs.Fields("Subject") = Trim(txtsubject.Text) Then MsgBox ("Subject Already Exist"), vbExclamation, Proj_head Exit Sub End If rs.MoveNext Wend Call txtvalidate If ans = True Then Call DeptSave Call cmdCancel_Click Call fillgrid End If

82

Page 83: Documentation

School Management System ElseIf Trim(flag) = "E" Then Call txtvalidate If ans = True Then Call DeptUpdate Call cmdCancel_Click Call fillgrid End If End If End If Exit SubGC: MsgBox Err.Number & " " & Err.Description, vbExclamationEnd SubPrivate Sub fillgrid() Dim r As Integer fg1.Rows = 1 r = 1 ConnectDataBase ("select * from TBL_mst_subject") While Not rs.EOF fg1.Rows = fg1.Rows + 1 fg1.TextMatrix(r, 0) = rs.Fields(0) fg1.TextMatrix(r, 1) = rs.Fields(1) fg1.TextMatrix(r, 2) = rs.Fields(2) & "" r = r + 1 rs.MoveNext Wend rs.CloseEnd SubPrivate Sub DeptUpdate() ConnectDataBase ("Select * from TBL_mst_subject where ID=" & Val(txtid.Text)) rs.Fields("CLASS") = cboclass rs.Fields("SUBJECT") = txtsubject rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub DeptSave() ConnectDataBase ("Select * from TBL_MST_Subject") rs.AddNew rs.Fields("CLASS") = cboclass rs.Fields("Subject") = txtsubject.Text rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub txtvalidate() ans = False If cboclass.Text = "" Then MsgBox "Select class", vbExclamation cboclass.SetFocus ans = False

83

Page 84: Documentation

School Management System Exit Sub End If ans = TrueEnd SubPrivate Sub fg1_DblClick() If Trim(flag) = "E" Then Dim r As Integer r = fg1.Row txtid.Text = fg1.TextMatrix(r, 0) cboclass.Text = fg1.TextMatrix(r, 1) txtsubject.Text = fg1.TextMatrix(r, 2) 'txtstandard.Text = fg1.TextMatrix(r, 2) Else MsgBox "You are not in Edit Mode", vbExclamation + vbOKCancel, msghead End IfEnd Sub

Private Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 39 Then KeyAscii = 0End SubPrivate Sub Form_Load() Me.Caption = Proj_head Me.Top = 0 Me.Left = 0 Call fillgrid ans = False flag = "N" ConnectDataBase ("select distinct(class) from tbl_mst_section") While Not rs.EOF cboclass.AddItem rs.Fields("class") rs.MoveNext Wend rs.CloseEnd SubPrivate Sub txtsubject_KeyPress(KeyAscii As Integer) KeyAscii = Asc(UCase(Chr(KeyAscii)))End Sub

FacultyOption ExplicitDim flag As StringDim ans As BooleanPrivate Sub cboclass_Click() cbosection.Clear ConnectDataBase ("select * from TBL_MST_SECTION WHERE TRIM(CLASS)='" & Trim(cboclass.Text) & "'") While Not rs.EOF cbosection.AddItem rs.Fields("SECTION") rs.MoveNext Wend rs.Close

84

Page 85: Documentation

School Management System

ConnectDataBase ("select * from TBL_MST_SUBJECT WHERE TRIM(CLASS)='" & Trim(cboclass.Text) & "'") While Not rs.EOF cbosubject.AddItem rs.Fields("SUBJECT") rs.MoveNext Wend rs.CloseEnd SubPrivate Sub fg1_DblClick() If Trim(flag) = "E" Then Dim r As Integer r = fg1.Row txtid.Text = fg1.TextMatrix(r, 0) txtTName.Text = fg1.TextMatrix(r, 1) cboclass.Text = fg1.TextMatrix(r, 2) cbosection.Text = fg1.TextMatrix(r, 3) cbosubject.Text = fg1.TextMatrix(r, 4) Else MsgBox "You are not in Edit Mode", vbExclamation + vbOKCancel, msghead End IfEnd SubPrivate Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 39 Then KeyAscii = 0End SubPrivate Sub Form_Load() Me.Caption = Proj_head Me.Top = 0 Me.Left = 0 Call fillgrid ConnectDataBase ("select * from TBL_MST_CLASS") While Not rs.EOF cboclass.AddItem rs.Fields("CLASS") rs.MoveNext Wend rs.Close End SubPrivate Sub cmdAdd_Click() cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = False txtTName.SetFocus flag = "N" End SubPrivate Sub cmdCancel_Click() cmdsave.Enabled = False cmdCancel.Enabled = False cmdAdd.Enabled = True

85

Page 86: Documentation

School Management System cmdEdit.Enabled = True cmdExit.Enabled = True txtid.Text = "" txtTName.Text = "" cbosection.Text = "" cboclass.Text = "" cbosubject.Text = "" flag = "N"End SubPrivate Sub cmdEdit_Click() cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = False flag = "E"End SubPrivate Sub cmdExit_Click() Unload MeEnd SubPrivate Sub txtvalidate() ans = False If txtTName.Text = "" Then MsgBox "ENTER TEACHER NAME", vbExclamation, msghead txtTName.SetFocus ans = False Exit Sub End If If cbosection.Text = "" Then MsgBox "Section Name Empty", vbExclamation, msghead cbosection.SetFocus ans = False Exit Sub End If If cboclass.Text = "" Then MsgBox "Class Empty", vbExclamation, msghead cboclass.SetFocus ans = False Exit Sub End If If cbosubject.Text = "" Then MsgBox " Subject Empty", vbExclamation, msghead cbosubject.SetFocus ans = False Exit Sub End If ans = TrueEnd SubPrivate Sub cmdsave_Click()On Error GoTo GCIf MsgBox("Do you Want to Save", vbYesNo + vbExclamation, msghead) = vbYes Then

86

Page 87: Documentation

School Management System If Trim(flag) = "N" Then Call txtvalidate If ans = True Then Call RECSave Call cmdCancel_Click Call fillgrid End If ElseIf Trim(flag) = "E" Then Call txtvalidate If ans = True Then Call DeptUpdate Call cmdCancel_Click Call fillgrid End If End IfEnd IfExit SubGC: MsgBox Err.Number & " " & Err.Description, vbExclamationEnd SubPrivate Sub DeptUpdate() ConnectDataBase ("Select * from TBL_mst_teacher where ID=" & Val(txtid.Text)) rs.Fields("Tname") = txtTName rs.Fields("Class") = cboclass rs.Fields("Section") = cbosection rs.Fields("Subject") = cbosubject rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub fillgrid() Dim r As Integer fg1.Rows = 1 r = 1 ConnectDataBase ("select * from TBL_mst_teacher") While Not rs.EOF fg1.Rows = fg1.Rows + 1 fg1.TextMatrix(r, 0) = rs.Fields(0) fg1.TextMatrix(r, 1) = rs.Fields(1) fg1.TextMatrix(r, 2) = rs.Fields(2) fg1.TextMatrix(r, 3) = rs.Fields(3) fg1.TextMatrix(r, 4) = rs.Fields(4) r = r + 1 rs.MoveNext Wend rs.CloseEnd SubPrivate Sub RECSave() ConnectDataBase ("Select * from TBL_MST_Teacher") rs.AddNew rs.Fields("TNAME") = Trim(txtTName.Text)

87

Page 88: Documentation

School Management System rs.Fields("SECTION") = Trim(cbosection.Text) rs.Fields("CLASS") = Trim(cboclass.Text) rs.Fields("SUBJECT") = Trim(cbosubject.Text) rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub txtTName_KeyPress(KeyAscii As Integer) KeyAscii = Asc(UCase(Chr(KeyAscii)))End Sub

OccupationDim flag As StringDim ans As BooleanPrivate Sub cmdAdd_Click() cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = False flag = "N" txtoccupation.SetFocusEnd SubPrivate Sub cmdCancel_Click() cmdsave.Enabled = False cmdCancel.Enabled = False cmdAdd.Enabled = True cmdEdit.Enabled = True cmdExit.Enabled = True txtoccupation.Text = "" flag = "N"End SubPrivate Sub cmdEdit_Click() flag = "E" cmdsave.Enabled = True cmdCancel.Enabled = True cmdEdit.Enabled = False cmdExit.Enabled = False cmdAdd.Enabled = FalseEnd SubPrivate Sub cmdExit_Click() Unload MeEnd SubPrivate Sub cmdsave_Click() If MsgBox("Do you Want to Save", vbYesNo + vbQuestion) = vbYes Then If Trim(flag) = "N" Then ConnectDataBase ("select * from TBL_MST_OCCUPATION") While Not rs.EOF If rs.Fields("occupation") = Trim(txtoccupation.Text) Then MsgBox ("Occupation Already Exist"), vbExclamation, Proj_head Exit Sub

88

Page 89: Documentation

School Management System End If rs.MoveNext Wend Call txtvalidate If ans = True Then Call DeptSave Call cmdCancel_Click Call fillgrid End If ElseIf Trim(flag) = "E" Then Call txtvalidate If ans = True Then Call DeptUpdate Call cmdCancel_Click Call fillgrid End If End If End IfEnd SubPrivate Sub txtvalidate() ans = False If txtoccupation.Text = "" Then MsgBox " Select Percentage", vbExclamation txtoccupation.SetFocus ans = False Exit Sub End If ans = TrueEnd Sub Private Sub DeptSave() ConnectDataBase ("Select * from TBL_MST_OCCUPATION") rs.AddNew rs.Fields("OCCUPATION") = txtoccupation rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub fillgrid() Dim r As Integer fg1.Rows = 1 r = 1 ConnectDataBase ("select * from TBL_mst_occupation") While Not rs.EOF fg1.Rows = fg1.Rows + 1 fg1.TextMatrix(r, 0) = rs.Fields(0) fg1.TextMatrix(r, 1) = rs.Fields(1) r = r + 1 rs.MoveNext Wend rs.CloseEnd Sub

89

Page 90: Documentation

School Management System Private Sub DeptUpdate() ConnectDataBase ("Select * from TBL_mst_OCCUPATION where ID=" & Val(txtid.Text)) rs.Fields("OCCUPATION") = txtoccupation rs.Update MsgBox "Record Saved Successfully", vbInformation rs.CloseEnd SubPrivate Sub fg1_DblClick() If Trim(flag) = "E" Then Dim r As Integer r = fg1.Row txtid.Text = fg1.TextMatrix(r, 0) txtoccupation.Text = fg1.TextMatrix(r, 1) Else MsgBox "You are not in Edit Mode", vbExclamation + vbOKCancel cmdEdit.SetFocus End IfEnd SubPrivate Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 39 Then KeyAscii = 0End SubPrivate Sub Form_Load() Me.Caption = Proj_head Me.Top = 0 Me.Left = 0 Call fillgridEnd SubPrivate Sub txtOccupation_KeyPress(KeyAscii As Integer) KeyAscii = Asc(UCase(Chr(KeyAscii)))End SubProject ListOption ExplicitPrivate Sub Command1_Click() Rpt_Project_List.ShowEnd SubPrivate Sub Form_Load() ConnectDataBase ("select *from TBL_MST_CLASS ") While Not rs.EOF txtclass.AddItem rs.Fields(1) rs.MoveNext Wend rs.Close ConnectDataBase ("select *from TBL_MST_SESSION") While Not rs.EOF txtsession.AddItem rs.Fields(1) rs.MoveNext Wend rs.CloseEnd Sub

90

Page 91: Documentation

School Management System

Student ListOption ExplicitPrivate Sub Command1_Click() Rpt_Student_List.ShowEnd SubPrivate Sub Form_Load() ConnectDataBase ("select *from TBL_MST_CLASS ") While Not rs.EOF txtclass.AddItem rs.Fields(1) rs.MoveNext Wend rs.Close ConnectDataBase ("select *from TBL_MST_SESSION") While Not rs.EOF txtsession.AddItem rs.Fields(1) rs.MoveNext Wend rs.CloseEnd Sub

AboutPrivate Sub cmdOK_Click() Unload MeEnd SubPrivate Sub Form_Load() Me.Caption = "About " & App.TitleEnd Sub

91

Page 92: Documentation

REPORT

School Management System

92

Page 93: Documentation

School Management System Project Report

Project ID

93

Page 94: Documentation

School Management System Student List

94

Page 95: Documentation

FORMS

School Management System

95

Page 96: Documentation

School Management System Login Form

Student Project Details

96

Page 97: Documentation

School Management System Student Project Entry

New Admission

97

Page 98: Documentation

School Management System Change Class

Class

98

Page 99: Documentation

School Management System Section

Medium

Subject

99

Page 100: Documentation

School Management System

Faculty

Occupation

100

Page 101: Documentation

School Management System

Project List

Student List

101

Page 102: Documentation

School Management System

102

Page 103: Documentation

CODE EFFICIENCY

School Management System

103

Page 104: Documentation

School Management System CODE EFFICIENCYThe overall performance of system to a grater extends depends on the coding procedures

followed by the programmer. So the efficiency of the code is so important in system

development. A lot of factor like programming language selection, memory allocation,

memory management, programming style, use of variable, reusability of code, etc determine

the efficiency of code. The coding procedures followed in the programmers of this system are

as follows:

The software is a robust one as it is completely coded in a Visual Basic Language. All memory

allocation and de-allocation are done explicitly using Visual Basic program and methods. It is

guarantees that no memory space is wasted. I followed modular programming by dividing the

whole system into sub modules. Only database connection is made through ODBC driver for

OLEDB. Memory management of programs are handle through dynamic memory allocation.

104

Page 105: Documentation

OPTIMIZATION OF CODE

School Management System

OPTIMIZATION OF CODE

105

Page 106: Documentation

School Management System All the modules and functions in this project are optimized to get the intended result with less

lines of code.

CODE OPTIMIZATION:In an ideal world, software would design itself to your specification, automatically reduce itself

to the smallest possible memory point, compile instantly, and always run as the fastest possible

speed. In the real word, develops still of programming language. To get the absolutely smallest,

fastest code, a programmer can work in assembly language, but that can be prohibitively labor-

intensive for all but the most time-critical code.

Most programmer do most of their coding in a high-level language, which is then compiled to

an assemble language and linked into an executable program image. During the development

process, programmers are quite sensitive to build speed and easy of debugging; when it comes

times to release the code for production, run time speed and size becomes a paramount

importance. Throughout this project, we will be concerning on production code runtime size

and speed concerns.

There are many ways, to make code run quickly. Often, the controlling factor for the speed of a

program is the algorithms used, rather than any optimization done by the compiler. Sometime

it is just not important to make run quickly. For example , user interface code that responds to a

keystroke in a tenth of a second is indistinguishable from user interface code that respond to a

keystroke in a milliseconds - the throughput is still limited by the user typing

speed.ASWATSS(All System Wait At The Same speed).

Speed Optimization: A number of ways exist for optimizing code for speed. You can find in any book on writing

compiler, and it is worth while to go into some of them before we dive into the details of

Visual C++. Some of these speed optimizations also minimize the program’s size, and others

trade size for speed. Often, global compiler optimizations change the order of the execution of

the generated instruction, making it difficult to debug optimized complied programs at the

source code level. Most likely the optimized code will be smaller than the un-optimized code,

as well as faster. Copy propagation and dead store elimination work to remove unused

intermediate variables from the calculation stream, improving both size and speed

Often, some code inside a loop, which is repeated many time, does not change values during the loops execution. This loop invariants can be calculated once before the loop runs, Removing or hoisting loop invariants generally improves speed without affecting size vary much. This saves 999 addition operations at the cost of one temporary variable, which is likely to go into a register. On the modern pipelined processors, instruction order can make a huge difference in execution speed because address can be perfected if the order is right and cannot

106

Page 107: Documentation

School Management System be if the order is unfavorable. Michael Abreact, in his Zen of code optimization, discusses how a simple three instruction inner loop written in seemly language is speed up by a factor of two on 80486 processor.SIZE OPTIMIZATION You may wonder why we keep emphasizing code size along with code speed. With 256 Megabyte (MB) of RAM. A Common Configuration who cares? In fact, code size can make a huge difference in execution speed, especially on a multitasking OS such as Windows. There are two events that can directly slow code down because of size: a cache miss and a page fault. A cache miss causes a minor delay when a memory location is not in the CPU cache. A page fault causes a major delay when a virtual memory location is not physical memory and has to be fetched from disk. A large working set the sum of code and data that has to be in memory for program to run-makes both cache miss and page faults more likely. On an 80486 machine, reading a byte from primary CPU memory cache takes one cycle, while reading the byte from RAM that is not the cache - a cache mines take more like 13 cycle. If a secondary cache is present and has the request byte, the limiting will be intermediate between these two extremes.The 80486 has one 8 kilobyte (KB) cache for both code and data. If the code and data for an inner loop all fit into cache, the loop can run at his maximum speed, if they don't it can't. On the Pentium, Pentium with MMX, Pentium Pro, Pentium II , Celeron, Xeon, Pentium III and Pentium IV, there are separate and data cache on the CPU chip. If the code for loop can all into the CPU's instruction cache, it will run much faster than if it cans not, because there will be no delay for fetching code. Likewise, if all the working memory can fetch it into secondary cache. The program will run much faster, because there will no be delay for fetching data.In addition, the secondary cache, of while there is often 512 KB on a Pentium II motherboard, is usually shared between code and data. Assuming the primary cache are not big enough, a situation develops where if the total of the working code and data can if into secondary cache, the program runs much faster than if they can not.A page faults happens when a part of a program is not in RAM virtual memory page file on the head disk; because disk is very much slower than RAM , one page fault can represent a huge slow down.

107

Page 108: Documentation

VALIDATION CHECKS

School Management System

108

Page 109: Documentation

School Management System VALIDATION CHECKS Validation check is needed at every phase of the system development. Improper validation of requests will result in the development of useless system. The first validation check carried out in the design phase of the system. Data validation checks are very important for the proper functioning of the system. Errors can happen while user input data and usually result in malfunctioning or even termination of the software. So it is very important to prevent erroneous or invalid data. Errors are generally comes while user try to enter data that the system is not expecting. In order to prevent user from entering invalid data, necessary validation checks are to be provided. Following are some of the validation checks in this system.

Verification or data type : Input checks are provided to make sure that only right type of data is entered in an input field.

Verification of length of data : There is restriction in length of data that the user can enter depending on the database field.

Checking between ranges of values : Checking is provided to check the validity of input data. For example ‘Goods Amount ‘must be a on negative value greater than zero.

Validation check is also given to check violation of database constraints like primary key violation etc.

Visual Display of codes with its description, like member code is provided for helping the user in easy data entry. This will help in reducing invalid entry of codes.

109

Page 110: Documentation

IMPLEMENTATON AND

MAINTENANCE

School Management System

110

Page 111: Documentation

School Management System IMPLEMENTATION AND MAINTENANCE A crucial phase in the system life cycle is the successful implementation of the new system design. Implementation includes all those activities that take place to convert from the old system to the new one.The implementation tasks can be summarized as follows

Training Management Conversion Post Implementation Review

Training to StaffEven well designed system can succeed or fail because of the way they are operated and used. Therefore I adopted good training procedure in my system. Operators of the system are familiar with the computer but not with window platform, I gave essential window training such as the basic usage of XP window system. Using word processors and printers and some basic selections. When they are confident in window platform I introduced the system. A printed copy of user manual is distributed to the system training.

111

Page 112: Documentation

COST ESTIMATION OF PROJECT

School Management System

112

Page 113: Documentation

School Management System COST ESTIMATION OF PROJECT Above cost is a total estimated cost, but my project is developed for Gondia Critical Hospital, Ganesh Nagar, Gondia. Where already have a computer and printer. Since there s no need to do the initial expenses for the computer and printer purchasing. They co-operate me and developed this package at minimum cost.

But if the new Shop keeper would like to use this package they have to perform at least 50,000/- expanses initially.

1 Dual Core Computer 20,000/-2 Laser Printer 5,000/-3 Software Cost 15,000/-

Total Cost 40,000/-

113

Page 114: Documentation

School Management System

114

GANTT CHART

Page 115: Documentation

School Management System GANTT CHART

Sr.No. WORK OF

PROJECT

START

DATE

ENDING

DATE

TOTAL

DURATION

1. Information Gathering 01-12-2013 09-12-2013 9 Days

2. Feasibility Study 10-12-2013 15-12-2013 5 Days

3. System Analysis 16-12-2013 22-12-2013 7 Days

4. System Designing 23-12-2013 25-12-2013 3 Days

5. Report Designing 26-12-2013 30-12-2013 5 Days

6. Documentation 31-12-2012 04-01-2014 5 Days

Total working Days of Project 34 Days

115

Page 116: Documentation

BIBLIOGRAPHY

School Management System

116

Page 117: Documentation

School Management System Bibliography

1) Mastering Visual Basic 6

By Evangels Petroutsos BPB Publications.

2) Visual Basic 6 Programming

By Steven Holzner Dreamtech Press.

3 ) Visual Basic

By Himalaya Publications.

Magazines

PC Quest ChipComputer Today

117


Recommended