Vous êtes sur la page 1sur 90

TABLE OF CONTENTS

S.No. Title

1 Objective Of The Project

2 Theoretical Background Of Project

3 Definition Of Problem

4 System Analysis And Design

5 Hardware And Software Requirement

6 Plate Form Specification

7 DFD

8 ER Diagram

9 Data Base Design

10 Input And Output Screen Design

11 Coding

12 Conclusion

13 Limitation And Future Scope

14 References

1
Chapter 1
Objective of the project

2
Objective
The project is titled "SCHOOL MANAGMENT". This package once developed will help

the school/institute to manage various details pertaining to its students. This will help

accounts department in maintaining the details related to the fees & basic details like their

security deposits, conveyance and etc, it will also help management or we can say

administration department in maintaining students basic details as well as keeping a check on

fees details. This package is basically developed for the authorities of the school/institute to

make their task easier or we can say this package automate their tasks like maintaining

students personal details, marinating cash details, printing of receipts. This package helps the

administrative & accounts department in maintaining the students personal & fees related

details.

The details of the system are as follows:

It is basically a Database management package for the authorities of the school/institute like

management, accounts & administrative department. All the details of the students & the

daily work of various departments are managed by the package i.e. Personal details, Cash

details, Fees status, printing of receipts etc. The package is by the name of School/institute

Data Management Package. Package helps the various departments in maintaining &

manipulating the data. School/institute data are divided into Personal information, Cash

details, fee status & etc it helps in manipulating the divided parts of the data.

3
Modules of the system:

 Personal Information / Student details

 Fees Details

 Fees Status

 Report Generation

Personal Information / Student details:

This module helps in managing the personal information of the students like their Name,

Address, Phone no., Roll no & etc. The package helps in adding the personal records, editing

the records, retrieval of records, report generation & etc.

Fees Details:

This module helps in managing the fees details of the student like their tuition fees, security,

late fees & etc. The basic purpose behind the development of this module is printing of

receipts of the fees paid by the students.

Fee Status:

This module helps in managing the fees records of the students like how many have paid their

fees & how many are yet to pay their fees & what is the receipt no. of the student who have

paid their fees. Basically this module generates the list of all the students who have paid their

fees & it also generates a list for those students who haven’t paid their fees.

Report Generation:

4
This module is basically all about report generation; in this package quite a few reports are

generated which are embedded in the form like student details, cash details & etc.

Functions performed by the package:

This package helps in managing the student information like their Name, Roll no. annual

charges or we can say personal details, it also manages their fees details, receipt generation &

etc. The package helps in adding the official records, editing the records, retrieval of records,

report generation & etc.

 Security:

The package provides security by the help of Username & Password, the package has

been designed to be used on a stand-alone system & by specific user hence there was

no need for multi-user approach.

 Maintenance & Manipulation:

The package helps in maintaining & manipulating information pertaining to students

& daily activities of the school/institute authorities for e.g. maintaining students

personal details, fee structures, maintaining cash details, fees status & etc.

 Search:

This facility help in searching the required record from the database, package has the

provision of searching of the record through admission no. which is Primary Key &

through the name & class of the student.

 Help:

This facility provides for help for the usage of the system. It provides help to the

novice regarding the usage of the package.

5
The School/institute Data management Package provides the user of the System with a

window like interface. The Front end of the package is developed in VB i.e. VB.NETs, Back

end is made in MS Access.

6
Chapter 2
Theoretical background
of project

7
SCOPE

Scope of the system measures the scope of the project, which is going to be developed.
Answering following aspects can answer the project scope:

1. Context
2. Information objective
3. Function & Performance
4. Interfaces

The system “SCHOOL data management system” is a data management of students. All the
details of the students are managed with the help of this package i.e. their Personal
information, fees information & their report generation, with the help of this package the
organization can maintain & manipulate students data. This package has the provision for
adding new records, editing old records, viewing the database, searching facility, report
generation, help i.e. how to use the package & etc. Scope of the system can be measured with
the help of the dimensions.

Context:
This project is related to management of students data and the daily activities of the
authorities with the help of this package the user of this package, which is the department i.e.
administrative will be able to maintain the data through the computer which will help in
increasing he efficiency, accuracy of the department as well as help in electronic inter change
of the data. Administrative department can use this package to check for the details of the
students, whether they have paid their fees amount or whether it is due to them, through
which receipt no. it was paid they can study the past records analyze the trends.

Information objective:
Basically this is related to the Inputs & Outputs to the system. In other way we can say it is
related to the inputs required by the system & outputs generated by the system.

This package is basically data management package, in which the inputs given by the user is
itself the output of system it performs few calculation like the total cash received from the
students. We can say it is data management package, it provides the user with front end
which is very easy to use.

1. Inputs:
The input to the system is username & password for the system security, their
Personal details like Name, Address, Phone number, admission details, roll no for
data management, their fees details like admission fees, tuition, computer fee & etc .
2. Outputs:
The output for this system is the maintained records, personal details, fees details, fee
status & report generated. The outputs of the system are the records that were added
in the database as well as the reports that are generated with the help of he data in the
database.

8
Function & Performance:
This dimension measures the scope of the system with the help of functions & performance
of the system. The basic function performed by the system is of data management & report
generation.

The system performs various functions like:

1. Security:
The first function of the system is to provide security from unauthorized access to the
data, which is provided with the help of user name & password at the beginning of the
package. This system is been developed for a single user hence no rights are
employed or we can say administrator is only the user.
2. Data maintenance:
The most important function of the system is to maintain student data, the data is
maintained with the help of different menus like adding, editing, viewing, searching
& etc. There are different kinds of data in the system like personal information, fees
information & cash details with the help of the front end data is managed.
3. Report generation:
The last function of the system is to generate reports of the data like student details
report, cash report, fee status report & etc. With the help of this report the data can be
electronically exchanged as well as the reviewing of policies can be done with the
help of reports.
These are some of the basic function
performed by the system “Student Data Management”.

Interfaces:
Interfaces are the link between the user and the system, basically we can say interfaces are
the objects through which user of the system interacts with the system. This system has
different interfaces through which user interacts with the system they are:

1. Login interface:
This is the first interface in which user is required to enter the username & password
if the password is correct then access is granted otherwise not. User has got three
attempts to enter the correct password; if he is not able to enter the correct password
in three attempts then the system is exited.

2. Data maintenance:
This is the most important interface in the system in which the user interacts with the
system to store the data or to retrieve the data from the database, this interface has got
many sub parts like addition of records, editing of records, searching of records & etc.

3. Reports:
This interface is the output for the system in which the user receives the results or
output, which is required in the form of reports like cash details, student details & fee
status.

9
Chapter 3
DEFINATION OF PROBLEM

10
NEED OF THE SYSTEM

The
Package is developed to help the department maintaining the student details, earlier the
records where maintained manually, with the help of this package the concerned departments
will be able to improve the productivity, reduce the time, cost factors associated with the
system. The automation of the system will help the organization in proper maintenance of the
record, less manpower, less man-days, less cost, proper & accurate functioning.

The basic need for the package was to automate the whole procedure of maintaining of
student details, earlier it was all done manually. By developing this package lot of burden
was removed from the department, which was maintaining students details. It improved the
efficiency, reduced the cost, and reduced the time need to do the work manually. With the
help of this package the past details of the students can assessed and reports can be generated
on this details.

In brief we can say this system was required to automate the processing of students details,
which was done manually before the development of the package. Earlier all the information
/ data pertaining to the students was maintained manually or we can say it was on paper,
hence it created a problem for the organization/ school, how to manage it properly. With the
help of this system the organization/school is able to maintain the data properly & accurately.

