Documente Academic
Documente Profesional
Documente Cultură
Developed by:
Ashish H. Singh
Vinod R. Pendu
1
LIBRARY MANAGEMENT SYSTEM
FOR
DR. BABASAHEB AMBEDKAR LIBRARY
Ashish H. Singh
Vinod R. Pendu
2
DECLARATION
We hereby declare that the project entitled “Library Management System”,
submitted to the Mumbai University, Mumbai, in partial fulfillments of the
requirements of the award of the degree B.Sc.I.T. is a record of work done by the
team, under the guidance of Prof. Mrs. Kiran Gurbani, Department of
Information Technology, Saket College, Kalyan – 421306. The project has not
formed the base for the award of any Degree/Diploma/Association/Fellowship or
similar title to any University.
Team Members:
Ashish H. Singh
Vinod R. Pendu
3
CERTIFICATE
This is to certify that the project entitled “Library Management System”, submitted to the
Mumbai University, Mumbai, in partial fulfillments of the requirements of the award of the
degree B.Sc.IT is a record of original work done by the Ashish Singh & Vinod Pendu during
the period of their study in the Department of Information Technology, Saket College,
Kalyan-421306 under my supervision and guidance.The project has not formed the base for
the award of any Degree/Diploma/Association/Fellowship or similar title to any University.
Internal Guide
Co-ordinator
Department of B.Sc.IT
Saket College
Kalyan-421306
4
ACKNOWLEDGEMENT
One of the great pleasures of writing this project book is acknowledging the efforts of
many people whose names may not appear on the cover but whose hard work, cooperation,
friendship and understanding were crucial to the preparation of this report on “Library
Management System”
We are very much thankful to Incharge of Dr. Babasaheb Ambedkar Library BNCMC,
who was kid enough to give us an opportunity to do this project work. Being our external
guide he imparted us immense administration, knowledge and provided us a clear back
ground about the problem scenario which helped us in laying a strong foundation to our
project.
It gives us pleasure in presenting this project book whose justification will never
sound good if we do not express our vote of thanks to all staff members of IT department of
our college for allowing us to work in the lab, without whose help our project and its thesis
would have neither begun nicely nor would have had reached the best ending.
We are much thankful to our project guide Mrs. Kiran Gurbani and all other teaching
and non teaching staff for their suggestion, reviews, encouraging, criticism and time to time
help & support which led us to achieve our goals and overcome the difficulties.
Last but not the least, we are thankful to our parents & friends who gave us the much
needed moral support and encouragement which made developing this project a work of
sheer joy and satisfaction. Thank you all once again.
5
PREFACE
This project has been accomplished through the help of advanced programming language.
The project will allow the users to keep record of members,book details and book
transactions etc. The aim of our project is to computerize almost all transactions of the
library. It has a colorful interface to keep it different from standard looking packages. The
report we are presenting is for the users who want to know about the function of the project
and how to operate the packet. It has combined the power of VB 6.0 with Microsoft Access
2003 to give the best desired results. We have strived to make this project as error free as
possible.
ASHISH SINGH
VINOD PENDU
6
CONTENTS
1. Introduction
Objective and Scope of Project
2. System Analysis
Gnatt Chart
Existing System
Requirement Analysis
Proposed System
Process Modeling
Data Modeling Analysis (ER Diagram)
System Concept for Process Modeling
Context Diagram
Data Flow Diagram
Structured chart
System Flowchart
Event Table
Decision Tree
3. System Design
System Design Approach
Data Base Design
Normalization
Table Structure
Menu Tree Diagram
Program List
Input Screen
Output Screen and Reports
4. System Implementation
System Testing
Change Over
Education and Training
How to operate our Project
Backup & Recovery
5. Conclusion
6. Future Enhancement
7
7. Bibliography
8. Source Code
SYNOPSIS
The aim of this project is to provide a software for “DR. BABASAHEB AMBEDKAR
LIBRARY” which provides the company a procedural approach for storing all his data
and records into a single data base. All the members details and books details are stored
and can be modified easily and very efficiently. The transactions done by the library are
also kept into the table and can be used whenever they need.
Various reports can be generated by using this software that can be used for further
transactions.
8
MINIMUM HARDWARE / SOFTWARE REQUIREMENT FOR OUR PROJECT
OTHERS : Printer
9
10
Objective of Project
In this project all records are maintained in the form of table inside the database.
Calculations are done by the system . The system is user friendly i.e. no special knowledge is
required to handle this package. It is more reliable and one time investment which is very
profitable in the long run.
It will also provide updating facility. Such as add, remove or modify the records.
Each master table includes the facility for the record search.
Scope of Project
The proposed system is computerized and all records are maintained in a database.
Book Details, Member Details, All Details can be checked whenever needed.
There is no need of special skills required to handle the package.
11
12
GNATT CHART
13
EXISTING SYSTEM
The current system is manually operated. All records are maintained in the register.
Every time an order is made it is entered into a register. The register can be checked for book
transaction. Thus numbers of registers are maintained. At the end of the day the manager
checks the daily report. All the reports and transaction collection are also stored in the
register.
1) All the transaction details are stored in register so we have to maintain number of
files, which is a big stuff.
2) All the records are entered by a manager so there is a chance of misentering of data.
3) Reports are generated by the manager and it is handwritten one.
4) As this is a manual system anyone can do anything so there is a chance of misusing
the data.
5) No security, anybody can access the details of member.
14
REQUIREMENT ANALYSIS
Definition:
Requirement analysis is the process of gathering and analysis user requirement. It is done
prior to starting the actual project development. it may be also be defined as a condition of
capabilities needed by the users to solve the problem or achieve an objective and also a
condition or capability that must be met or proposed by a system to satisfy a contract,
standard, specifications or other formal imposed documents.
It is very important for the analyst to know the existing system and understand the
various needs of the end users , this is very important as to get the information regarding the
organization for which the project is to be made prior starting the project. The problems may
occur if there is a communication gap between the end user and the system analyst, that the
requirements are not properly conveyed.
The requirement analysis can be done by the system analyst by using various
techniques. The system analyst must be a skilled person; he should have good
communication capabilities. The project mainly depends on the requirement analysis which
is done by the system analyst.
15
PRECAUTION
These documents are studied for understanding the current methods of data
recording. This informs us about the actual data recorded.
16
VISUAL BASIC 6.0 AND MICROSOFT ACCESS
Visual basic 6.0 is selected because it is one of the leading rapid application development
tools available in the market for developing applications in the client/server environment.
VB 6.0 is more flexible, user friendly and easy to learn than its rivals like power builders,
Delphi, oracle, developer 2000 etc.
The VB data manager allows VB users to create new database and examine or map the
structure of existing external database in variety of formats. Formats that you can either
create with Microsoft Access, so database create with VB or the data manager can be
manipulated using VB and Data manager.
17
PROPOSED SYSTEM
There is no need of maintaining the various files all the data are going to be stored at
one place and can be accessed easily.
All the reports are generated by the computer so there is no chance of any kind of
missing or incomplete data
18
SYSTEM CONCEPT FOR DATA MODELLING
It represents Entity
19
System Concept for a Data Modeling:
There are several notations for data modeling. The actual model is frequently called Entity
Relationship Diagram (ERD) because it depicts data in terms of the entities and
relationships described by the data. There are several notations for ERD’s. Most are named
after the inventor (e.g. IDEFIX.). These data modeling “languages” generally support the
same fundamental concepts and constructs. We have adopted the Martin (Information
Engineering) notation because of its widespread use and CASE tool support.
The Entity Relationship Diagram (Model) is based on perception of a real world that consists
of a collection of basic objects called as Entities and relationships among these objects.
Entities in database are described as set of attributes.
The set of Entities of the same type are called as Entity Set.
20
Notations used in E-R diagram
It represents attributes.
21
ER- DIAGRAM:
22
CONTEXT LEVEL DIAGRAM
23
DFD
Data Flow Diagram
Member Member master
1.0
Staff
Masters Book Master
Book
Employee master
Magzine
Purchase
2.0 of Book Master
Publisher
books
Purchase of
books Purchase transaction
Management
Employee Purchase
3.0 of Book Master
books
Member Transaction
Book Transaction
Book
Member
Member Master
Employee 4.0
Reports Book Transaction
Book
Management
24
Book Master
Member
Member Master
Employee 4.1
Daily Reports Book Transaction
Book
Management
Magzine
25
STRUCTURE CHART:
Library System
Issue/Re Return
serve Book
Maintain Book
Book Maintain
Information Display Book Member
Details Information
Validate Update
Book/Borr Member
ower ID Details
Update Update Get
Get Book Book Detail Book Member Validate
Detail Record Details Member
Details
Validate Update
Validate Book/Borro Book
Book wer ID Record
Details
26
SYSTEM FLOWCHART
27
Event Table
Librarian wants Book details Librarian Produce Book Book details Librarian
to view book request details
details
Librarian wants Request for Generate Display Librarian
to view borrower Librarian borrower borrower
28
member report report report
information
reports
Librarian wants Request for Generate Display book Librarian
to view books book report Librarian Book Report report
information
report Name
wise /accession
number
29
DECISION TREE:
Process 1
Process 2
Process 3
No
30
Process 4
Process 5
Yes
Check if the book for
Specified member
No
31
Process 6
Update status/return
Details of book
Check if Yes
Book
Is returned
On time
Update status /
No Return details
Yes Of book
Process 7
Process 8
32
Process 9
Process 10
Process 11
Process 12
Display Help
Yes
Check if help
Available on
Desired topic No
33
34
SYSTEM DESIGN
DESIGN METHODOLOGY
Structured design is the process of planning how the system will be built, i.e.,
determining the procedures and data components needed and how these components
will be assembled to arrive at the solution. The system specifications, the problem
requirements and constraints defined in the analysis phase are used as input for the
design phase. The Warnier_orr, Jackson’s data and Martines information engineering
methodologies are for data oriented systems. In the data oriented approach, the data
structures are defined and the procedural components are derived from data structures.
35
DATABASE DESIGN
A database is a collection of files that work together to form a complete data management
system, we can even say a database is an organized collection of data. It can be looked upon
as files that contain tables, indexes and queries, a table is one data files, and the database is
the collection of those tables.
Primary Key :
A primary key is one that uniquely identifies each record in a table such
as book_id in case of book records. A primary key is advisable in tables,
because it speeds up operations like searching, sorting and filtering.
Furthermore if you want to relate two tables together you must have a
primary key in one of the tables.
Foreign Key :
A foreign key is one that helps to join two tables or link two tables. When
you define a column foreign key then you have to give the name of the
reference column of other tables you have to link this table to. With
foreign key whatever changes are made in the reference column are made
in the foreign column. Hence two tables are linked together using the
concept of primary key and foreign key. With foreign key, you can speed
up the operations like searching, sorting and filtering.
36
NORMALIZATION
Putting data into first normal form is done by moving data into separate tables where
the data in each table is of the similar type, and giving each table a primary key a unique
label or identifier. This eliminates each group of data.
It entails taking out data that only independent on the part of the key.
It means getting rid of anything in the tables that does not depend solely on a primary
key. Anytime the data is on the third normal form, it is already in Second and First Normal
Forms.
Microsoft Access Language is used for accessing relational database. With Microsoft
Access, we can Select, Insert, Update or Delete the records.
37
TABLE STRUCTURE
This table stores basic information about Members; information stored in this table is
filled at the time of new member entry, data stored in this table are changed only when the
table is edited. Member ID. is a field which is defined as primary key and it stores the
number by which member is uniquely identified.
This table stores basic information about Employee; information stored in this table is
filled at the time of new employee entry, data stored in this table are changed only when the
table is edited. Employee_id is a field which is defined as primary key and it stores the
number by which employee is uniquely identified.
39
Date Date/time It shows the date of entry
Pages number It shows the no of pages
Editor text It shows the editor of magzine
Prize Number It shows the prize of one magzine
TotalPrize number It shows the total prize of magzine
Newspaper table
This table stores basic information about newspaper; information stored in this table is
filled at the time of new newspaper entry, data stored in this table are changed only when the
table is edited. NewspaperID is a field which is defined as primary key and it stores the
number by which newspaper is uniquely identified.
Book Issue
This table stores the information about all the transaction performed. If book is issued
or returned to or from member then according changes are made to the table. Accession No.
is defined as a primary key, other information is stored about the employee or member by
which any employee can be uniquely identified. Issue Date and Return Date of the book is
stored for later library use. Also member no. of member is stored in the table.
This table stores the password for administrator login and member login. It has two columns;
‘username’ and ‘password‘. The main thing to be noted is user name and password is
encrypted and encryption is performed at the front-end level.
41
MENU TREE DIAGRAM:
42
PROGRAM LIST
43
SCREEN LAYOUT FOR EACH DATA ENTRY
SPLASH SCREEN:
44
CODE:
PBar.Value = PBar.Value + 2
lbl1.Caption = PBar.Value & " % "
If PBar.Value = 100 Then
Timer1.Interval = 0
frmSplash.Hide
frmLogin.Show
End If
End Sub
45
LOGIN FORM:
46
CODE:
End Sub
47
MDI FORM
48
CODE:
52
BOOK MASTER
53
CODE:
rsbook.MoveLast
a = rsbook.Fields("accessionno").Value
a=a+1
cboaccessionno.Text = a
cmdadd.Enabled = False
cmdsave.Enabled = True
Call navdisable(Me)
54
cmdmodify.Enabled = False
cbolanguage.Enabled = True
cmdupdate.Enabled = False
cmddelete.Enabled = False
cmdcancel.Enabled = True
cboaccessionno.Locked = True
txtbookname.SetFocus
End Sub
End Sub
56
Private Sub cmdnext_Click()
rsbook.MoveNext
If rsbook.EOF = True Then
rsbook.MoveLast
MsgBox "U R at the last record"
cmdnext.Enabled = False
cmdlast.Enabled = False
End If
showdata
cmdprevious.Enabled = True
cmdfirst.Enabled = True
End Sub
cmdupdate.Enabled = False
rsbook.MoveFirst
Call showdata
End Sub
60
Private Sub txtprice_KeyPress(KeyAscii As Integer)
If Not Chr(KeyAscii) Like "[0-9]" And Not KeyAscii Like 8 Then
KeyAscii = 0
MsgBox "Enter numbers only!", vbOKOnly
End If
End Sub
Private Sub txtpublication_KeyPress(KeyAscii As Integer)
If Not Chr(KeyAscii) Like "[A-Z]" And Not Chr(KeyAscii) Like "[a-z]" And Not KeyAscii
Like 32 And Not KeyAscii Like 8 Then
KeyAscii = 0
MsgBox "Enter characters only!", vbOKOnly
End If
End Sub
61
MEMBER MASTER
62
CODE:
End Sub
End Sub
End Sub
rsmember.MoveLast
a = rsmember.Fields("Memberid").Value
a=a+1
cbomemberid.Text = a
cmdadd.Enabled = False
cmdsave.Enabled = True
Call navdisable(Me)
frmgender.Enabled = True
txtdob.Enabled = True
cbostatus.Enabled = True
cmdmodify.Enabled = False
cmdupdate.Enabled = False
cmddelete.Enabled = False
cmdcancel.Enabled = True
cmdsearch.Enabled = False
cbomemberid.Locked = True
optmale.Enabled = True
optfemale.Enabled = True
txtName.SetFocus
txtfee.Text = 105
txtfee.Locked = True
66
End Sub
End Sub
70
EMPLOYEE MASTER
71
CODE:
rsemployee.MoveLast
72
a = rsemployee.Fields("Emp_id").Value
a=a+1
cboempid.Text = a
cmdadd.Enabled = False
cmdsave.Enabled = True
Call navdisable(Me)
cmdmodify.Enabled = False
cmdupdate.Enabled = False
cmddelete.Enabled = False
cmdcancel.Enabled = True
cboempid.Locked = True
frmgender.Enabled = True
txtdob.Enabled = True
txtname.SetFocus
End Sub
rsemployee.Update
MsgBox "Records saved"
rsemployee.MoveNext
End If
Call navenable(Me)
Call txtlock(Me)
cmddelete.Enabled = True
cmdsave.Enabled = False
cmdmodify.Enabled = True
End Sub
cmdnext.Enabled = False
cmdprevious.Enabled = False
cmdsave.Enabled = False
cmdcancel.Enabled = False
cmdupdate.Enabled = False
77
txtsearch.Locked = False
frmgender.Enabled = False
txtdob.Enabled = False
rsemployee.MoveFirst
Call showdata
End Sub
Public Sub showdata()
cboempid.Text = rsemployee.Fields("Emp_id").Value
txtname.Text = rsemployee.Fields("Name").Value
txtaddress.Text = rsemployee.Fields("Address").Value
If rsemployee.Fields("Gender").Value = "Female" Then
optfemale.Value = True
Else
optmale.Value = True
End If
txtdate.Value = rsemployee.Fields("Dateofjoining").Value
txtdesignation.Text = rsemployee.Fields("Designation").Value
txtdob.Value = rsemployee.Fields("Dob").Value
txtquali.Text = rsemployee.Fields("Qualification").Value
txtmobno.Text = rsemployee.Fields("Mobileno").Value
txtsalary.Text = rsemployee.Fields("Salary").Value
End Sub
79
MAGZINE MASTER
80
CODE:
rsmagzine.MoveLast
a = rsmagzine.Fields("Magzine_id").Value
a=a+1
cbomagid.Text = a
cmdadd.Enabled = False
cmdsave.Enabled = True
Call navdisable(Me)
txttotalprize.Locked = True
cbotype.Enabled = True
cbolanguage.Enabled = True
cmdmodi.Enabled = False
cmdupdate.Enabled = False
cmddelete.Enabled = False
cmdcancel.Enabled = True
cbomagid.Locked = True
cmdsearch.Enabled = False
81
txtname.SetFocus
End Sub
82
Private Sub cmdlast_Click()
rsmagzine.MoveLast
Call showdata
cmdlast.Enabled = True
cmdfirst.Enabled = True
cmdnext.Enabled = False
cmdprevious.Enabled = True
cmdlast.Enabled = False
End Sub
End Sub
rsmagzine.MoveFirst
Do While Not rsmagzine.EOF() = True
cbomagid.AddItem rsmagzine.Fields("Magzine_id").Value
rsmagzine.MoveNext
Loop
txttotalprize.Locked = True
cbotype.Enabled = False
cbolanguage.Enabled = False
cbomagid.Enabled = True
cmdnext.Enabled = False
cmdprevious.Enabled = False
cmdsave.Enabled = False
cmdupdate.Enabled = False
cmdcancel.Enabled = False
txtsearch.Locked = False
rsmagzine.MoveFirst
Call showdata
End Sub
86
Public Sub showdata()
cbomagid.Text = rsmagzine.Fields("Magzine_id").Value
txtname.Text = rsmagzine.Fields("Name").Value
cbolanguage.Text = rsmagzine.Fields("Language").Value
cbotype.Text = rsmagzine.Fields("Type").Value
txtdate.Value = rsmagzine.Fields("Date").Value
txtpages.Text = rsmagzine.Fields("Pages").Value
txtcopies.Text = rsmagzine.Fields("Noofcopies").Value
txteditor.Text = rsmagzine.Fields("Editor").Value
txtprize.Text = rsmagzine.Fields("Prize").Value
txttotalprize.Text = rsmagzine.Fields("Totalprize").Value
End Sub
88
NEWSPAPER MASTER
89
CODE:
Private rsnewspaper As New ADODB.Recordset
Private Sub cbonewsid_Click()
rsnewspaper.MoveFirst
Do While Not rsnewspaper.EOF() = True
If Val(cbonewsid.Text) = rsnewspaper.Fields("Newspaper_id").Value Then
Call showdata
Exit Sub
End If
rsnewspaper.MoveNext
Loop
End Sub
rsnewspaper.MoveLast
a = rsnewspaper.Fields("Newspaper_id").Value
a=a+1
cbonewsid.Text = a
cmdadd.Enabled = False
cmdsave.Enabled = True
Call navdisable(Me)
cbolanguage.Enabled = True
cmdmodi.Enabled = False
cmdupdate.Enabled = False
cmddelete.Enabled = False
cmdcancel.Enabled = True
cbonewsid.Locked = True
txtname.SetFocus
End Sub
rsnewspaper.Fields("Totalprize").Value = Val(txttotalprize.Text)
rsnewspaper.Update
MsgBox "Records updated"
cmdadd.Enabled = True
cmdmodi.Enabled = True
cmddelete.Enabled = True
cmdupdate.Enabled = False
94
cmdcancel.Enabled = False
Call navenable(Me)
Call txtlock(Me)
End Sub
96
ISSUE TRANSACTION
97
CODE:
End If
rsmember.MoveNext
Loop
End If
Exit Sub
End Sub
98
Private Sub cmdexit_Click()
Unload Me
End Sub
Private Sub cmdissue_Click()
If txtaccessionno.Text = " " Then
MsgBox "Please select the book for issue.", vbInformation + vbOKOnly, "Select Book"
Else
If cbomemberid.Text = " " Then
MsgBox "Please select the Student.", vbInformation + vbOKOnly, "Select Book"
Else
Set bkissue = New ADODB.Recordset
bkissue.Open "issue_for_home", cn, adOpenDynamic, adLockOptimistic
bkissue.AddNew
rsbkissue.Fields("Member_ID").Value = Val(txtmemberid.Text)
rsbkissue.Fields("BookNo").Value = Val(txtaccessionno.Text)
rsbkissue.Fields("Membername").Value = Trim(txtmembername.Text)
rsbkissue.Fields("BookName").Value = Trim(cbobookname.Text)
rsbkissue.Fields("Issuedate").Value = Trim(txtissuedate.Text)
rsbkissue.Fields("Duedate").Value = Trim(txtduedate.Text)
rsbkissue.Close
MsgBox ("Issued Book ")
If s = vbYes Then
If lblmembername.Caption = "" Then
MsgBox "NEEEE"
Exit Sub
If txtmembername.Text = " " Then
MsgBox "Member Not Found..!", vbExclamation + vbOKOnly, Caption
99
txtmemberid.SetFocus
Exit Sub
End If
If Trim(txtmemberid) = " " Or _
Trim(cboaccessionno) = " " Then
counte = 0
rsbkissue.MoveFirst
Do While Not rsbkissue.EOF = True
If Val(cbomemberid.Text) = rsbkissue.Fields("Memberid").Value Then
counte = counte + 1
End If
rsbkissue.MoveNext
Loop
If s = vbYes Then
GoTo continue
Else
cbomemberid.SetFocus
End If
Exit Sub
continue:
If lblisin.Caption = False Then
MsgBox "Book is not present in Library", vbOKOnly + vbInformation
Exit Sub
End If
If Val(txtbookname.Text) >= M.maxbooks Then
MsgBox " Memeber already has the books"
cbomemberid.SetFocus
Exit Sub
End If
a:
Dim counter As Integer
counter = 1
With rsbkissue
100
.AddNew
.Fields("Memberid").Value = Val(txtmemberid.Text)
.Fields("Accessionno").Value = Val(txtbookaccessionno.Text)
.Fields("MemberName").Value = Format(dtissue.Value, "mm,dd,yyyy")
.Fields("BookName").Value = Format(rtn.Value, "mm,dd,yyyy")
.Fields("Issuedate").Value = Val(cmbdays.Text)
counte = counte + 1
.Fields("BOOKS_IN_HANDS").Value = counte
End With
s = MsgBox("Issue Book " & lblbooktitle.Caption & " To " & lblmembername.Caption,
vbYesNo + vbQuestion, "Issue Book")
If s = vbYes Then
If lblmembername.Caption = "" Then
MsgBox "NEEEE"
Exit Sub
End If
rsbkissue.Update
lblisin.Caption = False
rsbook.MoveFirst
While rsbook.EOF = False
If rsbook.Fields("Accessionno").Value = Val(cboaccessionno.Text) Then
rsbook.Fields("IS_IN").Value = lblisin.Caption
rsbook.Update
End If
rsbook.MoveNext
Wend
rsbkissue.MoveFirst
Do While Not rsbkissue.EOF = True
If rsbkissue.Fields("Memberid").Value = Val(cbomemberid.Text) Then
rsbkissue.Fields("BOOKS_IN_HANDS").Value = counte
End If
rsbkissue.MoveNext
Loop
Else
rsbkissue.CancelUpdate
Exit Sub
End If
End Sub
101
Private Sub Command1_Click()
Call txtblank(Me)
End Sub
txtissuedate.Text = Now
txtduedate.Text = Now + 7
RETURN TRANSACTION
103
CODE:
Exit Sub
End If
rsbkissue.MoveNext
Wend
End If
105
End Sub
Me.WindowState = vbMaximized
106
GLOBAL INFORMATION:
107
CODE:
Dim c As Integer
Dim counter As Integer
counter = 0
If rsbook.EOF And rsbook.BOF Then
counter = 0
Else
108
rsbook.MoveFirst
While rsbook.EOF <> True
counter = counter + 1
rsbook.MoveNext
Wend
End If
txttotalbooks.Text = counter
counter = 0
If rsmember.EOF And rsmember.BOF Then
counter = 0
Else
rsmember.MoveFirst
While rsmember.EOF <> True
counter = counter + 1
rsmember.MoveNext
Wend
End If
txtmember.Text = counter
counter = 0
If rsemployee.EOF And rsemployee.BOF Then
counter = 0
Else
rsemployee.MoveFirst
While rsemployee.EOF <> True
counter = counter + 1
rsemployee.MoveNext
Wend
End If
txtstaff.Text = counter
counter = 0
If rsbkissue.EOF And rsbkissue.BOF Then
counter = 0
Else
rsbkissue.MoveFirst
While rsbkissue.EOF <> True
counter = counter + 1
rsbkissue.MoveNext
Wend
End If
txtbooksissued.Text = counter
counter = 0
If rsmagzine.EOF And rsmagzine.BOF Then
109
counter = 0
Else
rsmagzine.MoveFirst
While rsmagzine.EOF <> True
counter = counter + 1
rsmagzine.MoveNext
Wend
End If
totalmags.Text = counter
counter = 0
110
CREATE NEW USER:
111
CODE:
Option Explicit
Dim rsuser As ADODB.Recordset
Dim user As String
Dim pass As String
End Sub
End Sub
End Sub
cn.Close
End Sub
113
CHANGE PASSWORD:
114
CODE:
115
cbousername.AddItem rspass.Fields("UserName").Value
rspass.MoveNext Loop
rspass.Open "Login", cn, adOpenDynamic, adLockOptimistic
cbousername.AddItem "Administrator"
cbousername.AddItem rspass.Fields("UserNameame").Value
CMBUSER.AddItem "Employee"
End Sub
REPORT OF BOOK MASTER:
116
CODE:
118
REPORT OF MEMBER MASTER:
119
CODE:
121
REPORT OF EMPLOYEE MASTER:
122
CODE:
124
REPORT OF NEWSPAPER MASTER:
125
CODE:
127
REPORT OF MAGZINE MASTER:
128
CODE:
130
REPORT OF ISSUE BOOK:
131
CODE:
133
NOTEPAD:
134
CODE:
135
CALCULATOR:
136
CODE:
137
HELP FILE
138
CODE:
End Sub
139
Private Sub t_NodeClick(ByVal Node As MSComctlLib.Node)
Select Case Node.Text
Case "Introduction"
Rt1.LoadFile App.Path & "\helpfiles\intro.rtf"
Case "Books"
Rt1.LoadFile App.Path & "\help\BookMaster.rtf"
Case "Members"
Rt1.LoadFile App.Path & "\help\Membermaster.rtf"
Case "Staff"
Rt1.LoadFile App.Path & "\help\StaffMaster.rtf"
Case "Staff"
Rt1.LoadFile App.Path & "\help\StaffMaster.rtf"
Case "Master"
Rt1.LoadFile App.Path & "\help\masters.rtf"
Case "Issue"
Rt1.LoadFile App.Path & "\help\issue.rtf"
Case "Return"
Rt1.LoadFile App.Path & "\help\return.rtf"
Case "Reports"
Rt1.LoadFile App.Path & "\help\reports.rtf"
Case "Missing Book"
140
ABOUT US
141
CODE:
Dim i As Integer
Dim j As Integer
Private Sub btnOk_Click()
Unload frmInfo
frmmdi.Show
End Sub
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyEscape Then
Unload frmInfo
End If
End Sub
143
TESTING AND IMPLEMENTATION
Before installing the proposed system we will have to supply the client, a detailed
report regarding the complete details and functions of the developed system. During confirm
whether the required hardware configuration for smooth and reliable running of the software
is present or not. The next step involved is entering the data.
During the implementation stages the client will never leave the existing system
until the client is fully satisfied with the proposed system and also during the initial stages
both the existing and proposed system will go hand in hand since some time is required for
the updating of the transactions. This project is tested by unit tests and integration tests.
144
Levels of Testing
Client Accepting
Needs Testing
System
Requirements Testing
Design
Integration
Testing
Code
Unit
Testing
Unit testing comprises the set of tests performed by an individual programmer prior to
integration of the unit into a larger system. Coding and debugging -> unit testing ->
integration testing
145
A program unit is usually small enough that the programmer who developed it can test it in
greater detail than will be possible when the unit is integrated into an evolving software
product.
Four categories of tests that a programmer will typically perform on a program unit:
Functional Test:
Functional test cases involve exercising the code with nominal input values for which the
expected results are known, as well as boundary values, (minimum values, maximum values,
and values on and just outside the functional boundaries) and special values, such as
logically related inputs, 1 * 1 matrices, the identity matrix, files of identical elements and
empty files.
Performance Test:
Performance testing determines the amount of execution time spent in various parts of the
unit, program throughput, response time, and device utilization by program unit. A certain
amount of performance tuning may be done during unit testing. However, caution must be
exercised to avoid expending too much effort on fine-tuning of a program unit that
contributes little to the over all performance of the entire system. Performance testing is
most productive at the subsystem and system levels.
146
CHANGE OVER
Once the system has undergone satisfactory testing (unit, integration, system and
acceptance), it has to be operationalized. Implementation of the system is complete when the
system process current data and is used for operational purpose. Any older system is
discontinued.
Most problems of system usually surface at the time a change over are attempted to the
system. Important reasons for this are:
Incomplete analysis
Incorrect design
Incomplete testing
Misunderstanding on the requirements between the user and the system personnel
The change over to a new system is usually executed against a comprehensive plan contains.
Identification of all activity required during change over
Responsibility for each activity
Schedule for each activity
Steps to be followed for ach activity and the criteria for knowing when the activity is
to start and to end.
It is very important that the plan should assume problems will be found will need time and
resources to resolve. A common mistake is to plan assuming that it will be smooth sailing
and no problems will be found. In actual practice however problems some times are found to
147
be so major that some part of the system requires major rework. Minor problems are
common.
The broad categories of activities to change over to new systems after system testing
are:
It must be checked that the computer is loaded with Microsoft Visual Basic 6.0 and
Microsoft Access. After installing the package, copy the exe from the base folder.
Double click the icon by mouse. Then the main screen appears with login module
inbuilt. If successfully logged in, the user can go on using the functionalities available.
Only administrator is capable of creating new login for a new user. Each successful
data update shows a message box with the message “Updated”
148
What to do when EXE file is corrupted?
It is highly recommended that a proper trainee should handle the software. During the
working of the software, it should be seen that proper shut down of the program takes
place. For a safety, a back up copy should be kept with the user. Using a feature
provided in the application can do this. Any data that has been lost while the exe was
corrupted cannot be recovered.
149
SELECTION OF HARDWARE AND SOFTWARE
Microsoft Visual Basic is the fastest and easiest way to create applications for
Microsoft Windows. Visual Basic provides you with a complete set of tools to
simplify rapid application development.
So what is Visual Basic? The “Visual” part refers to the method used to create the
graphical user interface (GUI) rather than writing numerous lines of code to describe
the appearance and location of interface elements, you simply add pre-built objects
into place on screen.
The “Basic” part refers to the BASIC (Beginners All Purpose Symbolic Instruction
Code) language, a language used by more programmers than any other language in the
history of computing. Visual Basic has evolved from the original BASIC language and
now contains several hundred statements, functions, and keywords, many of which
relate directly to the Windows GUI. Beginners can create useful applications by
learning a few of keywords.
The Visual Basic Programming Language is not unique to Visual Basic. The Visual
Basic programming system, Applications Edition included in Microsoft Excel,
Microsoft Access, and many other windows applications uses the same language. The
Visual Basic Scripting Edition (VBScript) is a widely used scripting language and a
subset of Visual Basic Language. The invest you make in learning in Visual Basic will
carry over to these other areas.
150
Visual Basic has following tools:
151
BACK UP AND RECOVERY
As the backend of the software is the Microsoft Access, the IT department of the Library will
be handling the backup of the database.
152
CONCLUSION
The “Library Management System” software has been designed at most capabilities and
efforts. It has tested for possible exceptions keeping in mind, the primary requirement of
‘building robust system’
This experience has enriched our knowledge of developing a software system and has
proved to be stepping stone in our career, also if project give us lot of knowledge about hotel
field which definitely help us in our career.
153
FUTURE ENHANCEMENT
This project has big scope towards the future developments. Due to the time factor we could
not add some of the more interesting features which may make the software more user-
friendly and free from user interaction.
The current version of our system is only for Limited Services but we will going to include
different types of services.
By implementing the updater as a window service, we can start up the computer and keep
monitoring for the data. Also this will enable us to control the service more easily. A system
tray icon can be created for the faster access software interface. This can be done through the
use of Window API’s. Typically, the CreateService. Typically, the CreateService,
StartService API’s may help us do this.
154
We can add the registry entries for this software to store some critical information about the
software in it. This will make easier for the software to manage the critical information at
some safe place. This can be done through some registry components in Visual Basic.
BIBLIOGRAPHY
The reference books used during this system development are as follows:-
155