Sunteți pe pagina 1din 85

COLLEGE LIBRARY MANAGEMENT SYSTEM

1.1 Overview Of The System


Computers have become an essential part of the organizational information
processing because of the power of the technology and data to be processed.
Present challenge in information processing is to use the capabilities of
computer to support knowledge work including servicing activities and decision
making. The project entitled “COLLEGE LIBRARY MANAGEMENT SYSTEM” is
used to computerize the manually doing process in a college library. It was
developed with VISUAL BASIC 6.0 as the front end and Oracle SQL as the back
end.
The main aim is to reduce the work burden to the users, and present the entire
work as much attractive. The project that performs various functions in a
COLLEGE LIBRARY including student details, staff details, book details and
facility for book issuing details, book returning details, fine calculation etc. By
using this software we can store such details and can easily retrieve it. If we are
doing this manually, it needs a lot of record keeping and also it is time
consuming. Thus we are computerizing the task. Thus it makes the processing
more efficient. So as to simplify the task of employee/admin by computerizing
and also time used by manuals is to be reduced. Another facility offered by this
software is that, it also provide identity cards, which helps for the book issue,
fine payment etc.
The proposed system will have the additional features of security. The outside
users cannot have access to the proposed system. The manually collected data
are registered to the system by administrator and the transactions such as book
issuing and returning are entered into the system by the staff. No others can
have access to the proposed system. This security is achieved by providing a
username and password to the system admin and staff. The admin and the staff
would have the privilege to modify the password provided to them.
The proposed system will also help to create various reports like book issue,
book return by staff and book return by student. All these reports can be made
easily with less human efforts.

1.2 Problem Definition And Objectives


The system study includes identifying particular problem to be solved or the task
to be accomplished and setting the system goals to be achieved after defining the
problem. The goals of the project are reviewed which to be has fulfilled in order

MES T.O Abdulla Memorial college kunnukara


1
COLLEGE LIBRARY MANAGEMENT SYSTEM

to complete it successfully. Commencement of our project was done with an


objective of developing an application which avoids the difficulties in library
managing, reduces work load and increases the system performance.
Our main objective is to make the software with high performance, which is easy
to work with, which monitor and control the
library transaction more easily. With this data redundancy problem can also be
erased. The application must be able to support user needs through the
software.
There are many advantages for this system over manual system. They are:

It’s very easy to work with.


User friendly application
Easy way to enter and retrieve various details.
Keep record of different categories of books.
Easy way to search availability of books.
Changes can be easily made to the system.
Provide facilities for future enhancement.
Provide efficient storage for all related data.
Various bills can be issued easily.
Can be easily operated.
Less time consuming.
Human effort is low as compared to manual system.
Automatic fine calculation for late returns.

MES T.O Abdulla Memorial college kunnukara 2


COLLEGE LIBRARY MANAGEMENT SYSTEM

2.1 Introduction
System analysis is detailed study of various operations performed by a system
and their relationship within and outside of the system. The main aspect of the
analysis is defining their boundaries of the system and there interaction with the
other system. Data gathering, traditional or structured is only a part of the
system analysis. The next spaces are examining the data gathered, assessing the
situation, looking at their alternatives and recommending a solution.
The goal of this project is to install computers that will enable the library staff to
schedule items with a professional scheduling application and maintain books of
items with a relational database that will suit specific needs of the library.
Currently, the college has old, inefficient filing system that is hard to manage.
Everything is done by writing. The college and staff have strongly stated an
urgent need to upgrade their current system into a more efficient automated
system. While the current system is working fine for their daily practice, it is
however, inefficient and time consuming.
The application also enables to create the report. The intention of the system is a
computerization of the college library management system. This system studies
the problems existing in the manual functioning in the current system and tries
to resolve by computerizing it. The project title “COLLEGE LIBRARY
MANAGEMENT SYSTEM” is an interactive system and highly user friendly
system. The system covers almost all the functional areas of the record keeping
and preparation reports. This system is developed in Visual Basic language with
SQL as back end. VB is a very suitable one for such an application. We make
use of its intermediate Visual Basic 6.0. The system is a menu driven one. The
user-friendly menus will help the end user to work on it without any operational
difficulty.

2.2 Existing System


The manual system is backed by several numbers of disadvantages. Number of
error and frauds will be more. There will be more wastage of energy and time. By
making this computerized we can maintain high accuracy and reliability. To
overcome these problems, we are implementing a computerized system with
combination of VB and SQL.
Taking into consideration the existing system is at the present being done in a
manual way, and is by several disadvantages. All the details done on the
industry are manually. They are using recording application for their accounting

MES T.O Abdulla Memorial college kunnukara 3


COLLEGE LIBRARY MANAGEMENT SYSTEM

and inventory purposes. Other details are done manually. If it is there, the
details of the student, staff, book and other details are given to the management.
There will more wastage of energy and time. By making this into computerized
we can maintain high accuracy and reliability. To overcome these problems, we
are implementing a computerized system with combination of VB and SQL. Thus
these difficulties exist in the current system; there is a need to modify the
existing system. So we have to introduce a new system.
The present system has some limitations;
They are;
Report generations are difficult.
Existing system can adapt to changes quickly it cannot be updated quickly.
Since all the process is done manually, a lot of mistakes can occur.
When changes are made, there is chance to get errors in very large.
Searches and retrievals of student or staff information are time consuming.
Needs lot of paper work and manual effort.
Paper file require large storage space and it is time consuming.
The system is not very much accurate.
Danger of losing files in some cases.
Calculating fine is so difficult.
Since these difficulties exist in current system, there is need to modify the
existing system. So we have to introduce a new system.

2.3 Proposed System


To overcome the limitations seen in the existing system, there is developed a new
system. The new system has some advanced facilities. ‘COLLEGE LIBRARY
MANAGEMENT SYSTEM’ is a system that make college library more efficient,
effective and economical with the help of computerized application environment.
We are using VB application for handling the requirements. Any person who is
not familiar with this language can easily work with it. It provides a Graphical
User Interface (GUI) which means that it provides a user friendly environment.
By using this system the college library can easily register new students, staff
and books. In this scheme time is saving and also need of external storage
equipment. Here is no way for exist security problems or data since the scheme
required only a least time and a high security.

MES T.O Abdulla Memorial college kunnukara


4
COLLEGE LIBRARY MANAGEMENT SYSTEM

Our main aim with this project is to reduce the manpower and to increase the
works. By using this software we can store students, book details and other
details and retrieval of data is very easy. The detail of the students, books, staff
details is stored in computer through this system. It reduces the effort of storing
details in file. This will reduce the man power.
2.3.1 Justification Of The Proposed System
The proposed system is designed to eliminate all the disadvantages of the
existing system. The proposed system deals with the manipulation of various
registrations, record keeping and generation of reports.
The proposed system aims at:
Speed in processing
Reduce man power
Security of data
Reduce or stop errors
Availability of reports
Less storage space
Fast accessing of data
Better user interaction
If any particular information about an event it is needed it can be collected from
database file. The primary aim of the new system is to speed up the process.
There is chance of errors since checking all the files validate the data.
File maintenance is an integral part of any software. This deal with various
operations that the users want to perform on database files. In the proposed
‘COLLEGE LIBRARY MANAGEMENT SYSTEM’ the user has the facility to provide
password to the program, so that the unauthorized access can be prevented. The
user may also want to remove the unwanted data from the files. The designing of
the proposed system is done in such a way that it handles all the above
problems efficiently.
2.3.2 Benefits Of The Proposed System
The proposed system simplifies the task of storage of data and report generation.
Automatic and regular backup of data safeguard the stored valuable information
so as to retrieve as and when required. All these factors make a very clear
picture of avoiding redundancy of data to the maximum. The whole of this
enable to restore the less time taken and more effective output retrieved giving
the maximum man power.

MES T.O Abdulla Memorial college kunnukara 5


COLLEGE LIBRARY MANAGEMENT SYSTEM

The proposed system will ease the processing the job and keeps track of up to
date data. The proposed will reduced the following disadvantages and it is easy
to use:
Difficult to maintain
Problem of report generation
Record finding problems
Wastage of money
Wastage of storage space
Data redundancy
Problem of security

The benefits of the proposed system are:


Status check
Custom report generation for book issue and returning
Easy entity registration
Easy to use with better user interface support
Accurate storing of item details without errors like duplication
Computerized system
With the help of GUI’S, its user friendly
Accessible from a single point
Staff and student management can be easily done

2.4 Feasibility Study


Feasibility study or feasibility analysis is a vital step in the system
development life cycle. The main aim of the feasibility study activity is to
determine whether it would be financially and technically feasible to develop
the product. The feasibility study involves the analysis of the problem and
collection of all relevant information relating to the product such as the different
data items which would be input to the system, the processing required to be
carried out on these data, the output data required to be produced by the
system, as well as various constraints on the behavior of the system.
In today’s world, every process is automated. The emerging technologies in IT
provide convenient and efficient way for creating automating software. This
MES T.O Abdulla Memorial college kunnukara

6
COLLEGE LIBRARY MANAGEMENT SYSTEM

project also developed for automating the operations in an industry with simple
graphical user interface. The front end is developed in VB and the back end SQL
ORACLE.
In this feasibility analysis study we will consider operational, technical and
economic aspects to determine the project’s feasibility, along with any types of
risks that this project may encounter.
They are:
Economic Feasibility
Technical Feasibility
Operational Feasibility