Why System was build…?

 Earlier, data pertaining to students was maintained manually.


 Manual system was not efficient.
 Cost of maintaining data manually was bigger or huge.
 Large manpower was required.
 The procedure was error prone, it was not accurate.
 Manual system was not suited for electronic exchange of data.

Solution…?

The solution for all this problem was to automate the system, automation of the students data
maintenance would reduce the manpower, man days will result in accurate data & above all
increase the efficiency of the concerned department.

11
Chapter 4
SYSTEM ANALAYSIS AND
DESIGN

12
SYSTEM ANALYSIS

System Analysis

A system is a set or arrangement of functionally dependent component or

working together to attain a predefined goal by processing information. It is the process of

examine of a business situation with the intent of improving it through better procedure and

method. It is the process of gathering and method. It is process gathering and interpreting

facts.

Timing problems and using the information to recommend improvement to the

system. Analysis is used gained and understanding of the conclusion of the system there is a

system description and as set of requirement for a new system. It there is on existing system,

then the analysis only defines the requirement. The step, which follows, will propose a new

system that meets these requirements.

The new system may be built a fresh or by changing the existing system. Development being

by defining a model of new system an continuous by converting these model to a system in a

short analysis specifies what the system should do.

Analysis objective

An efficient system analysis always plays the role of strong foundation for

development of any proposed system. Information play key role, as the horizon of knowledge

keep on expending, since this project is anaphor to convert the manual in to computer based

system, a through knowledge of the day-to-day functions of present system of mandatory the

objective of this study comprise.

Feasibility Study

13
Feasibility is the determination of whether or not a project is worth doing. The

process followed in making this decision is called feasibility study. It determines whether a

project should be taken or not. Various types of feasibility were studied, like:

Technical feasibility

This is concerned with specifying equipment and the software that successfully

satisfies the user requirements. In examining the technical feasibility, the configuration of the

system is given importance than the actual hardware.

Operational feasibility

It is mainly related to the human organizational and political aspects. It involved the

study of the changes to be through in the system, new skills needed etc. In the present manual

system there is no use of computer and also the operational staff has no idea about the

operation of the computer system, hence an introductory training of the staff is needed.

Economic feasibility

It is the most frequently used technique for the evaluation of the effectiveness of the

proposed system. It involves the cost/benefit analysis. This study has out weighed the manual

system to the new system.

Social feasibility

It is the determination of whether a system will by the user or not. This examines the

probability of the project being accepted directly by the users.

Management feasibility

It is to determine whether the proposed system will be acceptable to the management


or not.

Time feasibility

14
It is a determination of whether the proposed system can be implemented fully within

a stipulated time interval.

Fact Finding

Fact-finding means learning about the existing system as much as possible. The

various methods that were employed to find facts are:

Observing the current system:

Direct observation of the system allows the analyst to verify his understanding of the

system. It is one of the most difficult techniques. It requires intrusion into the user’s area and

can cause adverse reaction by the users if not handled properly. The user should not be able

to know that he is being observed else he might behave in a different manner. We had to be

very careful in doing the on-site observation though the users are co-operative or reluctant. A

lot of information about the system was gathered by observing the existing system at work.

Gathering information form the existing documents

The information regarding the system was gathered by the existing documents such as

various reports, procedure and practices of the, Raipur (C.G.). After studying these

documents we got the various requirements of the system which helped us to determine to

what extent were the requirements being met by the present system.

Defining the system requirements

During the fact-finding phase of the system, we gathered facts, figures and documents

and came to grip with the entire scope of the problem. After the fact-finding, the system

requirements were defined as to what were the system requirements.

These were then put forward to the management and the user. After the approval from

them, we proceeded to start the system design.

15
CHAPTER 5
Hardware and software
requirement

16
The following are the minimum requirement for the smooth and successful running of

the module.

Hardware

 Microprocessor - 166 MHz or Higher

 Hard Disk - Min 1GB for Operating system & program to setup
properly

 Memory - 32 MB (Min) As the package is developed using MS


Office

2000 it requires 32 MB Min RAM

 Display- CGA/VGA or higher

 Key Board - 84/109 Keys use

 Mouse - Any Standard Mouse

 Printer - 80/132 cols.

Software: -

 Operating System - MS Windows 95 or Higher

 RDBMS - MS Access

 GUI Tool - VB.NET

17
CHAPTER 6
plate form specification

18
Plate form Specification

The minimum software requirement for developing the software “Electronic Showroom” is
as follows:-

Operating System : Windows 7

Front End : VB.NET

Back End : MS Access 2010

19
Introduction to Windows XP

An Operating System (OS) dictates how all the parts (software and hardware resources) of
your computer work together and how specific tasks (i.e., displaying and saving information)
are to be performed.

Windows XP is built primarily on Windows 2000 technology which includes the best
attributes of previous Windows versions. People who already know and have used previous
versions of Windows should have no problems using Windows XP. One major difference
will be in the logging in and logging out procedures. Windows XP offers several benefits
over other versions, namely, its built-in file encryption and password control capabilities
provide basic data and access security, increased reliability and performance ability, friendly
graphical user interface (GUI), and its Web communication features. Windows XP's desktop
is graphical which allows the user to click on pictures (or icons) to launch applications, open
files and folders, connect to a network, and perform many other functions.

Users should find that Windows XP is more efficient and customizable than previous
versions and other platforms. The Start button on the bottom left corner of the screen
allows easy access to just about everything in the system. The Start button is used to initiate
applications, opens or search for documents, adjusts settings, activates the Help Support
system, manages files, and maintains the entire system to meet your specific needs.

The taskbar acts as a "home base" and has three elements: the Start button, a bar across the
bottom of the screen that lines up opened (active) applications side-by-side, and the system
tray located on the bottom right corner where the clock and other system icons may appear.
The taskbar is an efficient tool of keeping track of what applications are active, and allows
for switching between applications.

20
About VB.NET 6.0

VB.NET is the most Popular Object Oriented event Driven Programming


language .It revolves around readymade objects, and it is event driven i.e. all the activities in
a program are triggered by one event or another .The main advantage of visual Programming
languages is that we can concentrate on what we want our program to do, not how to get the
programming language to do it. Some VB.NET features are: -
1.Compatibility:VB.NET is capable of producing software as sophisticated as any other data
access techniques available.
2. Flexibility: It not only provides database access but can also be used to link it with
other word processor, spreadsheets software etc.
3. Familiarity: Because it can be said as an extended version of Basic, which is very
easy to learn and work with, its syntax seems to be more familiar.

4. Features: Various Additional Features Like ADO reports And other various type
of Active X controls are Supported by this application, which helps
widely in development of the Project.

VB.NET has developed into an extremely powerful application development


tool and it is often referred to as a Rapid Application Development (RAD) tool. Another key
concept of VB.NET is the ability to create and use self contained components or objects. One
type of Objects is VB Controls.

Controls are elements we can use when designing a user interface. VB


controls enable us to add feature to our programs without having to be involved in the details
of how these feature works.

This software is also designed using several controls available in VB.NET


with the help of which interactive user interface screen can be developed. Form Controls are
used as containers for other controls like command buttons, labels, scroll bar, combo box etc.

To avoid any invalid entries to be made a suitable restriction is put on different


controls with the help of their properties.

Coding scheme of different controls is hidden from their appearance and this
resulted into graphical user interface based event driven programming.

21
About MS Access

