You are on page 1of 29

Library Management System 2022

INTRODUCTION
Library management system a windows form app, with the
advancement of technology, it is imperative to the systems into a user-friendly
manner. The library management system acts as a tool to transform traditional
libraries into digital libraries, the students has to search for books which are
hassle process and there is no proper maintenance of database about issues. The
overall process of work is slow and it is impossible to generate a fast report. The
libraries have to work allotted for arranging, sorting books in the book sells. At
the same time, they have to check and monitor the lend/borrow book details
with its fine. It is the tedious process to work simultaneously in different
sectors.

MODULES AND FORMS:

The modules used in this application are given below:

 Library management
 Login
 Menu
 Book details
 Member details
 Borrow details

Sahyadri degree college Dept. of BSc 1


Library Management System 2022
REQUIREMENTS

SOFTWARE REQUIREMENTS:

o Operating system : Microsoft windows 10


o Database : Access
 Frontend : Visual basic 6.0
 Backend : MS Access

HARDWARE REQUIREMENTS:

 Processor : AMD RYZEN 3 325OU with Radeon graphics,


2600 MHZ .
 RAM : 4GB
 Keyboard : standard keyboard 38.24
 Mouse : 2 buttons/ 3 buttons
 Hard disk : 50GB or more
 Monitor : any display unit

SYSTEM ANALYSIS
Sahyadri degree college Dept. of BSc 2
Library Management System 2022
Existing system:
In the available library management system, librarian maintains the
details of each book on the registers so to find out the number of books
available in the library they need to go to check the entire entry which makes
the process slow. While they need to spend an extra hour to maintain the
records of books. For a student who wants to know about a book in the library
need to search the entire book section. The student needs to check the status of
the book means the last date of book how many books has issued.

Proposed system:
The proposed library management system project will help the students
and librarian to maintain the details of the library. It will assist the librarian
before the storage of books while they can know the details of the number of
currently available in the library according according to the author by accessing
the system. A student can view the details of the book issued by them, and the
system will notify the students about the last date of submission of books.

TECHNOLOGY USED
The History of Visual Basic 6.0:

Sahyadri degree college Dept. of BSc 3


Library Management System 2022
Visual basic is a tool that allows you to develop windows
(graphic user interface-GUI) applications. the applications have a familier
appearance to the user. visual basic is event driven. meaning code remains idle
until called upon to respond to some event (button pressing, menu selection).

Visual basic 1.0: was introduced in 1991. The approach for connecting the
programming language to the graphical user interface is derived from a system
called tripod (sometimes known as ruby).

Visual Basic 2.0: was released in November 1992. The programming


environment was easier to use, and its speed was improved.

Visual basic 3.0: was released in 1993 and came in Standard and Professional
versions. visual Basic 3 included version 1.I of the Microsoft Jet Database
Engine that could read and write Jet (or Access) 1.x databases.

Visual Basic 4.0: was released in August 1995. It was the first version that
could create 52-bit as well as 16-bit Windows programs. It also introduced the
ability to write non-GUI classes in Visual Basic. While previous versions of
Visual Basic had used VBX controls, visual Basic now used OLE controls (with
files names ending in.ocx) instead. These were later to be named ActiveX
controls.

Visual Basic 5.0: release in February 1997, Microsoft released Visual Basic
exclusively for 32-bit versions of Windows. Programmers who preferred to
write 16-bit programs were able to import programs written in Visual Basic 4.0
to Visual Basic 5.0, and Visual Basic 5.0 programs could easily be converted
with Visual Basic 4.0. Visual Basic 5.0 also introduced the ability to create
custom user controls,
Sahyadri degree college Dept. of BSc 4
Library Management System 2022

Visual Basic 6.0: released in 1998 improved in a number of areas including the
ability to create web-based applications. Visual Basic 6 has been the most
successful version in the history of Visual Basic.

Features of Visual Basic:


Visual Basic provides the following features:

 GUI Interface
 Modularization
 Object Oriented
 Debugging
 Data Access Feature
 Macros IDE
 Creating Executable Files
 .NET Framework
 GUI Interface: Visual Basic (VB) is a Graphical User Interface
language. This means that a Visual Basic program will always show
something on the screen that the user can interact with to get a job done.
 Modularization: It is considered good programming practice to
modularize your programs. Small modules where it is clearly indicated
what comes into the module and what goes out makes a program easy to
understand.
 Object Oriented: Object Oriented Programming. is a concept where the
programmer thinks of the program "objects" that interact with each other.
Visual Basic forces this good programming practice.
 Data Access Feature: By using Data Access features, we can create
databases, scalable server-side components for most databases, including
Microsoft SQL Server and other enterprise-level database.
 Macros IDE: The Macros Integrated Development Environment (DE) is
similar in design and function to the Visual Studio IDE. The Macros IDE
includes a code editor, tool windows the properties windows and editors.

Sahyadri degree college Dept. of BSc 5


Library Management System 2022
 Creating Executable Files: Visual Basic can create executable files. that
is, EXE files, ActiveX controls, but it is primarily used to develop
Windows applications. It is also used to interface web database systems.
 .NET Framework: Visual Basic fully integrates the .NET framework
and the common language runtime, which provide language
interoperability, garbage collection, enhanced security, and versioning
support.

The Integrated Development Environment:

The Integrated Development Environment (IDE) is a term commonly used in


the programming world to describe the interface and environment that we use to
create Our applications It is called integrated because we can access virtually all
of the development tools that we need from one screen called an interface. The
IDE is also commonly referred to as the design environment or the program.
The Visual Basic IDE is made up of a number of components. They are:

 Title Bar
 Menu Bar
 Tool Bar

Sahyadri degree college Dept. of BSc 6


Library Management System 2022
 Toolbox
 Project Explorer Window
 Form Layout Window
 Form Window
 Properties Window

Advantages-

 Full set of controls-you draw the application.


 Lots of icons and pictures for your use.
 Response to mouse and keyboard actions.
 Useful debugger and error-handling facilities.

Disadvantages-

 The execution speed of visual applications is slow.


 These languages can only be implemented on graphical operating systems
like Linux and windows.

Sahyadri degree college Dept. of BSc 7


Library Management System 2022

SOFTWARE REQUIREMENT SPECIFICATION

A Software Requirements Specification (SRS) Is a


comprehensive description. intended purpose and environment for development,
and it is the set of necessary features for the future product.

SRS document is an agreement between the developer and the


customer covering the functional and non-functional requirements of the
software to be developed.

Software development life cycle (SDLC)


Software development life cycle is a process used by the software
industry to design, develop and test high quality software.

The SDLC aims to produce a high-quality software that meets or


exceeds customer expectations, reaches completion within times and cost
estimates. SDLC is the acronym of software development life cycle.

Sahyadri degree college Dept. of BSc 8


Library Management System 2022

Types of models:
o Waterfall model
o Spiral model
o Iterative and incremental development model
o V-model
o Agile model
o Rad model
o Scrum model
o Rapid application development model

WATERFALL MODEL:
Waterfall model was developed by Royce in 1970. This model is also referred
Linear Sequential Model or Classical Life Cycle Model, this model suggests
systematic, sequential approach to software development that begins at system
level and progresses through analysis, design, development, coding, testing and
maintenance.

The Principle phases of water fall model are

 Requirement Definition
 Software and System Design
 Implementation and Unit Testing
 Integration and System Testing
 Operation and Maintenance

The schematic view of waterfall model:

Sahyadri degree college Dept. of BSc 9


Library Management System 2022

 requirement Definition: The system's services, Constraints and


goals are established by consultation with system users.
 system and Software Design: system design process partitions the
requirements to either hardware or software system.
 Implementation and Unit testing: On receiving system design
documents, the work is divided in modules/units and actual coding is
started. The system is first developed in small programs called units,
which are integrated in the next phase. Each unit is developed and tested
for its functionality this is referred to as unit testing.
 Integration and System Testing: as specified above, the system is first