Economic Feasibility
This feasibility study deals with cost benefit analysis. Benefits may be tangible or
intangible. For our candidate system, it provides better performance and also
reduces cost of processing. Reducing cost means reduction of staff and there is
no need to provide candidate with purpose and book records. Our
candidate/proposed system don’t want any special computer memory or
processor. So there will be no hardware cost related for implementing this new
candidate system.
As the system works as a computer based system, reduces lot of manual effort
and thus man power cost. It also introduces faith and goodwill and can be
measured as intangible benefit. As we are generated from the computer based
system it reduces cost and naturally error prone as compare to manual
typewriter. The hardware cost of computerization has come down drastically over
the past few years but for the software. The number of nodes to be used in the
system can be increased and one can start off with the bare minimum.
In the case of the proposed system the hardware in the present system is
sufficient for system development. Even after development, updating more
maintenance of the proposed system does not pause as very high-priced
concern; the system is economically feasible too.
 


Technical Feasibility

MES T.O Abdulla Memorial college kunnukara

7
COLLEGE LIBRARY MANAGEMENT SYSTEM

As candidate system doesn’t need any special type of software and hardware. For
the smooth running of candidate system it needs only a small part of the
memory. it needs software’s like Visual Basic 6.0, Oracle etc. The memory size
required by the candidate system will be between 3 to 4 MB in the hard disk.
Thus the system is not technically costlier to implement on a new system.
Nothing extra is needed for this.
As the department having, the required hardware and software there is no
question of increasing the cost of implementing the proposed system considering
the above mentioned criteria, the proposed system is technically feasible, and
the proposed system can be developed with the existing facility and minimum
expenditure. We can strongly say that it is technically feasible, sincere there will
not be much difficulty in getting the required resources for the development and
for maintenance of the system as well. Since all the systems use Pentium II
processors and above the system need not be upgraded. All the other resources
needed for the development for the software as well as the maintenance of the
same is available in the organization. Here we are utilizing the resources, which
are available already.
Operational Feasibility
This is concerned with library aspect. The end users of the developing system
will be library staff. The staff will schedule the item and file the database with
basic information, and the staff will update the record to the database each time
when transaction or registration is done. The additional person will be selected
from the current library staff. It is unclear that who will be a backup staff
member at this point, and we will assume that the backup staff member has at
least a basic knowledge of operating the computer. However, the impact of this
person is minor to the project because the vendors are offering a full-scale
training session for the current employees.
Training the library will be feasible because of their competency in operating the
computer. The library field-related applications are not much sensitive, but thus
with an extensive training program upon receiving necessary training for the
customized application(s) the software will be useful and will offer satisfaction
over the current filing system. Therefore, it can be included that this project is
operationally feasible.

2.5 System Specification


MES T.O Abdulla Memorial college kunnukara
8
COLLEGE LIBRARY MANAGEMENT SYSTEM

2.5.1 Software Specification


Platform : Windows XP
Front end : Microsoft Visual Basic 6.0
Back end : SQL ORACLE
2.5.2 Tools/Platforms
Windows XP
Windows XP is an OS produced by Microsoft for use on personal computers,
including home and business desktops, laptops and media-center. First released
to computers manufactures on August 24, 2011, it is the second most popular
version of windows, based on installed user base. The name “XP” is short for
“experience”, highlighting the enhanced user experience.
Windows XP, the successor to Windows 2000 and windows me, was the first
consumer-oriented OS produced by Microsoft to be built on the Windows NT
kernel. Windows XP was released worldwide for retail sale on October 25, 2001
and over 400 million copies where in using January 2006. It was succeeded by
Windows Vista in January 2007. Direct OEM and retail sales of Windows XP
ceased on June 30, 2008. Microsoft continued to sell Windows XP through their
system builders (smaller OEMs who sell assembled computers) program until
January 31, 2009. On April 10, 2012, Microsoft real firmed that extended
support for Windows XP and office 2003 would end on April 8, 2014 and suggest
that administrators begin preparing to migrate to a never operating system.
The NT-based versions of Windows, which are programmed in c, c++ and
assembly, are known for their improved stability and efficiency over the 9x
versions of the Microsoft Windows. Windows XP presented a significantly
redesigned graphical user interface, a change Microsoft promote as more user
friendly than previous versions of Windows. A new software management facility
for side by side assembly was introduced to ameliorate the “DLL hell” that
plugged 9x versions of Windows. It also the first version of Windows to use
product activation to compact illegal copying. During Windows XP’s
development, the project was codenamed “whistler”, after whistler, British
Columbia, as many Microsoft employees skied at the whistler-Blackcomb ski
resort.
According to web analysis data generated by W3Schools, from September 2003
to July 2011, Windows XP was the most widely used operating system for
accessing the W3Schools website, which they claim is consistent with statistics
MES T.O Abdulla Memorial college kunnukara

9
COLLEGE LIBRARY MANAGEMENT SYSTEM

from other websites. As of August 2012, Windows XP market share is at 24.8%


after having peaked at 76.1% in January 2007.
Visual Basic 6.0
Visual Basic is the third generation event driven programming language and
integrated developed environment from Microsoft for its COM programming
model. VB is also considered a relatively easy to learn and use programming
language, because of its graphical development feature and BASIC heritage.
Visual Basic is derived from BASIC and enables the rapid application (RAD) of
graphical user interface (GUI) application, access to Data Base using Data
Access Object (DAO), Remote Data Object (RDO) or Active Data Object (ADO) and
creation of active x controls and objects. Scripting language such as VBA and VB
script are syntactically similar to Visual Basic, but perform differently.
Language Feature
Like the Basic Programming language, Visual Basic was designed to be easy to
learn and use. The language not only allows programmers to create simple GUI
applications, but can also develop complex applications. Programming in VB is a
visually arranging component to controls on a form, specifying attributes and
actions of those and writing additional lines of code for functionally. Since
default attributes and actions are defines for the components, a simple program
can be created without the programmer having to write many lines of code.
Forms are created using drag and drop technique. And tools are used to place
controls (e.g. textbox, button, and exit) on the form (window). Controls have
attributes and event-handlers associated with them. Default value are provided
when the tools are creating, but may be changed by the programmer. Many
attribute values can be modified during runtime based on user action or change
in environment, provided and dynamic application. For example code can be
inserted into the form resize event handlers to reposition and control so that it
remains centered on the form,
Expand to fill up the form, etc… by inserting code into the event handler for and
they press in and text box, the program can automatically translate the case of
the text being entered, or even prevent certain characters from being inserted.
Visual Basic can create executable (EXE files), Active x controls, DLL files but it
is primarily used to develop windows applications and to interface web database
system. Dialog boxes with less functionality can be used to provide pop-up
MES T.O Abdulla Memorial college kunnukara
capabilities. Controls provided the basic functionality for the application, while
programmer can insert additional within the appropriate event handler.

10
COLLEGE LIBRARY MANAGEMENT SYSTEM

Oracle 9i SQL
Epitomizing high-quality service in a service-driven marketplace, Oracle 9i
maximizes the usefulness of traditional business and intranet applications while
also providing users with the functionality needed to foster the growth of the
emerging hosted applications market on the internet.
Oracle 9i builds on historic oracle strengths to offer the first complete and
simple software infrastructure for the internet’s next generation of intelligent,
collaborative applications. Oracle 9i new features expedite delivery of the
performance, scalability, and availability that is crucial to providing hosted
service software for anyone, anywhere and anytime.
2.5.3 Hardware Specification
In order to implement a new system the choice of a processor with maximum
possible speed is made. There should be sufficient memory to store data and
software tools for efficient processing.
Processor : 2 GHZ or better Intel or AMD processor
Hard Disk Capacity : 10 GB (minimum)
Ram Capacity : 256 MB (minimum)
Display : XGA (1024*768) or higher-
Resolution monitor
Keyboard/Mouse : Keyboard and Microsoft mouse
Drive : CD ROM or DVD ROM drive
Printer : Laser Printer

2.6 Data Flow Diagram


MES T.O Abdulla Memorial college kunnukara

11
COLLEGE LIBRARY MANAGEMENT SYSTEM

LEVEL 0

College library
Request Response
User management User
system

LEVEL 1
MES T.O Abdulla Memorial college kunnukara
Add
category tblCategory

12
COLLEGE LIBRARY MANAGEMENT SYSTEM

Add
tblDep
departm
ent

Semester
Add
details tblSemester
Admin semester

Add
employ tblemp
ee

tblBookreg

View tblBookissue

tblFine

LEVEL 1
MES T.O Abdulla Memorial college kunnukara

Book
tblCategory
register
tblBookissue

13
COLLEGE LIBRARY MANAGEMENT SYSTEM

Member tblSemester
register
tblMember

tblMember

Book
tblBookreg
issue &
return tblBookissue
Employee register

tblDep

Book tblExampaper

reference
register tblNewspaper

tblMagazine

tblBookissue
Fine
register tblFine

Log
register tblLog

3.1 Introduction
System design provides understanding and procedural details necessary for
implementing the system recommended in the feasibility study. The term design
describes a final system. It refers to the technical specification is that will be
applied in implementing a candidate system. It also includes the construction of
program testing.

14
COLLEGE LIBRARY MANAGEMENT SYSTEM

Simplicity: The system should be able to provide a simple mechanism to access