This is a Backend Tool widely used for Personal Computer as a Data Base.
The relational database is a well-defined theoretical model of working with and managing a
set of data that attends to three specific things:

Data Structure, Data integrity and Data manipulation .The MS Access has a
distinct component, which adheres to these requirements. The basic Data Structure in Access
is Table having fixed number of columns but variable rows.

The Data integrity rules of the relational models can be defined within Access
relationship using integrity constraints. When a table is created in Access the integrity rule is
defied at that very time.

MS Access has many important features that make it not only an exceptional
database Management System but also an excellent database for personal system in windows
environment,

 It provides highly secure environment to do better handling of database.


 It can handle reasonable amount of data.
 Easily support all window based systems

The goal of the access is to help you get your work done in the least of time,
with a minimum of effort.

What type of application can you develop in Access?

Microsoft Access offers a variety of features for different databases needs. It can be
used to develop five general type of application:

1. Personal application.

2. Application used to run a small business.

3. Department application.

4. Corporation- wide application.

5.Front :- end for enterprise-wide client/server application.

22
What is Database actually?

The term database means different things to different people. For many
years in the world of Dbase was used to describe a collection of fields and records in a
client/server environment. Dbase refers to all the data schema, indexes, rules, triggers and
stored procedures associated with a system in access terms, a dbase is a collection of all the
tables, queries, forms, reports, macros and modules that compose a complete system.

Actually database is a collection of related information. Here information


is stored in tabular form one record shows all possible attributes of an entity. In a simple
word entity can be identified by its attributes like his name, color, height and hairstyle etc
identify a person. So in databases a record makes tuple while attributes make fields.

23
CHAPTER 7
Data flow diagram

24
DATA FLOW DIAGRAMS

A data flow diagram is graphical tool used to describe and analyze movement of data
through a system. These are the central tool and the basis from which the other components
are developed. The transformation of data from input to output, through processed, may be
described logically and independently of physical components associated with the system.
These are known as the logical data flow diagrams. The physical data flow diagrams show
the actual implements and movement of data between people, departments and workstations.
A full description of a system actually consists of a set of data flow diagrams. Using two
familiar notations Yourdon, Gane and Sarson notation develops the data flow diagrams. Each
component in a DFD is labeled with a descriptive name. Process is further identified with a
number that will be used for identification purpose. The development of DFD’S is done in
several levels. Each process in lower level diagrams can be broken down into a more
detailed DFD in the next level. The lop-level diagram is often called context diagram. It
consists a single process bit, which plays vital role in studying the current system. The
process in the context level diagram is exploded into other process at the first level DFD.

The idea behind the explosion of a process into more process is that understanding at
one level of detail is exploded into greater detail at the next level. This is done until further
explosion is necessary and an adequate amount of detail is described for analyst to understand
the process.

Larry Constantine first developed the DFD as a way of expressing system


requirements in a graphical from, this lead to the modular design.

A DFD is also known as a “bubble Chart” has the purpose of clarifying system
requirements and identifying major transformations that will become programs in system
design. So it is the starting point of the design to the lowest level of detail. A DFD consists
of a series of bubbles joined by data flows in the system.

25
DFD SYMBOLS:

In the DFD, there are four symbols

1. A square defines a source(originator) or destination of system data


2. An arrow identifies data flow. It is the pipeline through which the information flows
3. A circle or a bubble represents a process that transforms incoming data flow into outgoing
data flows.
4. An open rectangle is a data store, data at rest or a temporary repository of data

Process that transforms data flow.

Source or Destination of data

Data flow

Data Store

26
DATA FLOW DIAGRAM

27
CHAPTER 8
E R diagram

28
E-R diagrams constructs
In E-R diagrams, entity types are represented by squares. See the table below. Relationship

types are shown in diamond shaped boxes attached to the participating entity types with

straight lines. Attributes are shown in ovals, and each attribute is attached to its entity type or

relationship type by a straight line. Multivalued attributes are shown in double ovals. Key

attributes have their names underlined. Derived attributes are shown in dotted ovals.

Weak entity types are distinguished by being placed in double rectangles and by having their

identifying relationship placed in double diamonds.

Attaching a 1, M, or N on each participating edge specifies cardinality ratio of each binary

relationship type. The participation constraint is specified by a single line for partial

participation and by double lines for total participation. The participation constraints specify

whether the existence of an entity depends on its being related to another entity via the

relationship type. If every entity of an entity set is related to some other entity set via a

relationship type, then the participation of the first entity type is total. If only few member of

an entity type is related to some entity type via a relationship type, the participation is partial.

ENTITY TYPE

WEAK ENTITY TYPE

RELATIONSHIP TYPE

ATTRIBUTE

29
KEY ATTRIBUTE

MULTIVALUED ATTRIBUTE

DERIVED ATTRIBUTE

TOTAL PARTICIPATION OF
E2 IN R

Cardinality Ratio 1:N FOR


E1:E2 IN R

Structural
Constraint(Min,Max) On
Participation Of E In R

Naming Data Objects


The names should have the following properties:

 unique,

 Have meaning to the end-user.

 Contain the minimum number of words needed to uniquely and accurately describe the object.

For entities and attributes, names are singular nouns while relationship names are typically verbs.

30
ER-DIAGRAM

NAME

IN

USER

LOGIN

SCHOOL MANAGEMENT

F NAME admision

CASTE

CLASS
ADMISSION
NO. ADMISSION

NAME
Fee
CLASS
DOB

CLASS DETAILS

RELIGION REGN FEE


BILL
CLASS
CLASS CLAS S
RECEIPT NO. NAME
ID
FEE FEE
MONTH

31
CHAPTER 9
DATABASE DESIGN

32
CLASS FEE

FIELD NAME DATATYPE

Class_id Number

Class_name Text

Class_fee Number

Group Text

Remark Text

FEE TABLE

FIELD NAME DATATYPE


Receipt_no Number
Fdate Date/Time
Name Text
Class Text
Total Number

33
M_fee Details

FIELD NAME DATATYPE


Receipt_No Number
Fdate Date/Time
Name Text
Class Text
Regn_fee Number
Fee_month Number
Fee_month_o Text
Bus_fee Number
Maint_char Number
Pta_fund Number
Stude_fund Number
Exam_fee Number
Activi_fee Number
Compute_fee Number
Misc_charg Number
Total Number

N Group

FIELD NAME DATATYPE


Group_id Number
Group_name Text
Remark Text

34
STUDENT

FIELD NAME DATATYPE

Admiss_no Number

Datea Date/Time

Name Text

Class Text

Sex Text

Dob Date/time

Religion Text

Caste Text

Categ Text

F_name Text

Occuption Text

Full_addre Text

Phone_no Text

Photo Text

35
CHAPTER 10
Input and output screen
design

36
Login Form:-

Welcome Page:-

37
MDI Form:-

38
Class Id Form:-

39
Admission Form:-

40
Fee Receipt Form:-

41
Class Report:-

42
Student Report:-

43
Fee Report:-

44
Help Window:-

45
Exit Window:-

46
CHAPTER 12
coding

47
Option Explicit

Public LoginSucceeded As Boolea

Private Sub cmdCancel_Click()

'set the global var to false

'to denote a failed login

LoginSucceeded = False

Unload Me

End Sub

Private Sub cmdOK_Click()

'check for correct password

If txtPassword = "school" Or txtPassword = "SCHOOL" Then

'place code to here to pass the

'success to the calling sub

'setting a global var is the easiest

LoginSucceeded = True

Unload Me

frmSplash.Show