divided into units which are developed and tested for their functions.
These units are integrated into a complete system during integration
phase and tested.
 Operations and Maintenance: Normally this is the longest life cycle
phase. The system is put into practical use. Maintenance involves
correcting errors.

Advantages –
Sahyadri degree college Dept. of BSc 10
Library Management System 2022
 Simple and easily understandable.
 Uses clear structure.
 High and detailed documentation that is useful for understanding the
system by the team in future.
 Disadvantages –

 All If there is any mistake in middle, then the entire process has to be
started from beginning.
 Tiny errors which are caused in the system would create a big mess.
 Measuring the progress for every stage is a real difficult.
 Not recommended for the projects which are already started.

Microsoft access 2003


Microsoft Access is a database management system (DBMS) from
Microsoft that combines the relational Access Database Engine (ACE) with a
graphical user interface and software-development tools.
Constructing the database is the process of storing the data itself on
some storage medium that is controlled by the DBMS. Manipulating a database
includes function such as querying the database to reflect changes in the mini
world, generating the reports from the data. The primary objective of a DBMS
is to provide environment to retrieve and store database information. Database
system supports multi-user environment.
Microsoft Access stores data in its own format based on the Access
Database Engine (formerly Jet Database Engine). It can also import or link
directly to data stored in other applications and databases.
In addition to using its own database storage file, Microsoft Access
also may be used as the 'front-end' of a program while other products act as the
'back-end' tables, such as Microsoft SQL Server and non-Microsoft products
such as Oracle and Sybase.

Advantages:
 Easy to integrate.

Sahyadri degree college Dept. of BSc 11


Library Management System 2022
 Large amounts of data.
 Easy to share data.
Disadvantages:
 Ms access is suitable only for small databases.
 Ms access is not user friendly.
 Ms access is not available over the internet.

Data Flow Diagram


A data flow diagram is a graphical representation of the ‘flow’ of
data through an information system. A data flow diagram can also be used for
the visualization of data processing. It is common practice for a designer to
draw a context-level DFD first which shows the interaction between the system
and outside entities. This context-level DFD is then ‘exploded’ to show more
detail of the system being modelled.
A DFD represents flow of data through a system. DFD are commonly
used during problem analysis. It views a system as a function that transforms
the input into desired output. DFD shows movement of data through the
different transformations or processes in the system.

Data Flow Diagram Notation

Function/Process

File/Database

Input/Output

Flow

Sahyadri degree college Dept. of BSc 12


Library Management System 2022

ER Diagram
An entity relationship diagram is a specialized graphics that
illustrates the interrelation between entities in a database. ER diagram often use
symbols to represent 3 different types of information.
The ER diagram is below shows -relationships between all entities.

Book ID
Member Name

Book title

Book title Member ID


Password
Returned Member ID
Book ID

author Start Date

BOOK BORROW MEMBER

The ER diagram for LIBRARY MANAGEMENT PROJECT.

Sahyadri degree college Dept. of BSc 13


Library Management System 2022

SNAPSHOTS

Figure 1.0: home form

Figure 1.1:login form

Sahyadri degree college Dept. of BSc 14


Library Management System 2022

Figure 1.3: book borrow details

Figure 1.4: member information form

Sahyadri degree college Dept. of BSc 15


Library Management System 2022

Figure 1.5: book details

Sahyadri degree college Dept. of BSc 16


Library Management System 2022

CODING
Login:
Public con As New ADODB.Connection
Public rs As New ADODB.Recordset
Public constr As String
Public Sub loadcon()
constr = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\rlibraNew folde\
library.mdb;Persist Security Info=False"
con.Open constr
End Sub

Private Sub cmdlogin_Click()


frmlogin.Show
Unload Me
End Sub

Option Explicit
Public LoginSucceeded As Boolean
Private Sub cmdCancel_Click()
'set the global var to false
'to denote a failed login
LoginSucceeded = False
Me.Hide
End Sub