and retrieve information.
Mobility: Information should be able to move from one physical location to
another without distracting system.
Minimality : The system should be simple as possible, placing a minimum of
requirements and transactions on its users.
Evolvability : The system should be able to take advantage of resolution of new
technologies.

3.2 Output Design


The project COLLEGE LIBRARY MANAGEMENT is developed using Microsoft
Visual Basic 6.0 with SQL ORACLE server as back end, and is portable on
Windows XP, Windows 7 or Windows 8. The platform is GUI based. The projects
main aim is to overcome the overhead inquired in the manual processing of
various data involved in college library. The manually processed data
information has lots of disadvantages mainly time consuming, error testing,
speed, storage of large data information in college library.
The first step is to determine how the output is to be produced and in what
format. Samples of the output and input are also presented.
Then the input data and master files have to design to meet the requirements of
the proposed output. The operational phase are handled though program
construction and testing. The goal of design process is to produce model as a
representation of the system which can be used later to build that system. The
user must give a valid input to get an accurate output. The outputs are the total
number of functions points, total effort required, total time required for
development and scheduling to develop the project.
The main outputs are:
Book issue:
This output is generated to the staff showing all book issue details.
Book return:
This T.O
MES output is generated
Abdulla Memorialto the staff
college showing all book return details including
kunnukara
fine if any.
The reports are generated for the view of the book issue and book return.
We cannot edit on the report that are generated. The reports are generated by
retrieving the details from the tables that are stored on the SQL. The reports are
generated only for the viewing purpose

15
COLLEGE LIBRARY MANAGEMENT SYSTEM

3.3 Input Design


Input design is a part of overall system design. The main objective during the
input design is as given below:
To produce the cost effect method of input
To achieve the highest possible level of accuracy
To ensure that the input is acceptable and understood by the user

Input design is the process of converting user oriented inputs to a computer


based format. The quality of system determines the quality of the system
outputs. All the data entry screens should be of interactive nature so that the
user can directly input data according to promoting messages. The input design
determines whether the user can interact directly with computer.
Interactive input screens ensure the reliability and accuracy of the system.
Input design is the link that ties the information system into the world of users.
It is the process of converting user oriented inputs to a computer based format.
Input data are collected and organized into a group of similar data. Data are
entered through the keyboard and also the user can use mouse for selecting
options. Errors entered by the user can be controlled by input design.
In Library Management System all the input data are validated in the
registration and if any data violates any condition will not be entered. For
example: the text box where the user needs to enter the phone number, only
numeric will be entered here. Characters won’t be entered.
Different forms are used in library management system for data screens in
ordered to input the data into the system. Screen formats have options like save,
update, delete, clear etc. With buttons, which is used for easy input and
retrieving information. The input forms in the project include:
Category registration
Department registration
Semester registration
MES T.O Abdulla Memorial college kunnukara
Book registration
Member registration
log registration
Reference details registration
Book issue

16
COLLEGE LIBRARY MANAGEMENT SYSTEM

Book return of staff and student and fine


Book searching and viewing

The input that are introduced to the project as like the student and staff
information, book details, book issue, book return etc. All these data are
introduced through the input design. The layout of the screen is designed and
documented with use of a display layout sheet or its equivalent. Many computer
systems have software packages that assist in the design and documentation
process.

3.4 Database Design


Table name : tblLogin
Purpose : To store the login details

Field name Data type Description


username varchar(50) To store the username
password varchar(50) To store the password
role varchar(50) To store the role of user
Table name : tblCategory
Purpose : To store the category details
Primary key : category_id

Field name Data type Description


category_id varchar(20) To store category id
category_name varchar(50) To store category name
status number(2) To store the status

Table name : tblDep


MES T.O Abdulla
Purpose Memorial
: To store college kunnukara
the department details
Primary key : dept_id

Field name Data type Description


dept_id varchar(20) To store department id
dept_name varchar(50) To store department name
status number(2) To store the status
Table name : tblSemester

17
COLLEGE LIBRARY MANAGEMENT SYSTEM

Purpose : To store the semester details


Primary key : sem_id

Field name Data type Descrption


sem_id varchar(20) To store sem_id
sem_name varchar(50) To store sem_name
status number(2) To store status
Table name : tblemp
Purpose : To store employee details
Primary key : emp_id

Field name Data type Description


emp_id varchar(20) To store emp_id
emp_name varchar(50) To store emp_name
phno number(20) To store phno
address varchar(50) To store address
email varchar(50) To store email
password varchar(10) To store password
status number(2) To store status

Table name : tblBookreg


Purpose : To store Book details
Primary key : book_no
Foreign key : category_id

Field name Data type Description


book_no varchar(20)
MES T.O Abdulla Memorial college kunnukara
To store book_no
title varchar(50) To store title
author varchar(50) To store author
p_name varchar(50) To store p_name
category_id varchar(20) To store category_id
price number(10) To store price
qty number(10) To store qty
b_date date To store b_date

18
COLLEGE LIBRARY MANAGEMENT SYSTEM

Table name : tblMember


Purpose : To store the member details
Primary key : card_id
Foreign key : sem_id

Field name Data type Description


card_id varchar(20) To store card_id
name varchar(50) To store name
gender varchar(10) To store gender
sem_id varchar(20) To store sem_id
phone number(10) To store phone
status number(2) To store status
Table name : tblExampaper
Purpose : To store the question paper details
Primary key : q_id
Foreign key : dept_id

Field name Data type Description


q_id varchar(10) To store q_id
dept_id varchar(20) To store dept_id
subject varchar(50) To store subject
year varchar(20) To store year
no_pages number(10) To store no_pages
Table name : tblNewspaper
Purpose : To store the newspaper details
Primary key: newspaper_id

Field name Data type Description


newspaper_id varchar(20)
MES T.O Abdulla Memorial college kunnukara
To store newspaper_id
language varchar(20) To store language
name varchar(50) To store name
no_pages number(10) To store no_pages
p_name varchar(20) To store p_name
status number(2) To store status
Table name : tblMagazine
Purpose : To store the magazine details
Primary key : magazine_id

19
COLLEGE LIBRARY MANAGEMENT SYSTEM

Field name Data type Description


magazine_id varchar(20) To store magazine_id
name varchar(50) To store name
p_name varchar(50) To store p_name
no_pages number(10) To store no_pages
status number(2) To store the status
Table name : tblBookissue
Purpose : To store the book issue and return details
Primary key : issue_id
Foreign key : card_id , book_no

Field name Data type Description


issue_id varchar(20) To store issue_id
card_id varchar(20) To store card_id
book_no varchar(20) To store book_no
iss_date date To store iss_date
due_date date To store due_date
return_date date To store return_date
usertype varchar(10) To store usertype
status varchar(10) To store status
Table name : tblLog
Purpose : To store the log register details
Primary key : log_id

Field name Data type Description


log_id varchar(20) To store log_id
MES T.O Abdulla Memorial college kunnukara
name varchar(20) To store name
article varchar(50) To store article
logdate date To store logdate
time1 varchar(20) To store time1
time2 varchar(20) To store time2
status number(2) To store status
Table name : tblFine
Purpose : To store the fine details
Primary key : fine_id
Foreign key : issue_id

20
COLLEGE LIBRARY MANAGEMENT SYSTEM

Field name Data type Description


fine_id varchar(20) To store fine_id
issue_id varchar(20) To store issue_id
return_date date To store return_date
no_days number(10) To store no_days
fine_amt number(10) To store fine_amt
3.5 Module Description
There are mainly two modules in this project:
Administrator Module
Employee Module

1. Administrator Module
This is the main module in the proposed system. The admin can register and
retrieve the details of any members in college, details of new books etc. And can
also update, create, delete the record of membership as per requirement
plans……….
There are five sub modules in the administrator module:
Category Register
Allow the administrator to register each category of books available in the library
like novel, study based, story etc.

Department Register
Allow
MES the
T.O administrator
Abdulla Memorialto college
registerkunnukara
each department in the college
 Semester Register
Here the admin should register each department and semester in the college.
Employee details
Allow the administrator to register new employee and update the member
records.
Employee details
Admin can view the details in book register, book issue and return, fine and
over due details of the late returns
2. Employee Module

21
COLLEGE LIBRARY MANAGEMENT SYSTEM

In this module employee can manage transactions of books and check the
availability and view the details of book……….

There are six sub module in the staff module:


Member details
Allow the administrator to register new member and update the member records.
Reference Details
Reference details of the library can also be registered by the admin. Reference
section also include 3 sub sections:

Question paper-Register the details of all question papers in each


branch.

Magazine-Enter the details all magazine published in each year.


Newspaper– Employee should register details of newspaper available in
the library

Book Issue and return
Here the staff will issue and return books to the member. Staff can also update
the issuing and returning details, search the issuing and returning details etc.


Book Registration
Here the staff can register new books to the library return. Staff can also update
MES T.O Abdulla Memorial college kunnukara
and view the details, remove the unwanted books, find the fine for late returns
etc.
Log Registration
Here the staff can issue the availability of each books in library and view the
details of each books too.
Fine
Staff can also find the fine for late returns by the students

22
COLLEGE LIBRARY MANAGEMENT SYSTEM

4.1 Process Description


Registration
MES T.O Abdulla Memorial college kunnukara
The details of various entities like student, staff, and books with the help of
corresponding forms and database tables are registered. The different categories
for the books, different branches and semester in college also registered in this
module. The reference section details such as newspaper, magazine etc…. are
also registered. A log register that contains the details of staff and students who
visited the library are also registered. This module is to add new details to the
table. Admin perform all these operations. The corresponding forms will contain
the option for adding, updating, searching and deleting each entity.
Book issue