Else

MsgBox "Invalid Password, try again!", , "Login"

txtPassword.SetFocus

SendKeys "{Home}+{End}"

End If

End Sub

Option Explicit

Private Sub MDIForm_Unload(Cancel As Integer)

48
If MsgBox("Exit", vbYesNo + vbQuestion, "Exit") = vbYes Then

closedb

Cancel = 0

Else

Cancel = 1

End If

End Sub

Private Sub mnuadmission_Click()

Dim fs As New frmAdmission_Form

fs.Show

End Sub

Private Sub mnuclass_Click()

Dim fs As New frmClass_ID

fs.Show

End Sub

Private Sub mnuexit_Click()

If MsgBox("Exit", vbYesNo + vbQuestion, "Exit") = vbYes Then

closedb

End

End If

End Sub

Private Sub closedb()

On Error Resume Next

db.Close

Set db = Nothing

End Sub

Private Sub mnufee_Click()

49
Dim fs As New frmFee_detail

fs.Show

End Sub

Private Sub mnuhelp_Click()

CommonDialog1.HelpCommand = &H3&

CommonDialog1.HelpFile = App.Path & "\help.hlp"

CommonDialog1.ShowHelp

End Sub

Private Sub mnuid_Click()

If School_Management.rsCMDCLASS.State = 1 Then
School_Management.rsCMDCLASS.Close

School_Management.CMDCLASS

School_Management.rsCMDCLASS.Requery (0)

ClassReport.Show

End Sub

Private Sub mnustud_Click()

If School_Management.rscmdstud.State = 1 Then
School_Management.rscmdstud.Close

School_Management.cmdstud

School_Management.rscmdstud.Requery (0)

StudReport.Show

End Sub

Private Sub mnutot_Click()

If School_Management.rscmdfee.State = 1 Then
School_Management.rscmdfee.Close

School_Management.cmdfee

School_Management.rscmdfee.Requery (0)

50
FeeReport.Show

End Sub

Private Sub MDIForm_Activate()

Connect

End Sub

Option Explicit

Private Sub Timer1_Timer()

Label3.Caption =
"Loading..........................................................................................................................." &
PBar1.Value & "%"

PBar1.Value = PBar1.Value + 5

If PBar1.Value = 100 Then

Timer1.Enabled = False

Unload Me

Dim mm As New MDImain

mm.Show

End If

End Sub

Option Explicit

Dim rs As New ADODB.Recordset

Dim sql As String

51
Dim flag As Boolean

Private Sub cmdclose_Click()

Unload Me

End Sub

Private Sub cmdexit_Click()

Framefind.Visible = False

End Sub

Private Sub cmdfind_Click()

Framefind.Visible = True

sql = "select Class_ID,Class_Name,Class_Fee,Group,Remarks from ClassFEE"

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

MSGrid.Rows = 1

If rs.RecordCount > 0 Then

While Not rs.EOF = True

MSGrid.AddItem rs(0) & Chr(9) & rs(1) & Chr(9) & rs(2) & Chr(9) & rs(3) & Chr(9) &
rs(4)

rs.MoveNext

Wend

End If

End Sub

Private Sub cmdnew_Click()

Locktext Me, False

Dim i As Variant

flag = True

For Each i In Controls

If TypeOf i Is TextBox Then i.Text = ""

Next

52
sql = "select max(class_id) from classFEE"

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

If IsNull(rs(0)) Then

txtcid.Text = 1

Else

txtcid.Text = rs(0) + 1

End If

CloseRS

txtcname.Enabled = True

txtcfee.Enabled = True

cmbgoc.Enabled = True

txtremark.Enabled = True

txtcname.SetFocus

cmdsave.Enabled = True

cmdfind.Enabled = False

cmdupdate.Enabled = False

cmdnew.Enabled = False

End Sub

Private Sub cmdref_Click()

Form_Load

cmdnew.Enabled = True

End Sub

Private Sub cmdsave_Click()

If Len(txtcid.Text) = 0 Then

txtcid.SetFocus

MsgBox "Please enter class ID"

Exit Sub

53
End If

If Len(txtcname.Text) = 0 Then

txtcname.SetFocus

MsgBox "Please enter Class name"

Exit Sub

End If

If Len(txtcfee.Text) = 0 Then

txtcfee.SetFocus

MsgBox "Please enter Fee"

Exit Sub

End If

If Len(cmbgoc.Text) = 0 Then

cmbgoc.SetFocus

MsgBox "Please enter Group of class"

Exit Sub

End If

txtremark.Text = IIf(Len(txtremark.Text) = 0, "--", txtremark.Text)

If flag = True Then

sql = "Insert into classFEE values(" & CInt(txtcid.Text) & ",'" &
StrConv(Trim(txtcname.Text), vbProperCase) & "'," & CDbl(txtcfee.Text) & ",'" &
StrConv(Trim(cmbgoc.Text), vbProperCase) & "','" & StrConv(Trim(txtremark.Text),
vbProperCase) & "')"

db.Execute sql

MsgBox "Record Saved."

Else

sql = "Update classFEE set class_name='" & StrConv(Trim(txtcname.Text), vbProperCase)


& "',class_fee=" & CDbl(txtcfee.Text) & ",[group]='" & StrConv(Trim(cmbgoc.Text),
vbProperCase) & "',remarks='" & StrConv(Trim(txtremark.Text), vbProperCase) & "'where
Class_id=" & CInt(txtcid.Text)

54
db.Execute sql

MsgBox "Record Updated."

End If

cmdnew.Enabled = True

Form_Load

End Sub

Private Sub cmdupdate_Click()

flag = False

txtcid.Enabled = True

txtcname.Enabled = True

txtcfee.Enabled = True

cmbgoc.Enabled = True

txtremark.Enabled = True

cmdsave.Enabled = True

cmdfind.Enabled = False

cmdnew.Enabled = False

cmdupdate.Enabled = False

End Sub

Private Sub Form_Load()

centerform Me

Locktext Me, True

txtcid.Enabled = False

txtcname.Enabled = False

txtcfee.Enabled = False

cmbgoc.Enabled = False

txtremark.Enabled = False

CloseRS

55
rs.Open "classfee", db, adOpenKeyset, adLockPessimistic

If rs.RecordCount = 0 Then

cmdupdate.Enabled = False

cmdfind.Enabled = False

cmdsave.Enabled = False

Else

Display

cmdupdate.Enabled = True

cmdfind.Enabled = True

cmdsave.Enabled = False

End If

CloseRS

Framefind.Visible = False

End Sub

Private Sub MSGrid_DblClick()

sql = "select * from classFEE where class_id=" & MSGrid.TextMatrix(MSGrid.Row, 0)

CloseRS

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

If rs.RecordCount > 0 Then

Display

Framefind.Visible = False

End If

Locktext Me, True

End Sub

Private Sub txtcfee_KeyPress(KeyAscii As Integer)

validno KeyAscii

End Sub

56
Private Sub Display()

txtcid.Text = rs(0)

txtcname.Text = rs(1)

txtcfee.Text = rs(2)

cmbgoc.Text = rs(3)

txtremark.Text = rs(4)

End Sub

Private Sub CloseRS()

If rs.State = 1 Then

rs.Close

Set rs = Nothing

End If

End Sub

Private Sub txtfee_KeyPress(KeyAscii As Integer)

validno KeyAscii

End Sub

Option Explicit

Dim rs As New ADODB.Recordset

Dim flag As Boolean

Dim sql As String

Private Sub cmdbrw_Click()