Private Sub cmdOK_Click()

Sahyadri degree college Dept. of BSc 17


Library Management System 2022
rs.Open "SELECT * FROM Member ", con, adOpenDynamic,
adLockReadOnly
While Not rs.EOF
If rs!MemberID = Val(txtUserID) Then
'check for correct password'
If rs!Pass = txtPassword Then
'place code to here to pass the '
'success to the calling sub'
'setting a global var is the easiest'
LoginSucceeded = True
frmMenu.Show
Me.Hide
con.Close
Exit Sub
Else
MsgBox "Invalid Password, try again!", , "Login"
txtPassword.SetFocus
SendKeys "{Home}+{End}"

End If
End If
rs.MoveNext
Wend
End Sub

Private Sub Form_Load()


Call loadcon
End Sub
Sahyadri degree college Dept. of BSc 18
Library Management System 2022

Private Sub books_Click(Index As Integer)


frmbook.Show
End Sub

Private Sub borrow_Click(Index As Integer)


frmborrow.Show
End Sub

Private Sub exit_Click(Index As Integer)


Unload Me
End Sub

Private Sub members_Click(Index As Integer)


frmmember.Show
End Sub

Option Explicit
Private Sub cmdBAdd_Click()
Call loadcon
con.Execute "INSERT INTO Book (BookID, BookTitle, Author) VALUES ("
& txtBookID & ",'" & txtBookTitle & "','" & txtAuthor & "')"
MsgBox ("Record Inserted Successfully")
con.Close
End Sub
Private Sub cmdBCatalog_Click()
Call loadcon
rs.CursorLocation = adUseClient
Sahyadri degree college Dept. of BSc 19
Library Management System 2022
rs.Open "Book", con, adOpenKeyset, adLockBatchOptimistic, adCmdTable
If Dir$("C:/VBProjects/Library/savebookquery.xml") <> "" Then
Kill "C:/VBProjects/Library/savebookquery.xml"
End If
rs.Save "C:/VBProjects/Library/savebookquery.xml", adPersistXML
rs.Close
con.Close
Set rs = Nothing
rs.Open "C:/VBProjects/Library/savebookquery.xml", , adOpenKeyset,
adLockBatchOptimistic, adCmdFile
Set BookFinder.DataSource = rs
Set rs = Nothing
End Sub

Private Sub cmdBDelete_Click()


Call loadcon
con.Execute "DELETE * FROM Book WHERE BookID = " & txtBookID & ""
MsgBox ("Record Deleted Successfully")
con.Close
End Sub
Private Sub cmdBDisplay_Click()
Call loadcon
rs.CursorLocation = adUseClient
rs.Open "SELECT Book.[BookID], Book.[BookTitle],Borrow.
[MemberID],Member.[MemberName],Borrow.[StartDate] FROM
Book,Borrow,Member WHERE Book.[BookID] = " & txtBookID & " And
Book.[BookID]= Borrow.[BookID]And Borrow.[MemberID]=Member.
[MemberID] And Borrow.[Return] = 0", con, adOpenDynamic,
adLockOptimistic

Sahyadri degree college Dept. of BSc 20