23
COLLEGE LIBRARY MANAGEMENT SYSTEM

This module is mainly concerned with details of book issuing. In this module, we
can issue book to the various members with the help of library card provided to
them. A member can take maximum 3 books with their card. The card facility is
different for both staffs and students in college. It allows that a staff can take 5
books from library. The report of book issue can also be allowed here. The
reports are only for viewing purpose we can’t edit in to it. Thus by creating
reports we can view the book issuing details.
Book Return
It contain the details of book returns. Automatic fine calculation is performed
here for all the late returns. If the book is not returned within the specified date,
fine is calculated by taking the date difference. According to the no: of days that
the book can hold, the fine is calculated differently for both staffs and students.
In order to maintain the returning details a report is prepared, which contain the
whole details of book return.

4.2 Source Code


Login Form
Dim u As String
Private Sub cancel_Click()
Unload Me
End Sub
Private Sub Form_Load()
Connection
End Sub
Private Sub login_Click()
If Text1.Text
MES <> ""Memorial
T.O Abdulla And Text2.Text
college <> "" Then
kunnukara
If rs.State = 1 Then rs.Close
rs.Open "select count(*) from tblLogin where username='" & Text1.Text & "' and
password='" & Text2.Text & "'", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MDIForm1.Show
Unload Me
Else
If rs.State = 1 Then rs.Close
rs.Open "select * from tblemp where email='" & Text1.Text & "' and password='"
& Text2.Text & "'", con, adOpenDynamic, adLockOptimistic

24
COLLEGE LIBRARY MANAGEMENT SYSTEM

If rs.BOF = False Then


MDIForm1.Show
MDIForm1.addnew.Visible = False
MDIForm1.bookissue.Visible = True
MDIForm1.fine.Visible = True
Unload Me
End If
End If
Else
MsgBox "enter all"
End If
clear
End Sub
Sub clear()
Text1.Text = ""
Text2.Text = ""
End Sub
Category form
Dim i As String
Private Sub Add_Click()
If rs.State = 1 Then rs.Close
rs.Open "insert into tblCategory values(' " & ( id.Text ) & " ' , ' " & (cname.Text) &
"',1)"
MsgBox "inserted"
clear
MES
loadidT.O Abdulla Memorial college kunnukara
loaddata
End Sub
Sub clear()
id.Text = ""
cname.Text = ""
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close

25
COLLEGE LIBRARY MANAGEMENT SYSTEM

rs.Open "select count(*) from tblCategory", con, adOpenDynamic,


adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub

Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1500
.ColWidth(1) = 1500
End With

If rs.State = 1 Then rs.Close


rs.Open "select category_id,category_name from tblCategory where status=1",
con, adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
End Sub
Private Sub Command2_Click()
id.Text = ""
MES T.O Abdulla Memorial college kunnukara
cname.Text = ""
Add.Enabled = True
remove.Enabled = False
update.Enabled = False
loadid
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
26
COLLEGE LIBRARY MANAGEMENT SYSTEM

remove.Enabled = False
update.Enabled = False
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
cname = MSHFlexGrid1.TextMatrix(r, 1)
End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblCategory set status=0 where category_id ='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
remove.Enabled = False
update.Enabled = False
loaddata
clear
loadid
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
MES T.O Abdulla
rs.Open "select *Memorial college kunnukara
from tblCategory where category_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblCategory set category_name='" & (cname.Text) & "' where
category_id='" & (id.Text) & "'"
MsgBox "updated"
End If
loaddata
clear
loadid
27
COLLEGE LIBRARY MANAGEMENT SYSTEM

End Sub

Department form
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select count(*) from tblDep where dept_name='" & dname.Text & " ' ",
con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else
If rs.State = 1 Then rs.Close
rs.Open "insert into tblDep values('" & (id.Text) & "','" & (dname.Text) & "',1)",
con, adOpenDynamic, adLockOptimistic
MsgBox "inserted"
End If
End If
clear
loadid
loaddata
End Sub
Sub clear()
id.Text = ""
MES T.O Abdulla Memorial college kunnukara
dname.Text = ""
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
End Sub
Private Sub Command2_Click()
id.Text = ""
dname.Text = ""
Add.Enabled = True
update.Enabled = False
remove.Enabled = False

28
COLLEGE LIBRARY MANAGEMENT SYSTEM

loadid
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
remove.Enabled = False
update.Enabled = False
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblDep", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1000
.ColWidth(1) = 1500
End With
If rs.State = 1 Then rs.Close
MES T.O"select
rs.Open Abdulla Memorial collegefrom
dept_id,dept_name kunnukara
tblDep where status =1", con,
adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
dname = MSHFlexGrid1.TextMatrix(r, 1)
End Sub
29
COLLEGE LIBRARY MANAGEMENT SYSTEM

Private Sub remove_Click()


If rs.State = 1 Then rs.Close
rs.Open "update tblDep set status=0 where dept_id='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
loadid
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblDep where dept_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblDep set dept_name=' " & (dname.Text) & " ' where dept_id='"
& (id.Text) & "'"
MsgBox "updated"
End If
Add.Enabled
MES = True
T.O Abdulla Memorial college kunnukara
update.Enabled = False
remove.Enabled = False
loaddata
clear
loadid
End Sub

Employee form
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close

30
COLLEGE LIBRARY MANAGEMENT SYSTEM

rs.Open "select count(*) from tblemp where emp_name='" & empname.Text & " '
", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else
If rs.State = 1 Then rs.Close
rs.Open "insert into tblemp values('" & (id.Text) & "','" & (empname.Text) & "','" &
(phno.Text) & "','" & (addr.Text) & "','" & (mail.Text) & "','" & (pw.Text) & "',1)",
con, adOpenDynamic, adLockOptimistic
MsgBox "inserted"
End If
End If
clear
loadid
loaddata
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
End Sub
Private Sub Command2_Click()
id.Text = " "
empname.Text = " "
phno.Text
MES = " " Memorial college kunnukara
T.O Abdulla
addr.Text = " "
mail.Text = ""
pw.Text = " "
Add.Enabled = True
update.Enabled = True
remove.Enabled = True
End Sub
Private Sub empname_KeyPress(KeyAscii As Integer)
If KeyAscii = 32 Or KeyAscii = 46 Or KeyAscii = 8 Or KeyAscii = 127 Or (KeyAscii
> 64 And KeyAscii < 91) Or (KeyAscii > 96 And KeyAscii < 123) Then
Else
empname.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
31
COLLEGE LIBRARY MANAGEMENT SYSTEM

End If
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1000
.ColWidth(1) = 1500
.ColWidth(2) = 1500
.ColWidth(3) = 2000
.ColWidth(4) = 2000
.ColWidth(5) = 1500
End With
If rs.State = 1 Then rs.Close
rs.Open "select emp_id,emp_name,phno,address,email,password from tblemp
where status =1", con, adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Sub loadid()
MES T.O Abdulla
If rs.State Memorial
= 1 Then college kunnukara
rs.Close
rs.Open "select count(*)from tblemp", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Sub clear()
id.Text = " "
empname.Text = " "
phno.Text = " "
addr.Text = " "
mail.Text = ""
32
COLLEGE LIBRARY MANAGEMENT SYSTEM

pw.Text = " "


End Sub
Private Sub mail_LostFocus()
If mail.Text <> "" Then
If IsValidEmail(mail.Text) = False Then
MsgBox "Please enter a valid email id", vbOKOnly, "Info"
mail.Text = ""
End If
End If
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
If rs.State = 1 Then rs.Close
rs.Open "select * from tblemp where status=1 ", con, adOpenDynamic,
adLockOptimistic
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
empname = MSHFlexGrid1.TextMatrix(r, 1)
phno = MSHFlexGrid1.TextMatrix(r, 2)
MES T.O Abdulla Memorial college kunnukara
addr = MSHFlexGrid1.TextMatrix(r, 3)
mail = MSHFlexGrid1.TextMatrix(r, 4)
pw = MSHFlexGrid1.TextMatrix(r, 5)
End Sub
Private Sub phno_Change()
If Len(phno.Text) > 10 Then
MsgBox "enter a valid phone number"
phno.Text = ""
End If
End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblemp set status=0 where emp_id='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
33
COLLEGE LIBRARY MANAGEMENT SYSTEM

update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblemp where emp_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblemp set emp_name=' " & (empname.Text) & " ',phno='" &
(phno.Text) & "',address='" & (addr.Text) & "',password ='" & (pw.Text) &
"',email='" & mail & "' where emp_id='" & (id.Text) & "'"
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
MES T.O Abdulla Memorial college kunnukara
clear
End Sub

Semester form
Dim con As New ADODB.connection
Dim rs As New ADODB.Recordset
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select count(*) from tblSemester where sem_name='" & (sname.Text) & "
'", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else

34
COLLEGE LIBRARY MANAGEMENT SYSTEM

If rs.State = 1 Then rs.Close


rs.Open "insert into tblSemester values('" & (id.Text) & "','" & (sname.Text) &
"',1)", con, adOpenDynamic, adLockOptimistic
MsgBox "inserted"
End If
End If
clear
loadid
loaddata
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
End Sub
Private Sub Form_Load()
If rs.State = 1 Then rs.Closecon.ConnectionString =