57
On Error GoTo School

CDl.CancelError = True

CDl.Filter = "jpeg|*.jpg|gif|*.gif|bmp|*.bmp"

CDl.ShowOpen

Picture1.Picture = LoadPicture(CDl.FileName)

txtpath.Text = CDl.FileName

Exit Sub

School:

MsgBox Err.Description

End Sub

Private Sub cmdclose_Click()

Unload Me

End Sub

Private Sub cmdexit_Click()

Framefind.Visible = False

End Sub

Private Sub cmdfind_Click()

Dim sql As String

Framefind.Visible = True

sql = "select admiss_no,name,f_name,class from student"

CloseRS

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

MSGrid.Rows = 1

If rs.RecordCount > 0 Then

While Not rs.EOF = True

MSGrid.AddItem rs(0) & Chr(9) & rs(1) & Chr(9) & rs(2) & Chr(9) & rs(3)

rs.MoveNext

58
Wend

End If

End Sub

Private Sub cmdnew_Click()

Locktext Me, False

Dim i As Variant

flag = True

For Each i In Controls

If TypeOf i Is TextBox Then i.Text = ""

Next

txtadno.Enabled = True

txtstudname.Enabled = True

txtcaste.Enabled = True

txtfname.Enabled = True

txtoccu.Enabled = True

txtfaddr.Enabled = True

txtphone.Enabled = True

cmbclass.Enabled = True

Framesex.Enabled = True

Framecate.Enabled = True

Framereli.Enabled = True

DTPdob.Enabled = True

txtdoa.Enabled = True

DTPdob.Value = Date

txtdoa.Text = Date

Dim sql As String

CloseRS

59
sql = "select max(admiss_no)from student"

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

If IsNull(rs(0)) Then

txtadno.Text = 1

Else

txtadno.Text = rs(0) + 1

End If

cmdsave.Enabled = True

cmdfind.Enabled = False

cmdnew.Enabled = False

cmdupdate.Enabled = False

cmdbrw.Enabled = True

txtstudname.SetFocus

End Sub

Private Sub cmdref_Click()

Form_Load

cmdnew.Enabled = True

End Sub

Private Sub cmdsave_Click()

Dim sql As String

Dim a As String, b As String, c As String

Dim i As Integer

If Len(txtpath.Text) = 0 Then

cmdbrw.SetFocus

MsgBox "Please select picture's Path"

Exit Sub

60
End If

If Len(txtstudname.Text) = 0 Then

txtstudname.SetFocus

MsgBox "Please enter Student Name"

Exit Sub

End If

If Len(cmbclass.Text) = 0 Then

cmbclass.SetFocus

MsgBox "Please enter Class Name"

Exit Sub

End If

If Len(txtcaste.Text) = 0 Then

txtcaste.SetFocus

MsgBox "Please enter Caste"

Exit Sub

End If

If Len(txtfname.Text) = 0 Then

txtfname.SetFocus

MsgBox "Please enter Father's Name"

Exit Sub

End If

If Len(txtoccu.Text) = 0 Then

txtoccu.SetFocus

MsgBox "Please enter Occuption"

Exit Sub

End If

If Len(txtfaddr.Text) = 0 Then

61
txtfaddr.SetFocus

MsgBox "Please enter Full address"

Exit Sub

End If

If optsex(0).Value = False And optsex(1).Value = False Then

MsgBox "Please select Sex"

Exit Sub

End If

For i = 0 To 1

If optsex(i).Value = True Then

a = optsex(i).Caption

End If

Next

If optreli(0).Value = False And optreli(1).Value = False And optreli(2).Value = False And


optreli(3).Value = False Then

MsgBox "Please select Religion"

Exit Sub

End If

For i = 0 To 3

If optreli(i).Value = True Then

b = optreli(i).Caption

End If

Next

If optcate(0).Value = False And optcate(1).Value = False And optcate(2).Value = False And


optcate(3).Value = False Then

MsgBox "Please select Category"

Exit Sub

End If

62
For i = 0 To 3

If optcate(i).Value = True Then

c = optcate(i).Caption

End If

Next

txtphone.Text = IIf(Len(txtphone.Text) = 0, "-", txtphone.Text)

If flag = True Then

sql = "insert into student values(" & CInt(txtadno.Text) & ",#" & CDate(txtdoa.Text) & "#,'"
& StrConv(Trim(txtstudname.Text), vbProperCase) & "','" & StrConv(Trim(cmbclass.Text),
vbProperCase) & "','" & CStr(a) & "',#" & CDate(DTPdob.Value) & "#,'" & CStr(b) & "','" &
StrConv(Trim(txtcaste), vbProperCase) & "','" & CStr(c) & "','" &
StrConv(Trim(txtfname.Text), vbProperCase) & "','" & StrConv(Trim(txtoccu.Text),
vbProperCase) & "','" & StrConv(Trim(txtfaddr.Text), vbProperCase) & "','" &
StrConv(Trim(txtphone.Text), vbProperCase) & "','" & StrConv(Trim(txtpath.Text),
vbProperCase) & "')"

db.Execute sql

MsgBox "Record Saved"

Else

sql = "Update student set datea=#" & CDate(txtdoa.Text) & "#,name='" &
StrConv(Trim(txtstudname.Text), vbProperCase) & "',class='" &
StrConv(Trim(cmbclass.Text), vbProperCase) & "',sex='" & CStr(a) & "',DOB=#" &
CDate(DTPdob.Value) & "#,Religion='" & CStr(b) & "',[Cast]='" & StrConv(Trim(txtcaste),
vbProperCase) & "',categ='" & CStr(c) & "',F_name='" & StrConv(Trim(txtfname.Text),
vbProperCase) & "',occuption='" & StrConv(Trim(txtoccu.Text), vbProperCase) &
"',Full_addre='" & StrConv(Trim(txtfaddr.Text), vbProperCase) & "',Phone_no='" &
StrConv(Trim(txtphone.Text), vbProperCase) & "',Photo='" & StrConv(Trim(txtpath.Text),
vbProperCase) & "' where Admiss_no=" & CInt(txtadno.Text)

db.Execute sql

MsgBox "Record Updated"

End If

cmdnew.Enabled = True

Form_Load

End Sub

63
Private Sub cmdupdate_Click()

txtadno.Enabled = True

txtstudname.Enabled = True

cmbclass.Enabled = True

txtcaste.Enabled = True

txtfname.Enabled = True

txtoccu.Enabled = True

txtfaddr.Enabled = True

txtphone.Enabled = True

Framesex.Enabled = True

Framereli.Enabled = True

Framecate.Enabled = True

cmdsave.Enabled = True

DTPdob.Enabled = True

cmdfind.Enabled = False

cmdnew.Enabled = False

cmdupdate.Enabled = False

cmdbrw.Enabled = True

flag = False

End Sub

Private Sub Form_Load()

centerform Me

Framefind.Visible = False

Locktext Me, True

DTPdob.Enabled = False

txtdoa.Enabled = False

txtadno.Enabled = False

64
txtstudname.Enabled = False

txtcaste.Enabled = False

txtfname.Enabled = False

txtoccu.Enabled = False

txtfaddr.Enabled = False

txtphone.Enabled = False

cmbclass.Enabled = False

txtpath.Enabled = False

Framesex.Enabled = False

Framereli.Enabled = False

Framecate.Enabled = False

sql = "select class_name from classFEE"

cmbclass.Clear

CloseRS

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

If rs.RecordCount > 0 Then

While Not rs.EOF = True

cmbclass.AddItem (rs(0))