Library Management System 2022
If Dir$(D:\rlibraNew folde\savebookdisplay.xml") <> "" Then
Kill "D:\rlibraNew folde\savebookdisplay.xml"
End If
rs.Save "D:\rlibraNew folde\savebookdisplay.xml", adPersistXML
rs.Close
con.Close
Set rs = Nothing
rs.Open "D:\rlibraNew folde\savebookdisplay.xml", , adOpenKeyset,
adLockBatchOptimistic, adCmdFile
Set BookFinder.DataSource = rs
Set rs = Nothing
End Sub
Private Sub cmdBExit_Click()
Unload Me
End Sub
Private Sub cmdBUpdate_Click()
Call loadcon
con.Execute "UPDATE Book SET BookTitle = '" & txtBookTitle & "', Author
= '" & txtAuthor & "' WHERE BookID = " & txtBookID & ""
MsgBox ("Record Updated Successfully")
con.Close
End Sub
Private Sub cmdClear_Click()
txtBookID.Text = " "
txtBookTitle.Text = " "
txtAuthor.Text = " "
End Sub
Private Sub cmdAvailibility_Click()

Sahyadri degree college Dept. of BSc 21


Library Management System 2022
Call loadcon
rs.CursorLocation = adUseClient
rs.CursorType = adOpenStatic
rs.Open "SELECT * FROM Borrow WHERE BookTitle = '" & txtBBookTitle
& "' And Return = 0", con, adOpenDynamic, adLockOptimistic
If rs.RecordCount > 0 Then
txtBResult.Text = "Not Available"
Else
txtBResult.Text = "Available"
End If
rs.Close
con.Close
End Sub
Private Sub cmdBClear_Click()
txtBBookID.Text = ""
txtBMemberID.Text = " "
txtBBookTitle.Text = " "
txtBResult.Text = ""
txtBTitle.Text = " "
End Sub
Private Sub cmdBorrow_Click()
Call loadcon
rs.Open "INSERT INTO Borrow (BookID, MemberID, BookTitle,StartDate)
VALUES (" & txtBBookID & "," & txtBMemberID & ",'" & txtBTitle & "',#"
& Format(Now, "mm/dd/yyyy") & "#)", con, adOpenDynamic,
adLockOptimistic
MsgBox ("Book Borrowed Successully")
con.Close
End Sub
Sahyadri degree college Dept. of BSc 22
Library Management System 2022
Private Sub cmdExit_Click()
Unload Me
If con.State = adStateOpen Then
con.Close
End If
End Sub
Private Sub cmdReturn_Click()
Call loadcon
rs.CursorLocation = adUseClient
rs.CursorType = adOpenDynamic
rs.Open "UPDATE Borrow SET Return = 1 WHERE MemberID = " &
txtBMemberID & " And BookID = " & txtBBookID & "", con, adOpenStatic,
adLockReadOnly
MsgBox "Book Returned Successfully"
con.Close
End Sub

Private Sub cmdAllMember_Click()


Call loadcon
rs.CursorLocation = adUseClient
rs.Open "Member", con, adOpenKeyset, adLockBatchOptimistic, adCmdTable
If Dir$("C:/VBProjects/Library/saveshowmembers.xml") <> "" Then
Kill "C:/VBProjects/Library/saveshowmembers.xml"
End If
rs.Save "C:/VBProjects/Library/saveshowmembers.xml", adPersistXML
rs.Close
con.Close
Set rs = Nothing

Sahyadri degree college Dept. of BSc 23


Library Management System 2022
rs.Open "C:/VBProjects/Library/saveshowmembers.xml", , adOpenKeyset,
adLockBatchOptimistic, adCmdFile
Set MemberFinder.DataSource = rs
Set rs = Nothing
End Sub
Private Sub cmdMAdd_Click()
Call loadcon
con.Execute "INSERT INTO Member (MemberID,MemberName,Pass)
VALUES (" & txtMID & ",'" & txtMName & "','" & txtMPass & "')"
MsgBox ("Record Inserted Successfully")
con.Close
End Sub
Private Sub cmdMClear_Click()
txtMID.Text = " "
txtMName.Text = " "
txtMPass.Text = " "
End Sub
Private Sub cmdMDel_Click()
Call loadcon
con.Execute "DELETE * FROM Member WHERE MemberID = " & txtMID &
""
MsgBox ("Record Deleted Successully")
con.Close
End Sub
Private Sub cmdMDisplay_Click()
Call loadcon
rs.CursorLocation = adUseClient
rs.Open "SELECT Member.[MemberID],Member.[MemberName],Borrow.
[Bookid],Borrow.[bookTitle]FROM Member, Borrow WHERE Member.
Sahyadri degree college Dept. of BSc 24
Library Management System 2022
[MemberID]= " & txtMID & " And Member.[MemberID] = Borrow.
[MemberID] And Borrow.[Return]= 0", con, adOpenDynamic,
adLockOptimistic
If Dir$("D:\rlibraNew folde\savememberdisplay.xml") <> "" Then
Kill "D:\rlibraNew folde\savememberdisplay.xml"
End If
rs.Save "D:\rlibraNew folde\savememberdisplay.xml", adPersistXML
rs.Close
con.Close
Set rs = Nothing
rs.Open "D:\rlibraNew folde\savememberdisplay.xml", , adOpenKeyset,
adLockBatchOptimistic, adCmdFile
Set MemberFinder.DataSource = rs
Set rs = Nothing
End Sub
Private Sub cmdMExit_Click()
Unload Me
End Sub
Private Sub cmdMUpdate_Click()
Call loadcon
con.Execute "UPDATE Member SET MemberName = '" & txtMName &
"',Pass = '" & txtMPass & "' WHERE MemberID = " & txtMID & ""
MsgBox ("Record Updated Successfully")
con.Close
End Sub

Sahyadri degree college Dept. of BSc 25


Library Management System 2022

SYSTEM TESTING:
TESTING:
System testing is a software level where integrated software is tested.
The main purpose of this system testing is it evaluates the systems compliance
with specified requirements.
Levels of testing are:
 Unit testing
 Integration testing
 Validation testing
 Acceptance testing

UNIT TESTING:
Individual components are tested to ensure that they operate correctly.
Each component is tested independently without referring other system
components.
INTEGRATION TESTING:
This phase involves testing collection of modules which has been
integrated into sub system.
VALIDATION TESTING:
Validation testing is confirmation that a product meets its intended use
and the needs of its issues.
ACCEPTANCE TESTING:
This is the final stage in the testing process before the system is accepted
by the customer. The system is tested with data supplied by the client rather
than simulated test data.
 Internal acceptance testing.
 External acceptance testing.

Sahyadri degree college Dept. of BSc 26


Library Management System 2022

CONCLUSION
After we have completed the project we are sure he problems In the
existing system would overcome. the “LIBRARY MANAGEMENT SYSTEM”
process made computerized to reduce human errors and to increase the
efficiency.

the main focus of his project is to lesser human efforts. the maintenance
of the records is made efficiency, as all he records are sored In the access
database, through which data can be retrieved easily.

The problems, which existed in the earlier system, have been removed to
a large extent. And it is expected that this project will go a long way in
satisfying user requirements. The computerization of the library management
will not only improves the efficiency but will also reduce human stress thereby
indirectly improving human resources.

Sahyadri degree college Dept. of BSc 27


Library Management System 2022

FUTURE ANNOUNCEMENTS
If you own a library and are all set to reinvent how your digital library
works, now are the time to adopt the latest technologies and prosper! At
Algorhythms, we ensure our library management system software that manages
all aspects of library management, from acquisition, cataloguing to circulation,
and more remains compatible to adapt to the upcoming technologies.
Libraries have always been a gathering place for people and knowledge.
Now, they are omnipresent as Digital Libraries. These digital libraries have
changed the way we access knowledge and information by offering everything on
a global level. People no longer need to go to a library to read a book or search
for any book. They can use digital libraries which can be accessed anytime,
anywhere.

Sahyadri degree college Dept. of BSc 28


Library Management System 2022

BIBLIOGRAPHY

TEXT REFERENCE

[1] A.C. Bradley and Millspaugh A.C, programming in visual basic 6.0 (update
version). The McGraw-Hil Companies, inc, 2004.
[2] IEEE transactions on software engineering, vol. 31, no. 3, March 2005
[3] R.Pressman, software engineering A practitioners approach. Fifth edition
McGraw-Hill ,2001.

WEB REFERENCE

https://amistrategies.com/expense-management/
https://www.xpenditure.com/en?
https://markushintersteiner.at/
http://expense-manager.com/how-expense-software/

Sahyadri degree college Dept. of BSc 29

You might also like