"Provider=MSDAORA.1;Password=tiger;User ID=scott;Persist Security Info=True"


con.Open
loadid
MES T.O Abdulla Memorial college kunnukara
loaddata
remove.Enabled = False
update.Enabled = False
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 700
.ColWidth(1) = 1000
End With
If rs.State = 1 Then rs.Close
rs.Open "select sem_id,sem_name from tblSemester where status=1", con,
adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
35
COLLEGE LIBRARY MANAGEMENT SYSTEM

rs.Open "select count(*) from tblSemester", con, adOpenDynamic,


adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Sub clear()
id.Text = ""
sname = ""
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True

Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
sname = MSHFlexGrid1.TextMatrix(r, 1)
MES T.O Abdulla Memorial college kunnukara
End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblSemester set status=0 where sem_id='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblSemester where sem_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
36
COLLEGE LIBRARY MANAGEMENT SYSTEM

Else
If rs.State = 1 Then rs.Close
rs.Open "update tblSemester set sem_name=' " & (sname.Text) & " ' where
sem_id='" & (id.Text) & "'"
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
Book register form
Dim category As String
Private Sub Add_Click()
If no.Text <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select category_id from tblCategory where category_name='" &
Combo1.Text & "'", con, adOpenDynamic, adLockOptimistic
MES T.O Abdulla Memorial college kunnukara
cid = rs(0)
If rs.State = 1 Then rs.Close
rs.Open "insert into tblBookreg values('" & (no.Text) & "','" & (title.Text) & "', '" &
(author.Text) & "','" & (pname.Text) & "' ,'" & (cid) & "','" & (price.Text) & "','" &
(qty.Text) & "','" & Format(DTPicker1.Value, "dd-mmm-yy") & "',1)", con,
adOpenDynamic, adLockOptimistic
MsgBox "inserted"
End If
clear
loadid
loaddata
End Sub
Private Sub author_KeyPress(KeyAscii As Integer)
If KeyAscii = 32 Or KeyAscii = 46 Or KeyAscii = 8 Or KeyAscii = 127 Or (KeyAscii
> 64 And KeyAscii < 91) Or (KeyAscii > 96 And KeyAscii < 123) Then
Else

37
COLLEGE LIBRARY MANAGEMENT SYSTEM

author.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"


End If
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
End Sub
Private Sub Command2_Click()
no.Text = ""
title.Text = ""
author.Text = ""
pname.Text = ""
Combo1.Text = ""
price.Text = ""
qty.Text = ""
bdate.Text = ""
Add.Enabled = True
update.Enabled = False
remove.Enabled
MES T.O Abdulla=Memorial
False college kunnukara
loadid
End Sub
Private Sub DTPicker1_Change()
bdate.Text = DTPicker1.Value
End Sub
Private Sub Form_Load()
connection
loadid
loadcategory
loaddata
remove.Enabled = False
update.Enabled = False
End Sub
Sub loadcategory()
If rs.State = 1 Then rs.Close
rs.Open "select category_name from tblCategory", con, adOpenDynamic,
adLockOptimistic
38
COLLEGE LIBRARY MANAGEMENT SYSTEM

If rs.BOF = False Then


rs.MoveFirst
While Not rs.EOF
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End If
loaddata
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(4) = 1500
End With
If rs.State = 1 Then rs.Close
rs.Open "select
tblBookreg.book_no,tblBookreg.title,tblBookreg.author,tblBookreg.p_name,tblCa
tegory.category_name,tblBookreg.price,tblBookreg.qty,tblBookreg.b_date from
tblBookreg,tblCategory where tblBookreg.category_id=tblCategory.category_id
MES T.O Abdulla Memorial college kunnukara
and tblBookreg.status =1", con, adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblBookreg", con, adOpenDynamic,
adLockOptimistic
If rs(0) > 0 Then
no.Text = rs(0) + 1
Else
no.Text = 1
End If
End Sub
Sub clear()
no.Text = ""
title.Text = ""
author.Text = ""
pname.Text = ""
39
COLLEGE LIBRARY MANAGEMENT SYSTEM

Combo1.Text = ""
price.Text = ""
qty.Text = ""
bdate.Text = ""
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
no = MSHFlexGrid1.TextMatrix(r, 0)
title = MSHFlexGrid1.TextMatrix(r, 1)
author = MSHFlexGrid1.TextMatrix(r, 2)
pname = MSHFlexGrid1.TextMatrix(r, 3)
Combo1 = MSHFlexGrid1.TextMatrix(r, 4)
price = MSHFlexGrid1.TextMatrix(r, 5)
qty = MSHFlexGrid1.TextMatrix(r, 6)
MES T.O Abdulla Memorial college kunnukara
bdate = MSHFlexGrid1.TextMatrix(r, 7)
End Sub
Private Sub price_Change()
If Not IsNumeric(price.Text) Then
price.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
End Sub
Private Sub qty_Change()
If Not IsNumeric(qty.Text) Then
qty.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblBookreg set status=0 where book_no='" & (no.Text) & "'"
MsgBox "removed"
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
40
COLLEGE LIBRARY MANAGEMENT SYSTEM