rs.MoveNext

Wend

End If

CloseRS

rs.Open "student", db, adOpenKeyset, adLockPessimistic, adCmdTable

If rs.RecordCount = 0 Then

cmdupdate.Enabled = False

cmdfind.Enabled = False

65
cmdsave.Enabled = False

cmdbrw.Enabled = False

Else

Display

cmdupdate.Enabled = True

cmdfind.Enabled = True

cmdsave.Enabled = False

cmdbrw.Enabled = False

End If

End Sub

Private Sub MSGrid_DblClick()

Dim sql As String

sql = "select * from student where admiss_no=" & MSGrid.TextMatrix(MSGrid.Row, 0)

CloseRS

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

If rs.RecordCount > 0 Then

Display

Framefind.Visible = False

End If

End Sub

Private Sub txtadno_KeyPress(KeyAscii As Integer)

validno KeyAscii

End Sub

Private Sub txtcaste_KeyPress(KeyAscii As Integer)

validchar KeyAscii

End Sub

Private Sub txtfname_KeyPress(KeyAscii As Integer)

66
validchar KeyAscii

End Sub

Private Sub txtoccu_KeyPress(KeyAscii As Integer)

validchar KeyAscii

End Sub

Private Sub txtstudname_KeyPress(KeyAscii As Integer)

validchar KeyAscii

End Sub

Private Sub Display()

txtadno.Text = rs(0)

txtdoa.Text = rs(1)

txtstudname.Text = rs(2)

cmbclass.Text = rs(3)

If rs(4) = "Male" Then

optsex(0).Value = True

Else

rs(4) = "Female"

optsex(1).Value = True

End If

DTPdob.Value = rs(5)

If rs(6) = "Hindu" Then

optreli(0).Value = True

ElseIf rs(6) = "Muslim" Then

optreli(1).Value = True

ElseIf rs(6) = "Sikh" Then

optreli(2).Value = True

Else

67
rs(6) = "Christian"

optreli(3).Value = True

End If

txtcaste.Text = rs(7)

If rs(8) = "Gen" Then

optcate(0).Value = True

ElseIf rs(8) = "SC" Then

optcate(1).Value = True

ElseIf rs(8) = "ST" Then

optcate(2).Value = True

ElseIf rs(8) = "OBC" Then

optcate(3).Value = True

End If

txtfname.Text = rs(9)

txtoccu.Text = rs(10)

txtfaddr.Text = rs(11)

txtphone.Text = rs(12)

txtpath.Text = rs(13)

'Picture1.Picture = LoadPicture(rs(13))

End Sub

Private Sub CloseRS()

If rs.State = 1 Then

rs.Close

Set rs = Nothing

End If

End Sub

68
Option Explicit

Dim rs As New ADODB.Recordset

Dim sql As String

Dim flag As Boolean, flag1 As Boolean

Private Sub cmbname_Click()

If cmbname.Locked = True Then Exit Sub

CloseRS

sql = "select class from student where admiss_no=" & Mid(cmbname.Text, 1,


InStr(cmbname.Text, "-") - 1)

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

If rs.RecordCount > 0 Then txtclass.Text = rs(0)

rs.Close

sql = "select * from fee_tabl where name='" & cmbname.Text & "' and class='" &
txtclass.Text & "'"

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

If rs.RecordCount > 0 Then

txtregfee.Locked = True

69
txtregfee.Text = "-"

flag1 = True

txtmfee.SetFocus

Else

Locktext Me, False

txtregfee.SetFocus

flag1 = False

End If

CloseRS

txtregfee.SetFocus

End Sub

Private Sub cmdclose_Click()

Unload Me

End Sub

Private Sub cmdexit_Click()

Framefind.Visible = False

End Sub

Private Sub cmdfind_Click()

Framefind.Visible = True

sql = "select receipt_no,name,class,total from m_fee"

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

MSGrid.Rows = 1

If rs.RecordCount > 0 Then

While Not rs.EOF = True

MSGrid.AddItem rs(0) & Chr(9) & rs(1) & Chr(9) & rs(2)

rs.MoveNext

Wend

70
End If

CloseRS

End Sub

Private Sub cmdnew_Click()

Locktext Me, False

flag = True

cmbname.Enabled = True

txtclass.Enabled = True

txtregfee.Enabled = True

txtmfee.Enabled = True

txtmfeeo.Enabled = True

txtbusfee.Enabled = True

txtmainchar.Enabled = True

txtPTA.Enabled = True

txtSfund.Enabled = True

txtEfee.Enabled = True

txtactfee.Enabled = True

txtcompfee.Enabled = True

txtmichar.Enabled = True

txttot.Enabled = True

Dim i As Variant

For Each i In Controls

If TypeOf i Is TextBox Then i.Text = ""

Next

sql = "select max(Receipt_no) from M_Fee"

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

If IsNull(rs(0)) Then

71
txtno.Text = 1

Else

txtno.Text = rs(0) + 1

End If

txtdate.Text = Format(Date, "dd/mm/yyyy")

txtdate.Text = Date

cmdsave.Enabled = True

cmdupdate.Enabled = False

cmdnew.Enabled = False

cmbname.SetFocus

End Sub

Private Sub cmdref_Click()

Form_Load

cmdnew.Enabled = True

End Sub

Private Sub cmdsave_Click()

If Len(txtno.Text) = 0 Then

txtno.SetFocus

MsgBox "Please enter Receipt number"

Exit Sub

End If

If Len(cmbname.Text) = 0 Then

cmbname.SetFocus

MsgBox "Please select Student name"

Exit Sub

End If

If Len(txtclass.Text) = 0 Then

72
txtclass.SetFocus

MsgBox "Please enter class"

Exit Sub

End If

If Len(txtregfee.Text) = 0 Then

txtregfee.SetFocus

MsgBox "Please enter Registration fee "

Exit Sub

End If

If Len(txtmfee.Text) = 0 Then

txtmfee.SetFocus

MsgBox "Please enter tution fee of this month"

Exit Sub

End If

If Len(txtmfeeo.Text) = 0 Then

txtmfeeo.SetFocus

MsgBox "Please enter Name of fee-month"

Exit Sub

End If

If Len(txtbusfee.Text) = 0 Then

txtbusfee.SetFocus

MsgBox "Please enter bus fee"

Exit Sub

End If

If Len(txtmainchar.Text) = 0 Then

txtmainchar.SetFocus

MsgBox "Please enter Maintenance Charges"

73
Exit Sub

End If

If Len(txtPTA.Text) = 0 Then

txtPTA.SetFocus

MsgBox "Please enter PTA Fund"

Exit Sub

End If

If Len(txtSfund.Text) = 0 Then

txtSfund.SetFocus

MsgBox "Please enter Student fund"

Exit Sub

End If

If Len(txtEfee.Text) = 0 Then

txtEfee.SetFocus

MsgBox "Please enter Examination Fee"

Exit Sub

End If

If Len(txtactfee.Text) = 0 Then

txtactfee.SetFocus

MsgBox "Please enter Activity fee"

Exit Sub

End If

If Len(txtcompfee.Text) = 0 Then

txtcompfee.SetFocus

MsgBox "Please enter Computer Fee"

Exit Sub

End If

74
If Len(txtmichar.Text) = 0 Then

txtmichar.SetFocus

MsgBox "Please enter Misc. Charges"

Exit Sub

End If

Dim sql As String

If flag = True Then

If flag1 = True Then

txtregfee.Locked = True

sql = "Insert into m_fee values(" & (txtno.Text) & ",#" & CDate(txtdate.Text) & "#,'"
& Trim$(cmbname.Text) & "','" & (txtclass.Text) & "'," & Val(txtregfee.Text) & ","
& CDbl(txtmfee.Text) & ",'" & StrConv(Trim(txtmfeeo.Text), vbProperCase) & "',"
& CDbl(txtbusfee.Text) & "," & CDbl(txtmainchar.Text) & "," & CDbl(txtPTA.Text)
& "," & CDbl(txtSfund.Text) & "," & CDbl(txtEfee.Text) & "," &
CDbl(txtactfee.Text) & "," & CDbl(txtcompfee.Text) & "," & CDbl(txtmichar.Text)
& "," & CDbl(txttot.Text) & ")"

db.Execute sql

sql = "update fee_tabl set total=total+" & txttot.Text & " where name='" &
cmbname.Text & "' and class='" & txtclass.Text & "'"

db.Execute sql

Else

sql = "Insert into m_fee values(" & (txtno.Text) & ",#" & CDate(txtdate.Text) & "#,'"
& Trim$(cmbname.Text) & "','" & (txtclass.Text) & "'," & CDbl(txtregfee.Text) & ","
& CDbl(txtmfee.Text) & ",'" & StrConv(Trim(txtmfeeo.Text), vbProperCase) & "',"
& CDbl(txtbusfee.Text) & "," & CDbl(txtmainchar.Text) & "," & CDbl(txtPTA.Text)
& "," & CDbl(txtSfund.Text) & "," & CDbl(txtEfee.Text) & "," &
CDbl(txtactfee.Text) & "," & CDbl(txtcompfee.Text) & "," & CDbl(txtmichar.Text)
& "," & CDbl(txttot.Text) & ")"

db.Execute sql

sql = "Insert into Fee_Tabl values(" & (CInt(txtno.Text)) & ",#" &
CDate(txtdate.Text) & "#,'" & Trim$(cmbname.Text) & "','" &
StrConv(Trim$(txtclass.Text), vbProperCase) & "'," & CDbl(txttot.Text) & ")"

db.Execute sql

75
End If

MsgBox "Record Saved"

Else

sql = "Select total from fee_tabl where receipt_no=" & txtno.Text

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

If rs.RecordCount > 0 Then

Dim q As Integer

If rs(0) < Val(txttot.Text) Then

q = Val(txttot.Text) - rs(0)

sql = "update fee_tabl set total=total+" & q & " where name='" & cmbname.Text & "'
and class='" & txtclass.Text & "'"

db.Execute sql

End If

If rs(0) > Val(txttot.Text) Then

q = rs(0) - Val(txttot.Text)

sql = "update fee_tabl set total=total-" & q & " where name='" & cmbname.Text & "'
and class='" & txtclass.Text & "'"

db.Execute sql

End If

End If

sql = "Update m_Fee set Name='" & Trim$(cmbname.Text) & "',class='" &
StrConv(Trim(txtclass.Text), vbProperCase) & "',Regn_fee=" & CDbl(txtregfee.Text)
& ",Fee_month=" & CDbl(txtmfee.Text) & ",Fee_mont_o='" &
StrConv(Trim(txtmfeeo.Text), vbProperCase) & "',bus_fee=" & CDbl(txtbusfee.Text)
& ",maint_char=" & CDbl(txtmainchar.Text) & ",pta_fund=" & CDbl(txtPTA.Text)
& ",stude_fund=" & CDbl(txtSfund.Text) & ",exam_fee=" & CDbl(txtEfee.Text) &
",activi_fee=" & CDbl(txtactfee.Text) & ",comput_fee=" & CDbl(txtcompfee.Text) &
",misc_charg=" & CDbl(txtmichar.Text) & ",Total=" & CDbl(txttot.Text) & " where
Receipt_no=" & CInt(txtno.Text)

76
db.Execute sql

rs.Close

MsgBox "Record Updated"

End If

cmdnew.Enabled = True

Form_Load

End Sub

Private Sub cmdupdate_Click()

txtno.Enabled = True

cmbname.Enabled = True

txtclass.Enabled = True

txtregfee.Enabled = True

txtmfee.Enabled = True

txtmfeeo.Enabled = True

txtbusfee.Enabled = True

txtmainchar.Enabled = True

txtPTA.Enabled = True

txtSfund.Enabled = True

txtEfee.Enabled = True

txtactfee.Enabled = True

txtcompfee.Enabled = True

txtmichar.Enabled = True

txttot.Enabled = True

txtdate.Enabled = True

cmdsave.Enabled = True

cmdfind.Enabled = False

cmdnew.Enabled = False

77
cmdupdate.Enabled = False

flag = False

End Sub

Private Sub Form_Load()

Dim i As Variant

For Each i In Controls

If TypeOf i Is TextBox Then i.Text = ""

Next

centerform Me

Locktext Me, True

txtno.Enabled = False

cmbname.Enabled = False

txtclass.Enabled = False

txtregfee.Enabled = False

txtregfee.Locked = True

txtmfee.Enabled = False

txtmfeeo.Enabled = False

txtbusfee.Enabled = False

txtmainchar.Enabled = False

txtPTA.Enabled = False

txtSfund.Enabled = False

txtEfee.Enabled = False

txtactfee.Enabled = False

txtcompfee.Enabled = False

txtmichar.Enabled = False

txttot.Enabled = False

txtdate.Enabled = False

78
Framefind.Visible = False

sql = "select admiss_no &'-'& name from student"

cmbname.Clear

rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

If rs.RecordCount > 0 Then

While Not rs.EOF = True

cmbname.AddItem (rs(0))

rs.MoveNext

Wend

End If

CloseRS

rs.Open "fee_tabl", db, adOpenKeyset, adLockPessimistic, adCmdTable

If rs.RecordCount = 0 Then

cmdupdate.Enabled = False

cmdfind.Enabled = False

cmdsave.Enabled = False

Else

cmdupdate.Enabled = True

cmdfind.Enabled = True

cmdsave.Enabled = False

End If

CloseRS

End Sub

Private Sub MSGrid_DblClick()

sql = "select * from m_Fee where Receipt_no=" &


MSGrid.TextMatrix(MSGrid.Row, 0)

79
rs.Open sql, db, adOpenKeyset, adLockPessimistic, adCmdText

If rs.RecordCount > 0 Then

Display

Framefind.Visible = False

End If

CloseRS

Locktext Me, True

End Sub

Private Sub Display()

txtno.Text = rs(0)

txtdate.Text = rs(1)

cmbname.Text = rs(2)

txtclass.Text = rs(3)

txtregfee.Text = rs(4)

txtmfee.Text = rs(5)

txtmfeeo.Text = rs(6)

txtbusfee.Text = rs(7)

txtmainchar.Text = rs(8)

txtPTA.Text = rs(9)

txtSfund.Text = rs(10)

txtEfee.Text = rs(11)

txtactfee.Text = rs(12)

txtcompfee.Text = rs(13)

txtmichar.Text = rs(14)

txttot.Text = rs(15)

End Sub

Private Sub CloseRS()

80
'rs.Close

Set rs = Nothing

End Sub

Private Sub txtactfee_KeyPress(KeyAscii As Integer)

validno KeyAscii

End Sub

Private Sub txtactfee_LostFocus()

txttot.Text = Val(txtregfee.Text) + Val(txtmfee.Text) + Val(txtbusfee.Text) +