loaddata
clear
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select category_id from tblCategory where category_name='" &
Combo1.Text & "'", con, adOpenDynamic, adLockOptimistic
category = rs(0)
If rs.State = 1 Then rs.Close
rs.Open "select * from tblBookreg where book_no='" & (no.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblBookreg set title='" & (title.Text) & "' ,author='" &
(author.Text) & "',p_name='" & (pname.Text) & "',category_id='" & (category) &
"',price='" & (price.Text) & "',qty='" & (qty.Text) & "',b_date='" &
Format(DTPicker1.Value, "dd-mmm-yy") & "' where book_no='" & (no.Text) & "'",
con, adOpenDynamic, adLockOptimistic
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
loadid
End Sub
Member form
Dim category As String
Dim n As String
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close

41
COLLEGE LIBRARY MANAGEMENT SYSTEM

rs.Open "select count(*) from tblMember where name='" & mname.Text & " ' ",
con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else
If rs.State = 1 Then rs.Close
rs.Open "select sem_id from tblSemester where sem_name='" & Combo1.Text &
"'", con, adOpenDynamic, adLockOptimistic
sem = rs(0)
If rs.State = 1 Then rs.Close
rs.Open "insert into tblMember values('" & (id.Text) & "','" & (mname.Text) & "', '"
& (n) & "','" & (sem) & "','" & (phno.Text) & "',1)", con, adOpenDynamic,
adLockOptimistic
MsgBox "inserted"
End If
End If
clear
MES T.O Abdulla Memorial college kunnukara
loadid
loaddata
End Sub
Sub clear()
id.Text = ""
mname.Text = ""
Option1.Value = False
Option2.Value = False
Combo1.Text = ""
phno.Text = ""
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
End Sub
Private Sub Command2_Click()
id.Text = ""
mname.Text = ""
Option1.Value = False
42
COLLEGE LIBRARY MANAGEMENT SYSTEM

Option2.Value = False
Combo1.Text = ""
phno.Text = ""
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loadid
End Sub
Private Sub mname_KeyPress(KeyAscii As Integer)
If KeyAscii = 32 Or KeyAscii = 46 Or KeyAscii = 8 Or KeyAscii = 127 Or (KeyAscii
> 64 And KeyAscii < 91) Or (KeyAscii > 96 And KeyAscii < 123) Then
Else
mname.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
End Sub
Private Sub Option1_Click()
nMES
= "f" T.O Abdulla Memorial college kunnukara
End Sub
Private Sub Option2_Click()
n = "m"
End Sub
Private Sub phno_Change()
If Len(phno.Text) > 10 Then
MsgBox "enter a valid phone number"
phno.Text = ""
End If
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblMember where card_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "select sem_id from tblSemester where sem_name='" & Combo1.Text &
"'", con, adOpenDynamic, adLockOptimistic
43
COLLEGE LIBRARY MANAGEMENT SYSTEM

If rs(0) > 0 Then sem = rs(0)


If rs.State = 1 Then rs.Close
rs.Open "update tblMember set name=' " & (mname.Text) & " ' ,gender='" & n &
"',sem_id='" & (sem) & "',phone='" & (phno.Text) & "' where card_id='" & (id.Text)
& "'"
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
loadsemester
remove.Enabled = False
update.Enabled = False
End Sub
Sub loadsemester()
If rs.State = 1 Then rs.Close
rs.Open "select sem_name from tblSemester", con, adOpenDynamic,
adLockOptimistic
If rs.BOF = False Then
rs.MoveFirst
While Not rs.EOF
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End If
loaddata
End Sub
Sub loaddata()
With MSHFlexGrid1
44
COLLEGE LIBRARY MANAGEMENT SYSTEM

.ColWidth(0) = 1000
.ColWidth(1) = 2000
.ColWidth(2) = 700
.ColWidth(3) = 1000
.ColWidth(4) = 2000
End With
If rs.State = 1 Then rs.Close
rs.Open "select
tblMember.card_id,tblMember.name,tblMember.gender,tblSemester.sem_name,t
blMember.phone from tblMember,tblSemester where
tblMember.sem_id=tblSemester.sem_id and tblMember.status =1 ", con,
adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
MES
End T.O Abdulla Memorial college kunnukara
Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblMember", con, adOpenDynamic,
adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
mname = MSHFlexGrid1.TextMatrix(r, 1)
gender = MSHFlexGrid1.TextMatrix(r, 2)
Combo1 = MSHFlexGrid1.TextMatrix(r, 3)
phno = MSHFlexGrid1.TextMatrix(r, 4)
End Sub
Private Sub remove_Click()
45
COLLEGE LIBRARY MANAGEMENT SYSTEM

If rs.State = 1 Then rs.Close


rs.Open "update tblMember set status=0 where card_id='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
Book issue and return from
Dim g As String
Private Sub Add_Click()
If rs.State = 1 Then rs.Close
rs.Open "insert into tblBookissue
(issue_id,card_id,book_no,iss_date,due_date,usertype,status) values('" & (id.Text)
& "','" & (cid.Text) & "','" & (no.Text) & "','" & Format(DTPicker1.Value, "dd-mmm-
yy") & "','" & Format(ddate, "dd-mmm-yy") & "','" & (g) & "','issued')", con,
adOpenDynamic, adLockOptimistic
MsgBox "inserted"
clear
loadid
loaddata
End Sub
Sub clear()
id.Text = ""
cid.Text = ""
no.Text = ""
idate.Text = ""
ddate.Text = ""
rdate.Text = ""
Option1.Value = False
Option2.Value = False
rdate.Enabled = False
DTPicker3.Enabled = False
cmdReturn.Enabled = False

46
COLLEGE LIBRARY MANAGEMENT SYSTEM

End Sub
Private Sub cid_LostFocus()
If cid <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblMember where card_id='" & (cid.Text) & "'", con,
adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
Else
MsgBox "card id does not exist"
End If
End If
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
End Sub
Private Sub cmdReturn_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblBookissue set return_date='" & Format(DTPicker1.Value, "dd-
mmm-yy") & "', status='returned' where issue_id='" & (id.Text) & "'", con,
adOpenDynamic, adLockOptimistic
MsgBox "updated"
Add.Enabled = True
update.Enabled = False
loaddata
clear
loadid
End Sub
Private Sub Command2_Click()
id.Text = ""
cid.Text = ""
no.Text = ""
idate.Text = ""
ddate.Text = ""
rdate.Text = ""
Option1.Value = False
47
COLLEGE LIBRARY MANAGEMENT SYSTEM

Option2.Value = False
rdate.Enabled = False
DTPicker3.Enabled = False
cmdReturn.Enabled = False
Add.Enabled = True
update.Enabled = False
loadid
End Sub
Private Sub DTPicker1_Change()
idate.Text = DTPicker1.Value
ddate.Text = DateAdd("d", 15, DTPicker1.Value)
End Sub
Private Sub DTPicker2_Change()
ddate.Text = DTPicker2.Value
End Sub
Private Sub DTPicker3_Change()
rdate.Text = DTPicker3.Value
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
cmdReturn.Enabled = False
update.Enabled = False
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblBookissue", con, adOpenDynamic,
adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Private Sub MSHFlexGrid1_Click()
48
COLLEGE LIBRARY MANAGEMENT SYSTEM

update.Enabled = True
Add.Enabled = False
rdate.Enabled = True
DTPicker3.Enabled = True
cmdReturn.Enabled = True
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
cid = MSHFlexGrid1.TextMatrix(r, 1)
no = MSHFlexGrid1.TextMatrix(r, 2)
idate
MES =T.O
MSHFlexGrid1.TextMatrix(r, 3)
Abdulla Memorial college kunnukara
ddate = MSHFlexGrid1.TextMatrix(r, 4)
rdate = MSHFlexGrid1.TextMatrix(r, 5)
g = MSHFlexGrid1.TextMatrix(r, 6)
If g = "Student" Then
Option1.Value = True
Else
Option2.Value = True
End If
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1000
.ColWidth(1) = 1000
.ColWidth(2) = 1000
.ColWidth(3) = 1000
.ColWidth(4) = 1000
.ColWidth(5) = 1000
.ColWidth(6) = 2000
End With
If rs.State = 1 Then rs.Close
rs.Open"select
tblBookissue.issue_id,tblMember.card_id,tblBookreg.book_no,tblBookissue.iss_d
ate,tblBookissue.due_date,tblBookissue.return_date,tblBookissue.usertype from
tblBookissue,tblMember,tblBookreg where
tblBookissue.card_id=tblMember.card_id and tblBookissue.book_no
=tblBookreg.book_no ", con, adOpenDynamic, adLockOptimistic
49
COLLEGE LIBRARY MANAGEMENT SYSTEM

Set MSHFlexGrid1.DataSource = rs
End Sub
Private Sub no_LostFocus()
If no <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblBookreg where book_no='" & (no.Text) & "'", con,
adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MES T.O
If rs.State = Abdulla Memorial college kunnukara
1 Then rs.Close
rs.Open "select status from tblBookissue where book_no='" & (no.Text) & "'", con,
adOpenDynamic, adLockOptimistic
If rs.BOF = False Then
If rs(0) = "issued" Then
MsgBox "Book is already issued"
no.Text = ""
End If
End If
Else
MsgBox "book number does not exist"
End If
End If
End Sub
Private Sub Option1_Click()
g = "Student"
End Sub
Private Sub Option2_Click()
g = "Staff"
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblBookissue where issue_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblBookissue set card_id='" & cid.Text & "',book_no='" &
50
COLLEGE LIBRARY MANAGEMENT SYSTEM

(no.Text) & "',iss_date='" & Format(DTPicker1.Value, "dd-mmm-yy") & "',due_date


='" & Format(DTPicker2.Value, "dd-mmm-yy") & "' where issue_id='" & (id.Text) &
"'", con, adOpenDynamic, adLockOptimistic
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
loaddata
clear
loadid
End Sub
Reference form
Private Sub Command1_Click()
Frmexampaper.Show
End Sub
Private Sub Command2_Click()
Frmnewspaper.Show
End Sub
Private Sub Command3_Click()
Frmmagazine.Show
End Sub
Private Sub Command4_Click()
Unload Me
MDIForm1.Show
End Sub
Question paper form
Dim dep As String
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select count(*) from tblExampaper where subject='" & subject.Text & " '
", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else

51
COLLEGE LIBRARY MANAGEMENT SYSTEM

If rs.State = 1 Then rs.Close


rs.Open "select dept_id from tblDep where dept_name='" & Combo1.Text & "'",
con, adOpenDynamic, adLockOptimistic
dep = rs(0)
If rs.State = 1 Then rs.Close
rs.Open "insert into tblExampaper values('" & (id.Text) & "','" & dep & "', '" &
(subject.Text) & "','" & (year.Text) & "','" & (nop.Text) & "')", con, adOpenDynamic,
adLockOptimistic
MsgBox "inserted"
End If
End If
clear
loadid
loaddata
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show
End Sub
Private Sub Command2_Click()
id.Text = ""
Combo1.Text = ""
subject.Text = ""
year.Text = ""
nop.Text = ""
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loadid
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
loaddep
remove.Enabled = False
52
COLLEGE LIBRARY MANAGEMENT SYSTEM

update.Enabled = False
End Sub
Sub clear()
id.Text = ""
Combo1.Text = ""
subject.Text = ""
year.Text = ""
nop.Text = ""
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1000
.ColWidth(1) = 1000
.ColWidth(2) = 2000
.ColWidth(3) = 1000
.ColWidth(4) = 1000
End With
If rs.State = 1 Then rs.Close
rs.Open "select
tblExampaper.q_id,tblDep.dept_name,tblExampaper.subject,tblExampaper.year,
tblExampaper.no_pages from tblExampaper,tblDep where
tblExampaper.dept_id=tblDep.dept_id ", con, adOpenDynamic,
adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Sub loaddep()
If rs.State = 1 Then rs.Close
rs.Open "select dept_name from tblDep", con, adOpenDynamic,
adLockOptimistic
If rs.BOF = False Then
rs.MoveFirst
While Not rs.EOF
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End If
53
COLLEGE LIBRARY MANAGEMENT SYSTEM

loaddata
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblExampaper", con, adOpenDynamic,
adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
Combo1 = MSHFlexGrid1.TextMatrix(r, 1)
subject = MSHFlexGrid1.TextMatrix(r, 2)
year = MSHFlexGrid1.TextMatrix(r, 3)
nop = MSHFlexGrid1.TextMatrix(r, 4)
End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "delete from tblExampaper where q_id='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblExampaper where q_id='" & (id.Text) & "'"
54
COLLEGE LIBRARY MANAGEMENT SYSTEM

If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "select dept_id from tblDep where dept_name='" & Combo1.Text & "'",
con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then dep = rs(0)
If rs.State = 1 Then rs.Close
rs.Open "update tblExampaper set dept_id='" & dep & "' ,subject='" &
(subject.Text) & "',year='" & (year.Text) & "',no_pages='" & (nop.Text) & "' where
q_id='" & (id.Text) & "'"
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
loadid
End Sub
Newspaper form
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close
rs.Open "select count(*) from tblNewspaper where name='" & (npname.Text) & "'
", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else
If rs.State = 1 Then rs.Close
rs.Open "insert into tblNewspaper values('" & id.Text & "','" & lan.Text & "','" &
npname.Text & "','" & no.Text & "','" & pname.Text & "',1)", con, adOpenDynamic,
adLockOptimistic
MsgBox "inserted"
End If

55
COLLEGE LIBRARY MANAGEMENT SYSTEM

End If
clear
loadid
loaddata
End Sub
Private Sub Command1_Click()
Unload Me
Frmreference.Show
End Sub
Private Sub Command2_Click()
id.Text = ""
lan.Text = ""
npname.Text = ""
no.Text = ""
pname = ""
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loadid
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
remove.Enabled = False
update.Enabled = False
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblNewspaper", con, adOpenDynamic,
adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
56
COLLEGE LIBRARY MANAGEMENT SYSTEM

End Sub
Sub clear()
id.Text = ""
lan.Text = ""
npname.Text = ""
no.Text = ""
pname = ""
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1000
.ColWidth(1) = 2000
.ColWidth(2) = 2000
.ColWidth(3) = 1000
.ColWidth(4) = 2000
End With
If rs.State = 1 Then rs.Close
rs.Open "select newspaper_id,language,name,no_pages,p_name from
tblNewspaper", con, adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.Recordset = rs
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
lan = MSHFlexGrid1.TextMatrix(r, 1)
npname = MSHFlexGrid1.TextMatrix(r, 2)
no = MSHFlexGrid1.TextMatrix(r, 3)
pname = MSHFlexGrid1.TextMatrix(r, 4)
End Sub
Private Sub no_Change()
If Not IsNumeric(no.Text) Then
no.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
57
COLLEGE LIBRARY MANAGEMENT SYSTEM

End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "delete from tblNewspaper where newspaper_id='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
loadid
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblNewspaper where newspaper_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblNewspaper set language='" & lan.Text & "',name=' " &
(npname.Text) & " ',no_pages='" & no.Text & "', p_name='" & (pname.Text) & "'
where newspaper_id='" & (id.Text) & "'", con, adOpenDynamic, adLockOptimistic
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
loadid
End Sub
Magazine form
Private Sub Add_Click()
If id.Text <> "" Then
If rs.State = 1 Then rs.Close

58
COLLEGE LIBRARY MANAGEMENT SYSTEM

rs.Open "select count(*) from tblMagazine where name='" & (mname.Text) & "' ",
con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
MsgBox "data already exist"
Else
If rs.State = 1 Then rs.Close
rs.Open "insert into tblMagazine values('" & id.Text & "','" & mname.Text & "','" &
pname.Text & "'," & Val(no.Text) & ",1)", con, adOpenDynamic, adLockOptimistic
MsgBox "inserted"
End If
End If
clear
loadid
loaddata
End Sub
Private Sub Command1_Click()
Unload Me
Frmreference.Show
End Sub
Private Sub Command2_Click()
id.Text = ""
mname.Text = ""
pname.Text = ""
no.Text = ""
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loadid
End Sub
Private Sub Form_Load()
connection
clear
loadid
loaddata
End Sub
Sub clear()
59
COLLEGE LIBRARY MANAGEMENT SYSTEM

id.Text = ""
mname.Text = ""
pname.Text = ""
no.Text = ""
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1500
.ColWidth(1) = 1500
.ColWidth(2) = 1500
.ColWidth(3) = 2000
End With
If rs.State = 1 Then rs.Close
rs.Open "select magazine_id ,name,p_name,no_pages from tblMagazine where
status=1", con, adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*) from tblMagazine", con, adOpenDynamic,
adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
mname = MSHFlexGrid1.TextMatrix(r, 1)
pname = MSHFlexGrid1.TextMatrix(r, 2)
no = MSHFlexGrid1.TextMatrix(r, 3)
60
COLLEGE LIBRARY MANAGEMENT SYSTEM

End Sub
Private Sub no_Change()
If Not IsNumeric(no.Text) Then
no.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
End Sub
Private Sub remove_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblMagazine set status=0 where magazine_id='" & (id.Text) & "'"
MsgBox "removed"
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblMagazine where magazine_id='" & (id.Text) & "'"
If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblMagazine set name=' " & (mname.Text) & " ', p_name='" &
(pname.Text) & "',no_pages=" & Val(no.Text) & " where magazine_id='" & (id.Text)
& "'"
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
loadid
End Sub

61
COLLEGE LIBRARY MANAGEMENT SYSTEM

Fine form
Private Sub Add_Click()
If rs.State = 1 Then rs.Close
rs.Open "insert into tblFine values('" & (id.Text) & "' , '" & (Combo1.Text) & "','" &
Format(DTPicker1.Value, "dd-mmm-yy") & "','" & (days.Text) & "','" & (amt.Text) &
"')", con, adOpenDynamic, adLockOptimistic
MsgBox "inserted"
If rs.State = 1 Then rs.Close
rs.Open "update tblBookissue set return_date='" & Format(DTPicker1.Value, "dd-
mmm-yy") & "', status='returned' where issue_id='" & (id.Text) & "'", con,
adOpenDynamic, adLockOptimistic
clear
loadid
loaddata
End Sub
Sub comboload()
If rs.State = 1 Then rs.Close
rs.Open "select issue_id from tblBookissue", con, adOpenDynamic,
adLockOptimistic
If rs.BOF = False Then
rs.MoveFirst
While Not rs.EOF
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End If
loaddata
End Sub
Private Sub amt_Change()
If Not IsNumeric(amt.Text) Then
amt.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
End Sub
Private Sub Command1_Click()
Unload Me

62
COLLEGE LIBRARY MANAGEMENT SYSTEM

MDIForm1.Show
End Sub
Private Sub Command2_Click()
id.Text = ""
Combo1.Text = ""
rdate.Text = ""
days.Text = ""
amt.Text = ""
End Sub
Private Sub days_Change()
If Not IsNumeric(days.Text) Then
days.SetFocus: SendKeys "{End}": SendKeys "{BACKSPACE}"
End If
End Sub
Private Sub DTPicker1_Change()
If Combo1.Text <> "" Then
rdate.Text = DTPicker1.Value
If rs.State = 1 Then rs.Close
rs.Open "select due_date from tblBookissue where issue_id='" & Combo1.Text &
"'", con, adOpenDynamic, adLockOptimistic
dd = CDate(rs(0))
days = Date - dd
amt = Val(days) * 5
Else
MsgBox "Please select issue id"
End If
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
loadBookissue
End Sub
Sub loadBookissue()
If rs.State = 1 Then rs.Close
Combo1.clear
63
COLLEGE LIBRARY MANAGEMENT SYSTEM

rs.Open "select issue_id from tblBookissue where issue_id in(select issue_id


from tblBookissue where status='issued' and due_date<'" & Format(Date, "dd-
mmm-yy") & "') and issue_id not in(select issue_id from tblFine)", con,
adOpenDynamic, adLockOptimistic
If rs.BOF = False Then
rs.MoveFirst
While Not rs.EOF
Combo1.AddItem rs(0)
rs.MoveNext
Wend
End If
loaddata
End Sub
Sub clear()
id.Text = ""
Combo1.Text = ""
rdate.Text = ""
days.Text = ""
amt.Text = ""
loadBookissue
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*)from tblFine", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
End If
End Sub
Sub loaddata()
With MSHFlexGrid1
.ColWidth(0) = 1000
.ColWidth(1) = 1000
.ColWidth(2) = 1500
.ColWidth(3) = 1500
64
COLLEGE LIBRARY MANAGEMENT SYSTEM

.ColWidth(4) = 1500
.ColWidth(5) = 1500
End With
If rs.State = 1 Then rs.Close
rs.Open "select
tblFine.fine_id,tblBookissue.issue_id,tblFine.return_date,tblFine.no_days,tblFine
.fine_amt from tblFine,tblBookissue where
tblFine.issue_id=tblBookissue.issue_id ", con, adOpenDynamic,
adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Private Sub MSHFlexGrid1_Click()
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
Combo1 = MSHFlexGrid1.TextMatrix(r, 1)
rdate = MSHFlexGrid1.TextMatrix(r, 2)
days = MSHFlexGrid1.TextMatrix(r, 3)
amt = MSHFlexGrid1.TextMatrix(r, 4)
End Sub
Log register form
Private Sub Add_Click()
If rs.State = 1 Then rs.Close
rs.Open "insert into tblLog (log_id,name,article,logdate,time1,status) values('" &
(id.Text) & "','" & (lname.Text) & "','" & (article.Text) & "','" &
Format(DTPicker1.Value, "dd-mmm-yy") & "','" & (t1.Text) & "','1')", con,
adOpenDynamic, adLockOptimistic
MsgBox "inserted"
clear
loadid
loaddata
End Sub
Private Sub Command1_Click()
Unload Me
MDIForm1.Show

65
COLLEGE LIBRARY MANAGEMENT SYSTEM

End Sub
Private Sub Command2_Click()
id.Text = ""
lname.Text = ""
article.Text = ""
ldate.Text = ""
t1.Text = ""
t2.Text = ""
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
End Sub
Private Sub DTPicker1_Change()
ldate.Text = DTPicker1.Value
End Sub
Private Sub Form_Load()
connection
loadid
loaddata
t1 = Time
t2 = Time
update.Enabled = False
End Sub
Sub loaddata()
If rs.State = 1 Then rs.Close
rs.Open "select log_id,name,article,logdate,time1,time2 from tblLog ", con,
adOpenDynamic, adLockOptimistic
Set MSHFlexGrid1.DataSource = rs
End Sub
Sub loadid()
If rs.State = 1 Then rs.Close
rs.Open "select count(*) from tblLog", con, adOpenDynamic, adLockOptimistic
If rs(0) > 0 Then
id.Text = rs(0) + 1
Else
id.Text = 1
66
COLLEGE LIBRARY MANAGEMENT SYSTEM

End If
End Sub
Sub clear()
id.Text = ""
lname.Text = ""
article.Text = ""
ldate.Text = ""
t1.Text = ""
t2.Text = ""
End Sub
Private Sub MSHFlexGrid1_Click()
update.Enabled = True
remove.Enabled = True
Add.Enabled = False
r = MSHFlexGrid1.Row
id = MSHFlexGrid1.TextMatrix(r, 0)
lname = MSHFlexGrid1.TextMatrix(r, 1)
article = MSHFlexGrid1.TextMatrix(r, 2)
ldate = MSHFlexGrid1.TextMatrix(r, 3)
t1 = MSHFlexGrid1.TextMatrix(r, 4)
t2 = Time
End Sub
Private Sub returned_Click()
If rs.State = 1 Then rs.Close
rs.Open "update tblLog set time2='" & t2.Text & "', status='returned' where
log_id='" & (id.Text) & "'", con, adOpenDynamic, adLockOptimistic
MsgBox "updated"
Add.Enabled = True
update.Enabled = False
loaddata
clear
loadid
End Sub
Private Sub update_Click()
If rs.State = 1 Then rs.Close
rs.Open "select * from tblLog where log_id='" & (id.Text) & "'"
67
COLLEGE LIBRARY MANAGEMENT SYSTEM

If rs.EOF Then
MsgBox "not found"
Else
If rs.State = 1 Then rs.Close
rs.Open "update tblLog set name='" & (lname.Text) & "' ,article='" & (article.Text)
& "',logdate='" & Format(DTPicker1.Value, "dd-mmm-yy") & "',time1='" & (t1.Text)
& "',time2='" & (t2.Text) & "' where log_id='" & (id.Text) & "'"
MsgBox "updated"
End If
Add.Enabled = True
update.Enabled = False
remove.Enabled = False
loaddata
clear
End Sub

5.1 System Testing


System testing is a vital to testing a system. System testing assumes that if all
parts of the system are correct the goal will be successfully achieved. The best
program is worthless it doesn’t need meet the user requirements. Even a small
error can cause too much larger problems the proper choice of the test data is
important as the test itself.

68
COLLEGE LIBRARY MANAGEMENT SYSTEM

In this project system testing are done through three different phases they are
Unit Testing, Validation Testing and Integration testing. Each testing will go
through the specified path and achieve target of producing a good software
product.
Unit Testing
Unit testing changes made in an existing system or a new program. As programs
are invariably related to each other and interact in a total system. So we had
done this project as single project as different modules. Since each project is
related as output of one module is the input to other module. So each portion is
tested against entire system is tested. During the testing the actual output is
compared with the expected output. In College Library Management each
modules are separately tested. That is each module had been separately
executed and checked for errors.
Integration Testing
Integration testing is the systematic technique for constructing the program
structure while at the same time conducting test to uncover errors associated
with the interface. All modules are combined in these testing steps. In the
integration testing step all the errors uncovered and corrected for the next
testing step. The entire program is tested as a whole. In this case all the modules
are combined together as a structure. The main problem arising in this step is
that the correction is found to be very difficult as isolation of causes complicated
by the vast expense of entire program.
Output Testing
Output testing includes producing the output that is generated by the system in
the required format; the format can be both in screen format and the printed
format. Producing the output in correct format is very necessary in the useful
implementation of the system.

System Testing
When a system is developed it is hoped that it performs properly. In practice
however some errors always occur. The main purpose of the testing an
information system is to find the errors and correct them. A successful test is
one which finds an error.
The main objectives of testing are:
To ensure during operation the system will perform as per specifications.

69
COLLEGE LIBRARY MANAGEMENT SYSTEM

To make sure that the system meets user’s requirements during operation.
To verify that the controls incorporated in the library management function
as intended.
To see that when correct inputs are entered to the library management then
outputs are correct.
To make sure that during the operation of incorrect input then the output
will be deleted.

The scope of the system test should include both manual operation and
computerized. Operation system testing is comprehensive evaluation of the
programs, manual procedures, computer operations and controls. System
testing is the process of checking if the developed system is working according to
the original objectives and requirements. All testing is to be conducted in
accordance to the test condition specified earlier.
Acceptance Testing
Acceptance testing is sometimes performed to realistic data of the client to
demonstrate that the software is working satisfactorily. Testing here focuses on
external behavior of the system the internal logic of the program is not
emphasized. Consequently most functional testing performed at these levels.

5.2 System Implementation


The implementation is the process of bringing a developed system into
operational use and turning it over to the user. Implementation activities extend
from planning through conversion from the old system to the new. At the
beginning of the development phase a preliminary implementation plan is
created to schedule and manage the many different activities that must be
integrated into the plan. The implementation plan is updated throughout the
development phase, culminating in a changeover plan for the operation phase.
The term implementation has different meaning, ranging from the conversion of
basic application to a replacement of a system. Implementation is used here to
mean the process of converting a new or revised system design to operational
one.
The implementation plan includes a description of all the activities that must
occur to implement the new system and to put into operation. It identifies the
personnel responsible for the activities and prepares a time chart for

70
COLLEGE LIBRARY MANAGEMENT SYSTEM

implementing the system. The implementation plan consists of the following


steps:
List all files required for implementation.
Identify all data required to build new files during the implementation.
List all new documents and procedures that go into the new system.

The implementation plan should anticipate possible programs and must


be able to deal with them. The usual problems may be missing documents,
mixed data formats between current files errors in data translation, missing data
etc.
The Implementation Plan
A common implementation management technique is to assign the responsibility
for each element of the implementation plan to a team. The head of each term is
selected from the organization best qualified to perform the specific
implementation task. The major elements of the implementation plan are test
plan, training plan, an equipment installation plan and a conversion plan.

5.3 Security
System testing was performed to verify that all system elements have been
properly integrated and perform allocated function. ‘Security testing’ was done to
check the security mechanisms built into the system, which will protect it from
improper penetration, performance testing was done to test the runtime
performance of the software.
The administrator has been a user name and password to have access to the
proposed system. Hence outside users cannot use the proposed system and
modify the contents of the database. The password given to the administrator
cannot be changed.

6. Future Scope Of The Project


In future we can improve the possibilities of COLLEGE LIBRARY MANAGEMENT
SYSTEM by taking all the possible feedbacks from the users. Actually
enhancement refers to the changes in the organizational priorities, requirements
or environment factors. We can add many more facilities or remove unwanted
existing process. It is easy and within the scope itself.
Drawbacks of existing project:

71
COLLEGE LIBRARY MANAGEMENT SYSTEM

Laborious.
Time consuming.
More space.
Loss and damage of data.
Difficult to search records.

In future,

We can add new features like college office management, canteen

management, department management, lab management etc.

It can be installed in other computers of other colleges.


It can be made as online, so that admin can access it from other location.

7. Conclusion
The project entitled “COLLEGE LIBRARY MANAGEMENT SYSTEM” is designed
to use in a college. The complexity for manually doing all the transactions and
other works in library can be highly reduced by implementing this software.
The project entitled “COLLEGE LIBRARY MANAGEMENT SYSTEM” was
successfully designed, developed and tested. The given objectives are met with
satisfaction. The project developed using VISUAL BASIC 6.0 as front end and

72
COLLEGE LIBRARY MANAGEMENT SYSTEM

Oracle SQL as back end is based on the requirement specification of the user
and the analysis system, with flexibility for future enhancement.
The software is less complicated and so it is easier for users to manage with
some initial training and basic knowledge of computer. The maintenance is less
and software is compactable. Since the system is more flexible than the existing
system that is manual, further refinements can be easily done if time and cost
schedule for it.
Actually enhancement refers to the changes in the organizational priorities,
requirements or environmental factors. If the departments wants to add any
more facility or remove existing process it is ease and within scope of itself.

8.1 Sample Input And Output Screens


Form

73
COLLEGE LIBRARY MANAGEMENT SYSTEM

Login form

74
COLLEGE LIBRARY MANAGEMENT SYSTEM

MDI form

Category form

75
COLLEGE LIBRARY MANAGEMENT SYSTEM

Department form

Semester form

76
COLLEGE LIBRARY MANAGEMENT SYSTEM

Employee form

Book register form

77
COLLEGE LIBRARY MANAGEMENT SYSTEM

Member form

Reference form

78
COLLEGE LIBRARY MANAGEMENT SYSTEM

Exam paper form

Newspaper form

79
COLLEGE LIBRARY MANAGEMENT SYSTEM

Magazine form

Log register form

80
COLLEGE LIBRARY MANAGEMENT SYSTEM

Book issue and return form

Fine form

81
COLLEGE LIBRARY MANAGEMENT SYSTEM

8.2 Report
Book register

Book issue and return

82
COLLEGE LIBRARY MANAGEMENT SYSTEM

Over due

Fine

83
COLLEGE LIBRARY MANAGEMENT SYSTEM

[1] “A guide to Visual Basic 6”, fifth Edition Peter Norton, Tec Media
Publications

84
COLLEGE LIBRARY MANAGEMENT SYSTEM

[2] “Fundamental of Database Systems”, Second Edition, R .Elmarsi and SB


Nava, Galgotia Publications
[3] “An Introduction to Database Systems”, Fourth Edition, Bipin Desai, Galgotia
Publications.

85

S-ar putea să vă placă și