Val(txtmainchar.Text) + Val(txtPTA.Text) + Val(txtSfund.Text) + Val(txtEfee.Text)
+ Val(txtactfee.Text) + Val(txtcompfee.Text) + Val(txtmichar.Text)

End Sub

Private Sub txtbusfee_KeyPress(KeyAscii As Integer)

validno KeyAscii

End Sub

Private Sub txtbusfee_LostFocus()

txttot.Text = Val(txtregfee.Text) + Val(txtmfee.Text) + Val(txtbusfee.Text) +


Val(txtmainchar.Text) + Val(txtPTA.Text) + Val(txtSfund.Text) + Val(txtEfee.Text)
+ Val(txtactfee.Text) + Val(txtcompfee.Text) + Val(txtmichar.Text)

End Sub

Private Sub txtcompfee_KeyPress(KeyAscii As Integer)

validno KeyAscii

End Sub

Private Sub txtcompfee_LostFocus()

txttot.Text = Val(txtregfee.Text) + Val(txtmfee.Text) + Val(txtbusfee.Text) +


Val(txtmainchar.Text) + Val(txtPTA.Text) + Val(txtSfund.Text) + Val(txtEfee.Text)
+ Val(txtactfee.Text) + Val(txtcompfee.Text) + Val(txtmichar.Text)

End Sub

Private Sub txtEfee_KeyPress(KeyAscii As Integer)

validno KeyAscii

81
End Sub

Private Sub txtEfee_LostFocus()

txttot.Text = Val(txtregfee.Text) + Val(txtmfee.Text) + Val(txtbusfee.Text) +


Val(txtmainchar.Text) + Val(txtPTA.Text) + Val(txtSfund.Text) + Val(txtEfee.Text)
+ Val(txtactfee.Text) + Val(txtcompfee.Text) + Val(txtmichar.Text)

End Sub

Private Sub txtmainchar_KeyPress(KeyAscii As Integer)

validno KeyAscii

End Sub

Private Sub txtmainchar_LostFocus()

txttot.Text = Val(txtregfee.Text) + Val(txtmfee.Text) + Val(txtbusfee.Text) +


Val(txtmainchar.Text) + Val(txtPTA.Text) + Val(txtSfund.Text) + Val(txtEfee.Text)
+ Val(txtactfee.Text) + Val(txtcompfee.Text) + Val(txtmichar.Text)

End Sub

Private Sub txtmfee_KeyPress(KeyAscii As Integer)

validno KeyAscii

End Sub

Private Sub txtmfee_LostFocus()

txttot.Text = Val(txtregfee.Text) + Val(txtmfee.Text) + Val(txtbusfee.Text) +


Val(txtmainchar.Text) + Val(txtPTA.Text) + Val(txtSfund.Text) + Val(txtEfee.Text)
+ Val(txtactfee.Text) + Val(txtcompfee.Text) + Val(txtmichar.Text)

End Sub

Private Sub txtmfeeo_KeyPress(KeyAscii As Integer)

validchar KeyAscii

End Sub

Private Sub txtmichar_KeyPress(KeyAscii As Integer)

validno KeyAscii

End Sub

Private Sub txtmichar_LostFocus()

82
txttot.Text = Val(txtregfee.Text) + Val(txtmfee.Text) + Val(txtbusfee.Text) +
Val(txtmainchar.Text) + Val(txtPTA.Text) + Val(txtSfund.Text) + Val(txtEfee.Text)
+ Val(txtactfee.Text) + Val(txtcompfee.Text) + Val(txtmichar.Text)

End Sub

Private Sub txtPTA_KeyPress(KeyAscii As Integer)

validno KeyAscii

End Sub

Private Sub txtPTA_LostFocus()

txttot.Text = Val(txtregfee.Text) + Val(txtmfee.Text) + Val(txtbusfee.Text) +


Val(txtmainchar.Text) + Val(txtPTA.Text) + Val(txtSfund.Text) + Val(txtEfee.Text)
+ Val(txtactfee.Text) + Val(txtcompfee.Text) + Val(txtmichar.Text)

End Sub

Private Sub txtregfee_KeyPress(KeyAscii As Integer)

validno KeyAscii

End Sub

Private Sub txtregfee_LostFocus()

txttot.Text = Val(txtregfee.Text) + Val(txtmfee.Text) + Val(txtbusfee.Text) +


Val(txtmainchar.Text) + Val(txtPTA.Text) + Val(txtSfund.Text) + Val(txtEfee.Text)
+ Val(txtactfee.Text) + Val(txtcompfee.Text) + Val(txtmichar.Text)

End Sub

Private Sub txtSfund_KeyPress(KeyAscii As Integer)

validno KeyAscii

End Sub

Private Sub txtSfund_LostFocus()

txttot.Text = Val(txtregfee.Text) + Val(txtmfee.Text) + Val(txtbusfee.Text) +


Val(txtmainchar.Text) + Val(txtPTA.Text) + Val(txtSfund.Text) + Val(txtEfee.Text)
+ Val(txtactfee.Text) + Val(txtcompfee.Text) + Val(txtmichar.Text)

End Sub

Option Explicit

Private Sub DataReport_Initialize()

83
If School_Management.rsCMDCLASS.State = 1 Then
School_Management.rsCMDCLASS.Close

End Sub

Private Sub DataReport_Terminate()

If School_Management.rscmdstud.State = 1 Then School_Management.rscmdstud.Close

End Sub

Private Sub DataReport_Terminate()

If School_Management.rscmdfee.State = 1 Then School_Management.rscmdfee.Close

End Sub

Private Sub mnuhelp_Click()

CommonDialog1.HelpCommand = &H3&

CommonDialog1.HelpFile = App.Path & "\help.hlp"

CommonDialog1.ShowHelp

End Sub

Private Sub mnuexit_Click()

If MsgBox("Exit", vbYesNo + vbQuestion, "Exit") = vbYes Then

closedb

End

End If

End Sub

84
CHAPTER 13
Conclusion

85
It is basically a Database management package for the authorities of school/institute

that maintains student’s data. All the details of student are managed by the package i.e.

Personal details, Fees details, Reports & etc. The package is by the name of Student

Data Management Package. Package helps the various departments in maintaining &

manipulating the data. Student data are divided into Personal information, Fees Details,

Receipt printing & etc it helps in manipulating the divided parts of the data. This system

is for the department maintaining student records.

Student Data Management package has a very user friendly environment & it’s

interfaces are similar to windows, so it will not take time for the user to get acquainted

with the system, there are few things that should be kept in mind before using the

system those points are explained with the help of screen outputs.

This Package is developed for stand-alone system, hence for logging on the system user

must know the Username & Password. After choosing from the menus the specific

options few things has to be kept in mind which are explained below.

86
CHAPTER 14
Limitation and future scope

87
LIMITATION OF THE SYSTEM

Limitations of the system and future development areas:

Limitation of any system is difference between the required system & the developed

system: -

1. It is developed for only stand-alone PC.

2. This system is quite easy to use this is not its limitation but its restrictive features

are its limitation.

3. The back end used in the system is M S Access, which is not an RDBMS.

4. The system does not support multiple users.

5. There are few things, which should be kept in mind while using the system.

88
CHAPTER 15
references

89
References

For the completion of this project I referred to the following goods

1. Data Base Programming with VB.NET


By Curtis L. Smith & Michael C. Amundsel

2. Using VB.NET 6.0


By Brian Silver & Jeff Spott

3. Mastering VB.NET
By My Microsoft

4. Mastering VB.NET
By BPB Publication

5. Introduction to VB programming
By V.K. Jain

90

Vous aimerez peut-être aussi