You are on page 1of 140

INTRODUCTION

The impact of computers on our lives today is probably much

more than we are actually aware of Airlines, railways reservations, telephone

and electricity bills, banking, medical diagnosis, weather forecast etc are some

notable fields but the list of services using computers is simply endless.

Computers today help in management of many industrial, business

and personal systems. They can store and maintain a huge amount of data,

which is major requirement of above stated applications, Data is vital element

of any system and hence the management of data is essential for effective

retrieval of information (for example: - tables) and provision for the

mechanism for the manipulation of the information (i.e. Create, modify, delete

and add data).

Effective retrieval of data can save a lot of precious time and

hence increase the productivity of the employee concerned and the

organization as a whole.
DEFINITION OF PROBLEM

One must know what the problem is before it can be solved. The

basis for the candidate system is the recognition of a need for improving an

information system or a procedure.

A client/user, who wishes to outsource his software development

work at an economical cost, has to contact different providers, either physically

or telephonically, before deciding upon a particular provider that best suit his

needs, requirements and budget. Moreover, most of the work involved in the

software development process has to be done manually, which is very time

consuming and the cumbersome and also, it reduces the efficiency, accuracy

and speed of data retrieval.

To know the facts and understanding the problem in detail,

System Analysis is carried out. It is the process and procedures, generally

referred to as business systems, to see how the can operate and whether

improvement is needed. This may involve examining the data movement and

storage, machines and technology used in the system, programs that control the

machines, people providing inputs, doing the processing and receiving the

outputs
Software Used

Visual Basic

Visual Basic (VB) is the third-generation event-driven programming language

and integrated development environment (IDE) 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 features and

BASIC heritage.

Visual Basic was derived from BASIC and enables the rapid

application development (RAD) of graphical user interface (GUI) applications,

access to databases using Data Access Objects, Remote Data Objects, or

ActiveX Data Objects, and creation of ActiveX controls and objects. Scripting

languages such as VBA and VBScript are syntactically similar to Visual Basic,

but perform differently.

Programmer can put together an application using the components

provided with Visual Basic itself. Programs written in Visual Basic can also use

the Windows API, but doing so requires external function declarations.

The final release was version 6 in 1998. Microsoft's extended

support ended in March 2008 and the designated successor was Visual Basic

.NET (now known simply as Visual Basic).


LANGUAGE FEATURES

Like the BASIC programming language, Visual Basic was designed to be

easily learned and used by beginner programmers. The language not only

allows programmers to create simple GUI applications, but can also develop

complex applications. Programming in VB is a combination of visually

arranging components or controls on a form, specifying attributes and actions

of those components, and writing additional lines of code for more

functionality. Since default attributes and actions are defined for the

components, a simple program can be created without the programmer having

to write many lines of code. Performance problems were experienced by earlier

versions, but with faster computers and native code compilation this has

become less of an issue.

Although programs can be compiled into native code executables

from version 5 onwards, they still require the presence of runtime libraries of

approximately 1 MB in size. This runtime is included by default in Windows

2000 and later, but for earlier versions of Windows like 95/98/NT it must be

distributed together with the executable.


Forms are created using drag-and-drop techniques. A tool is used

to place controls (e.g., text boxes, buttons, etc.) on the form (window).

Controls have attributes and event handlers associated with them. Default

values are provided when the control is created, but may be changed by the

programmer. Many attribute values can be modified during run time based on

user actions or changes in the environment, providing a dynamic application.

For example, code can be inserted into the form resize event handler to

reposition a control so that it remains centered on the form, expands to fill up

the form, etc. By inserting code into the event handler for a keypress in a 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 executables (EXE files), ActiveX controls,

or DLL files, but is primarily used to develop Windows applications and to

interface database systems. Dialog boxes with less functionality can be used to

provide pop-up capabilities. Controls provide the basic functionality of the

application, while programmers can insert additional logic within the

appropriate event handlers. For example, a drop-down combination box will

automatically display its list and allow the user to select any element. An event

handler is called when an item is selected, which can then execute additional
code created by the programmer to perform some action based on which

element was selected, such as populating a related list.

Alternatively, a Visual Basic component can have no user

interface, and instead provide ActiveX objects to other programs via

Component Object Model (COM). This allows for server-side processing or an

add-in module.

The language is garbage collected using reference counting, has a

large library of utility objects, and has basic object oriented support. Since the

more common components are included in the default project template, the

programmer seldom needs to specify additional libraries. Unlike many other

programming languages, Visual Basic is generally not case sensitive, although

it will transform keywords into a standard case configuration and force the case

of variable names to conform to the case of the entry within the symbol table.

String comparisons are case sensitive by default, but can be made case

insensitive if so desired.

The Visual Basic compiler is shared with other Visual Studio

languages (C, C++), but restrictions in the IDE do not allow the creation of

some targets (Windows model DLLs) and threading models.


THE HISTORY OF VB

VB 1.0 was introduced in 1991. The drag and drop design for

creating the user interface is derived from a prototype form generator

developed by Alan Cooper and his company called Tripod. Microsoft

contracted with Cooper and his associates to develop Tripod into a

programmable form system for Windows 3.0, under the code name Ruby (no

relation to the Ruby programming language).

Tripod did not include a programming language at all. Microsoft

decided to combine Ruby with the Basic language to create Visual Basic.

The Ruby interface generator provided the "visual" part of Visual

Basic and this was combined with the "EB" Embedded BASIC engine

designed for Microsoft's abandoned "Omega" database system. Ruby also

provided the ability to load dynamic link libraries containing additional

controls (then called "gizmos"), which later became the VBX interface.

Timeline
 Project 'Thunder' was initiated

 Visual Basic 1.0 (May 1991) was released for Windows at the

Comdex/Windows World trade show in Atlanta, Georgia.


 Visual Basic 1.0 for DOS was released in September 1992. The language

itself was not quite compatible with Visual Basic for Windows, as it was

actually the next version of Microsoft's DOS-based BASIC compilers,

QuickBASIC and BASIC Professional Development System. The

interface used a Text user interface, using extended ASCII characters to

simulate the appearance of a GUI.


THE VB LICENSE

This license governs use of the accompanying software. If you use the

software, you accept this license. If you do not accept the license, do not use

the software.

1. Definitions

The terms "reproduce," "reproduction," "derivative works," and

"distribution" have the same meaning here as under U.S. copyright law.

A "contribution" is the original software, or any additions or

changes to the software.

A "contributor" is any person that distributes its contribution under

this license.

"Licensed patents" are a contributor's patent claims that read

directly on its contribution.

2. Grant of Rights

(A) Copyright Grant- Subject to the terms of this license, including the

license conditions and limitations in section 3, each contributor grants

you a non-exclusive, worldwide, royalty-free copyright license to

reproduce its contribution, prepare derivative works of its contribution,

and distribute its contribution or any derivative works that you create.
(B) Patent Grant- Subject to the terms of this license, including the license

conditions and limitations in section 3, each contributor grants you a

non-exclusive, worldwide, royalty-free license under its licensed patents

to make, have made, use, sell, offer for sale, import, and/or otherwise

dispose of its contribution in the software or derivative works of the

contribution in the software.

3. Conditions and Limitations

(A) No Trademark License- This license does not grant you rights to use any

contributors' name, logo, or trademarks.

(B) If you bring a patent claim against any contributor over patents that you

claim are infringed by the software, your patent license from such

contributor to the software ends automatically.

(C) If you distribute any portion of the software, you must retain all

copyright, patent, trademark, and attribution notices that are present in

the software.

(D) If you distribute any portion of the software in source code form, you

may do so only under this license by including a complete copy of this

license with your distribution. If you distribute any portion of the

software in compiled or object code form, you may only do so under a

license that complies with this license.


(E) The software is licensed "as-is." You bear the risk of using it. The

contributors give no express warranties, guarantees or conditions. You

may have additional consumer rights under your local laws which this

license cannot change. To the extent permitted under your local laws, the

contributors exclude the implied warranties of merchantability, fitness

for a particular purpose and non-infringement.


HARDWARE AND SOFTWARE REQUIREMENTS

The computer on which you install your Visual Studio edition should meet the

following system requirements. For information about Visual Studio Team

System requirements, see Visual Studio 6 Team System Requirements.

Requirement Professional Standard Visual Studio


Tools for
Office
600 MHz processor
Processor Same Same
Recommended: 1 gigahertz (GHz)
processor1
192 MB
RAM Same 256 MB
Recommended: 256 MB1
Without MSDN:
Available Hard Same Same
Disk Space 
1 GB of available space
required on system drive2

2 GB of available space
required on installation drive

With MSDN:

 1 GB of available space
required on system drive
 3.8 GB of available space
required on installation drive
with a full installation of
MSDN

 2.8 GB of available space


required on installation drive
with a default installation of
MSDN
Windows 2000 Service Pack 4,
Operating Same Same
Windows XP Service Pack 2,
System
Windows Server 2003 Service Pack
1, or Windows Vista3,4

For a 64-bit computer, the


requirements are as follows:

 Windows Server 2003 Service


Pack 1 x64 editions

 Windows XP Professional x64


Edition

CD-ROM Drive Required5 Required Required


or DVD-ROM
Drive
800 X 600, 256 colors
Video Same Same
Recommended: 1024 X 768, High
Color 16-bit

Mouse Microsoft mouse or compatible Same Same


pointing device
1. Performance has not been tuned for minimum system configuration.

Increasing the RAM above the recommended system configuration will

improve performance, specifically when you are running multiple

applications, working with large projects, or doing enterprise-level

development.

2. When you start the Visual Studio installer, the default installation

location is the system drive, which is the drive that boots the system.

However, you can install the application on any drive. Regardless of the

application's location, the installation process installs some files on the

system drive. Consequently, make sure that the required amount of

space, as listed in this table, is available on the system drive regardless

of the application's location, and make sure that the required additional

space, as listed in this table, is available on the drive on which you

install the application.

3. Windows XP Home Edition does not support local Web application

development. Local Web application development is supported only in

the Professional or Server versions of Windows.

4. Microsoft Windows 2000 Datacenter Server is not a supported operating

system.
5. The type of media provided with the product determines whether a CD-
ROM drive or DVD-ROM drive is required.

Operating Windows 2000, Same Same Same Same


System Windows XP,
Windows Server
2003, or Windows
Vista3,4

CD-ROM Not Required5 Not Not Not Not


Drive or Required Required Required Required
DVD-ROM
Drive

Video 800 x 600, 256 colors Same Same Same Same


Recommended: 1024
x 768, High Color 16-
bit

Mouse Microsoft Mouse or Same Same Same Same


compatible pointing
device
Hardware Requirements

-----------------------------------------------------------------------------------------------
Scenario Processor RAM
Required Recommended Required Recommended
-----------------------------------------------------------------------------------------------
Client Pentium 500 MHz* Pentium 1 GHz 64 MB* 128 MB or higher

Server Pentium 667 MHz* Pentium 1 GHz 128 MB* 256 MB or higher

*Or the minimum required by the operating system, whichever is higher.

PROJECT ANALYSIS

Analysis is detailed study of various operation performed by the

system and their relationship within and outside the system. Outside factor also

plays a major role in the system like government, vendors, customers etc. A

key question is what must be done to solve the problem? One aspect of the

analysis is defining the boundaries of the system and determining whether or

not a candidate system should consider other related systems.

During analysis, data is collected on available files, decision

points and transaction handled by the present system. There are many tools,

which are available to do the analysis part like an interview, questionnaire, fact

analysis and review of written documents after all these tools, flow charts or

decision tables are built which clearly shows the problem. The interview is a

commonly used tool in analysis. The analysis requires special skill to the

subject being interviewed and the way in which the interview is taken. Bias in

data collection and interpretation can be a problem. Training, experience and

common sense are required for collection of the information needed to do the
analysis. The environment in which the analysis is carried out plays an

important role that is, how the system analyst deals with the interviewing staff.

With the corporation and satisfaction of the user staff the analysis part can be

successfully taken. In analysis, we design the system logically that is how the

system will look like? After the analysis part we move from logical system to

physical system that is, how the system will actually be? So after the analysis

that is logical there is a physical part called design which is a very important

stage in system development life cycle.

Once analysis is completed, the analyst has a firm understanding

of what is to be done. The next step is to decide how the problem might be

solved. Thus, in system design, we move from the logical to the physical

aspects of the life cycle.


SYSTEM ANALYSIS

Before we start studying the system we are to know with the term

system. What is system? The term system is derived from the Greek word,

system, which means an organized relationship among function units or

components. A system exists because it is designed to achieve one or more

objective.

The term system refers to an orderly grouping of interdependent

components liked together according to a plan to achieve a specific objective.

The idea of system becomes most practical and necessary in conceptualizing

the interrelationship and integration of operations especially when using

computers. Thus, a system is a way of thinking of organizations and their

problems. It involves a set of techniques that helps in solving the problems. A

system has many elements; these are input and output processors, control,

feedback, environment, boundary and interface. System takes input from

outside and gives output to the outside. So practically the system is an open

system that interacts with the environment.

A study of system concept has three basic implications:

1. A system must be designed to achieve a predetermined objective.

2. Interrelationship and interdependence must exist among the component.


3. The objective of the organization as a whole has a higher priority than

the objective of its sub system, for example, computerizing personal

applications must conform to the organization policy on privacy

confidentiality and security, as well as making selective data (pay roll)

available to the accounting division on request.


INITIAL INVESTIGATION

This is the first step in system development life cycle. For making

a project, it is very important to understand the overall working of the system.

To know about the overall working of the system, initial investigation is carried

out. Initial investigation helps to identify the need. To make a candidate

system, a request is given by the user either to change the system, improve or

enhance the existing or to make the new system. Requests are coming because

of limitation in the present system or here the system not be available. Getting

information from the existing system

INFORMATION GATHERING

After defining the problem, the next step in the system analysis is

to gather information. Information gathering is an art and science. The

approach and manner in which information is gathered require persons with

sensitivity, commonsense and knowledge of what and when to gather and what

channels to use in securing information. This means that information getting is

neither easy nor routine. Much preparation, experience and training is required.

Before one determines where to go for information or what tool to use, the first

requirement is to figure out what information to gather. Much of the


information we need to analyze relates to the police station. The approach and

the manner in which the information is gathered require a person with

sensitivity, skill and common sense of the following: -

1. Purpose of gathering information

2. What and when to gather

3. Source of information

4. What channel to use in securing the information

Information gathering tools: -

There are no general rules for using the tools for the information

gathering. An important rule is that information is acquired accurately,

methodically under right conditions and with a minimum interruption to the

user staff. Following are the common information gathering tools: -

a) Review procedure manuals

b) Onsite observation

c) Interview

d) Questionnaires

e) Work measurement

f) Sampling
FEASIBILITY STUDY

Introduction:-

ABSTRACT

The Library Management System automates the basic library functions to aid

in the day-to-day operations of a library. It supports functions such as issue,

return, the very basic functions of searching for a particular book, etc. It also

maintains data about books about books, teachers, students records that are

required during various library operations. The software aims to make the

system user friendly and efficient.

Objective of project:

To provide a Library Management System for college library,

which would provide all library functions. Rational: To improve library uses

services and reduce paperwork.

Scope of Project:

To make the existing system more efficient.To provide a user

friendly environment where user can be service better make functioning of

library faster.Provide a system where the library staff can catch defaulters and

not let them escape.To minimize the loss done to books.Requirements

Specification.
Purpose:-

The purpose of this application are as follows :

The software is for automation of library. It provides following facilities to:

1) Operator :

Can enter details related to a particular book.Can provide

membership to members Admin: Can read and write information about any

Member.Can update, create, delete the record of membership as per

requirement and implementation plants.

2) Scope :

The different areas where we can use this application are any

education institute can make use of it for providing information about author,

content of the available books. It can be used in offices and modifications can

be easily done according to requirements.

3) Technology Used :

Front End :

Visual Basic

Back End :

MS Access,

4.) Overview :
Project is related to library management which provides reading

services to its members. Any person can become a member of the library by

filling a prescribed form. They can get the book issued, so that they cab take

home and return them.

6) Functionality :

Keeps the track of issues and submission of books to members.

In feasibility study phase we had undergone through various steps which are

describe as under : The functions that the Library Management System

provides are as follows:

1. INSERT: This operation is performed when new data needs to be added

to the system, for e.g. when department purchases a new book, the

book’s entry is inserted in the books database. This option has three

choices:

a) Book: This choice allows entering data about newly purchased books

into the books database. The data entered includes book’s author, title,

publisher, cost and various other fields provided in the form. The data

must be accurate and must be entered in the correct format as indicated

in the forms.

b) Member: This will enter new record for a member in member’s

database.
2. DELETE: This operation clears the existing records in the various

databases. It is used when for e.g. a member leaves college or when

book is disposed of from library. But care must be taken while

performing this operation and permission taken from the head of library

because the system could loose any important data.

It can be performed on all databases and on three choices are:

a) Book: This will enter a null value for the book whose accession number

is entered in the field provided in the respected form. This operation is

done when a book is disposed of the library.

c) Member : This will clear the record for the particular member whose

record needs to be deleted by entering number in the required field. This

option is chosen when a member leaves college.

3. UPDATE: This function updates data in the various records. This

operation is supported by all the three entries:

a) Book: This function generally would not be required for updating a

book’s status as that data wouldn’t change.

b) member : This will update the data of member like address, course, etc.

by entering member’s number.


4. SEARCH: This function is used to search particular data from the

database.

This function can search for data related to all the

three entities:

a) Book: To search for a particular book, to know whether it is currently

available in library or not. This can be done by entering value in any one

or more fields in the form to perform the search such as title or author

name.

b) Member : This will find out the particular member who possesses the

particular book.

5. ISSUE: This operation is used for issuing a book to a member of the

library. For this operation to be successful the member must meet some

criteria like she should not have issued books to her maximum limit

previously. All these checks are done by software. If the operation is

successful, then the system automatically stores the date of issue and the

due date by which the book must be returned.

a) Member : When a student loans a book, the entry of the book is stored

automatically in the student’s database with the due date of that book.

6. RETURN: Using this operation a member returns the items, which she

loaned, from the library back to it. If the book, which is loaned is not
returned within specified time the member ends up as a defaulter and she

is required to pay fine which is calculated automatically by the software.

b) Member: It will delete the corresponding entry made in members

database.

7. DISPLAY: This is used to display each and every record, i.e. record of

every book, teacher and student in the library.

a) Book: Record of every book, i.e. it’s accession number, author name,

publisher name, etc.

b) Student: Record of every student, i.e. her roll number, course, no of

books issued, etc., who is member of the college library.

8. EXIT: This takes user out of the application.

1. Identify the origin of the information at different level.

2. Identify the expectation of user from computerized system.

3. Analyze the draw back of existing system (manual) system.

WORKING OF PRESENT MANUAL SYSTEM

The staffs of library are involved in the following tasks.

1. Membership process : person have to fill membership form and they

are provided with member id.


DRAWBACKS OF PRESENT SYSTEM

Some of the problems being faced in manual system are as follows:

1. Fast report generation is not possible.

2. Tracing a book is difficult.

3. Information about issue/return of the books are not properly maintained.

4. No central database can be created as information is not available in

database.

PROPOSED SYSTEM

There will be three major components :

1. Stock maintenance.

2. Transaction entry.

3. Reports.

Proposed system provides with following solutions :

1. It provides "better and efficient" service to members.

2. Reduce the workload of employee.

3. Faster retrieval of information about the desired book.

4. Provide facility for proper monitoring reduce paper work and provide

data security.
1) All details will be available on a click Software Building:

In Microsoft Visual Basic, 17forms are maintained in which 16

different forms and 1 menu driven form.

Separate designing and programing is done which can be seen

below in the document.

1. Database:

Three tables are maintained, in the database:

First table is for maintaining the list of Issue of member’s and

Second table is for maintaining detail’s of member’s and Third table is for

maintaining detail’s of books.

2. Crystal report:

Seagate crystal report is maintained in two forms:

First is for maintaining book detail’s memberwise and Second is

for maintaining member detail’s book wise all the detailing, programming,

database and Report’s are described in Text and Print Screen’s.


Data Tables:
DataBace File

BOOKMASTER
ACC_NO BOOK_NAME AUTHOR_NAME PRICE PUB BILL_NO SHOP_ADDRESS D_O_P
002 LET US C YASHWANT 250 BPB 778 SEC-17B,CHD 1/13/2003
005 LET US C YASHWANT 678 BPB 345 SEC-17B,CHD 1/12/2003
006 ORACLE BPB 700 BPB 678 SEC-17B,CHD 2/18/2003
007 JAVA P. KUMAR 670 BPB 666 35-C,CHD 1/12/2003
009 YYYY HJGH 300 FGFG 334 GFGHF 1/12/1990
0088 RRRRRRR LLLLL 200 KKKKKKKK 123 JJJJJ 4/1/2004
3 JJ HH 100 YY 22 56 3/3/2010

FINE
ROLL_NO ACC_NO ISSUE_DATE RETURN_DATE ACT_RET_DATE FINE
14 007 6/3/2003 6/11/2003 6/3/2003 0

REQUIRED
BOOK_NAME AUTHOR_NAME PUB PRICE EDITION_NO
FOXPRO JAYANT BPB 777 8987
ORACLE 8I BPB BPB 789 3456
INTERNET BPB BPB 567 789

SECRECEIVE
ROLL_NO DOR REC_NO MOP AMTRECEIVE REFUND
15 5/30/2003 66 CASH 1000 1000
16 5/30/2003 56 CASH 1000 1000
SECREFUND
ROLL_NO REC_NO DOREFUND MOP REFUNDAMT

STU_MEMBER
FATHER_NAM CONTACT_N BATCH_TI ADDR
ROLL_NO NAME COURSE DOJ ENDDATE
E O MINGS ESS
16 005 LET US C YASHWANT 7/1/2003 7/11/2003
15 0088 RRRRRRR LLLLL 12/27/2004 1/4/2005

TRANSACTION1
ROLL_NO ACC_NO BOOK_NAME AUTHOR_NAME ISSUE_DATE RETURN_DATE
16 005 LET US C YASHWANT 7/1/2003 7/11/2003
15 0088 RRRRRRR LLLLL 12/27/2004 1/4/2005
PROJECT DESIGN

The most creative and challenging of the system life cycle is

system design. The term design describes the final system and the process by

which it is developed. It refers to the technical specifications that will be

applied to implement the candidate system. It also includes the construction of

programs and program testing. They key question here is: How should the

problem be solved?

System design is a solution, a “how to” approach to the creation of

a new system. The term design describes a final system and the process by

which it is developed. It provides the understanding and procedural details

necessary for implementing the system recommended in the feasibility study.

Emphasis on translating the performance requirement into design

specifications. Design goes through both logical and physical stages of

development. Logical design reviews the present physical system, prepares

input and output specification, and makes edit security and control

specifications. The physical design maps out the details of the physical system,

plans the system implementation, devises a test and implementation plan, and

specifies any new hardware and software. Design includes the construction of

programs and program testing. The first step is to determine how the output is

to be produced and in what format.


Second input the data and master files (data bases) have to be

designed to meet the requirement of the proposed output. The operational

phases are handled through program construction and testing, including a list of

programs needed to meet the system’s objectives and complete documentation.

The final report prior to the implementation phase includes procedural flow

charts, record a lay out and workable plan for implementing the candidate

system. Information is personnel, money, hardware, facilities, and their

estimated cost must also be available. At this point, projected cost must be

close to actual costs of implementation. In design phase, forms are formed for

ideal computer output and databases are designed. Databases are consisting of

files, files consist of records, records consist of data items and data items are

consisted of bytes. Database administrator does this job.

System design is a solution, a how to approach to the creation of a

new system, this important phase is composed of several steps. It provides the

understanding and procedural details necessary for implementing the system

recommended in the feasibility study. Stress is on translating performance

requirements into design specification. Design goes through logical physical

stages of development. Logical design reviews the present physical, prepares

input and output specifications.


A schematic ways has to follow to achieve beneficial results at the

end. It involves starting with a vague idea and ultimately starting with a new

system. The design phase is transitioned from user orientated to programmer

database personnel. Various steps are involved in system design. These steps

are as follow:-

1) Problem definition.

2) Input – output specification.

3) Database design.

4) Modular program design.

5) Preparation of source code.

6) Testing and debugging.

7) PROCESS OF DESIGN: -

The system design goes through two phases of development:

Logical and physical design, data flow diagram shows the logical

flow of the system. It basically describes the input system, the database used

and the procedure depicting the flow of data, all in a format that is

understandable to the user. The design covers the following:

1) Review the current physical system and its dataflow. File contents volumes,

frequencies.
2) Prepare output specification: that is determining the format, contents and

frequencies of reports, including terminal specifications and locations.

3) Prepare input specifications: that is format, contents and the most of the

input function.

4) Prepare, edit, control and security specification, which includes specifying

the back procedure, and controls that ensure file integrity.

5) Specific implementation plan.

6) Review benefits, cost, target dates and system constraints.

After logical design, physical design follows. This produces the

working system by defining the design specification that tells the programmer

exactly what the candidate system must do. Physical system consists of the

following steps: -

1) Design the physical system:

a. Specify input and output media.

b. Design the database.

c. Design the physical information flow through the system and a

physical walk through.

2) Plan system implementation:

a. Prepare a conversation schedule.

b. Determine training procedure.


c. Review the test and implementation plan and specify the new

hardware and software.

d. Update benefits, cost, conversation, and system constraints.

Input design

Inaccurate input data are the most common cause of errors in data

processing. Errors entered by data entry operators can be controlled by input

design. Input design is a process of converting user-organized input to a

computer based format. Input data is collected and organized into groups of

similar data. Once identified, appropriate input media is selected for

processing.

Input data

The goal of designing the input data is to make data entry easy as

well as free from errors as possible. In entering data, operators need to know

the following-

1) The space allocated to each field.

2) Field sequence, which must match that in source document.

3) The format in which data fields are entered.

When we approach input data design, we design the source

document that captures the data and then selects the media used to enter them

into the computer.


Source document:

Source data is captured initially on original paper or source

document. Source data is originally on paper, which is called source document.

Source document may be entered into the system from punched cards, from

diskettes or even from a keyboard. A source document may or may not be

retained in the candidate system. Thus, each source document may be

evaluated in terms of:

1) Its continued use in the candidate system.

2) The extent of modification for the candidate system.

3) Replacement by and alternative source document.

The data is collected on simple paper. A source document should

be logical and easy to understand. Each area in the form should be clearly

identified and specify for the user what to write and where to write.

Online Data Entry

This is a modern age of computers where more and more CRT

screens are used for data entry. The numbers of applications that rely on data

entry is too long to list. As terminal price declined and micro computer

becomes popular, entering data through keyboard makes task easy. Online data

entry makes use of a processor that accepts commands data from operator
through a keyboard or a device such as touch sensitive screen or voice input.

The processor analysis the input received.

There are three major forms of entering data into the computer. These are

1) Menu

2) Formatted form

3) Prompt

The entire three major approaches have been incorporated in my

software. All the options in my project have been given through both the menus

and the formatted forms. Whenever any extra data is required from the user or

some error or reminder is to be given to the user, prompts have been used.

Menu:-

A menu is a selected list that simplifies data access or entry.

Instead of remembering what to enter, a user has to choose from the list of

options to instruct the computer what he wishes to do. The main form displays

the whole list utilities provided by the application and the user can choose the

one he or she requires to use.

Formatted forms:-

A formatted form is a pre printed form or a template that requests

the user to enter data in the appropriate locations. It is a filling in the blank type

form. The form, which flashed on the screen as a unit. The cursor is usually
positioned at the first blank. After the user responded by filling in the

appropriate information, the cursor automatically moves to the next line, the

may move the cursor up, down, right and left to carious locations for making

changes in the response.

Prompt:-

In a prompt, the system requests one inquiry at a time asking the

user for a response. The prompt method also allows the user to key questions

that determine the next response of the system.

Output Design

Output is the most important and direct source of information to

the user. Efficient and intelligible output design includes system credibility and

helps user in decision-making. Efficient and intelligible output design should

also improve the system relationship with the user and help in decision-

making. A major form of output is a hard copy from the printer. Printouts

should be designed around the output requirements of the user. The output

devices to consider depends on the factors such as, compatibility of the devices

with the system, response time requirements, expected print quality, and a

number of copies needed.

Building of Project:
Intially, FORM 1 DATA ENTRY FOR NEW BOOKS

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Private Sub Command1_Click()
Adodc1.Refresh
Adodc1.Recordset.AddNew
Text1.SetFocus
End Sub
Private Sub Command2_Click()

Unload Form1
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""

End Sub
Private Sub Command3_Click()
Adodc1.Recordset.Delete
rs.Open "DELETE FROM TRANSACTION1 WHERE ACC_NO='" & Text1.Text & "'",
con, adOpenDynamic, adLockOptimistic
Adodc1.Recordset.Requery
MsgBox "RECORD DELETED", vbInformation, "DATA ENTRY FOR NEW BOOKS"

End Sub

Private Sub Command4_Click()


Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
MsgBox "YOU ARE ON LAST RECORD", vbInformation, "DATA ENTRY FOR NEW
BOOKS"
End If
End Sub

Private Sub Command5_Click()


Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
MsgBox "YOU ARE ON FIRST RECORD", vbInformation, "DATA ENTRY FOR NEW
BOOKS"
End If
End Sub

Private Sub Command6_Click()


Adodc1.Recordset.MoveFirst
End Sub

Private Sub Command7_Click()


'Form1.PrintForm
On Error GoTo ERR
Form1.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form1.Caption
End If

End Sub

Private Sub Command8_Click()


Adodc1.Recordset.MoveLast
End Sub
Private Sub Command9_Click()
Adodc1.Recordset.Update
MsgBox "RECORD SAVE", vbInformation, "DATA ENTRY FOR NEW BOOKS"
End Sub

Private Sub Form_Load()


Label8 = Date
Label8.ForeColor = vbBlue
Label8.FontBold = True
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open App.Path & "\DB2.mdb"
End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form1
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""

End Sub

Private Sub Option1_Click()


If Text1 = "" Then
MsgBox "ACC_NO FIELD SHOULD NOT BE BLANK", vbInformation, "DATA
ENTRY FOR NEW BOOKS"
Text1.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text2 = "" Then
MsgBox "BOOK_NAME FIELD SHOULD NOT BE BLANK", vbInformation, "DATA
ENTRY FOR NEW BOOKS"
Text2.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text3 = "" Then
MsgBox "AUTHOR_NAME FIELD SHOULD NOT BE BLANK", vbInformation,
"DATA ENTRY FOR NEW BOOKS"
Text3.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text4 = "" Then
MsgBox "PRICE FIELD SHOULD NOT BE BLANK", vbInformation, "DATA ENTRY
FOR NEW BOOKS"
Text4.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text5 = "" Then
MsgBox "DATE OF PURCHASE FIELD SHOULD NOT BE BLANK", vbInformation,
"DATA ENTRY FOR NEW BOOKS"
Text5.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf CDate(Text5) > Date Then
MsgBox "DATE SHOULD NOT BE GREATER THAN CURRENT DATE",
vbInformation, "DATA ENTRY FOR NEW BOOKS"
Text5.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
'End If
ElseIf Text6 = "" Then
MsgBox "PUBLISHER NAME FIELD SHOULD NOT BE BLANK", vbInformation,
"DATA ENTRY FOR NEW BOOKS"
Text6.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text7 = "" Then
MsgBox "SHOP ADDRESS FIELD SHOULD NOT BE BLANK", vbInformation,
"DATA ENTRY FOR NEW BOOKS"
Text7.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text8 = "" Then
MsgBox "BILL NO FIELD SHOULD NOT BE BLANK", vbInformation, "DATA
ENTRY FOR NEW BOOKS"
Text8.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
End If
On Error GoTo ERR
Dim a As Variant
rs.Open "Select acc_no from BOOKMASTER WHERE ACC_NO='" & Text1.Text & "'",
con, adOpenDynamic, adLockOptimistic
a = rs!ACC_NO
MsgBox "ACC NO IS ALREADY EXIST", vbInformation, "DATA ENTRY FOR NEW
BOOKS"
Text1.SetFocus
Option1.Value = False
Option2.Value = False

rs.Close
Exit Sub
ERR:
If ERR.Number = 3021 Then
rs.Close
Else
MsgBox ERR.Number
MsgBox ERR.Description
End If

Adodc1.Recordset.Update
MsgBox "RECORD SAVE", vbInformation, "DATA ENTRY FOR NEW BOOKS"
Option1.Value = False
End Sub

Private Sub Option2_Click()


Adodc1.Recordset.CancelUpdate
Option2.Value = False
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("a") And KeyAscii <= Asc("z") Then
MsgBox "YOU CAN'T ENTER SMALL LETTERS", vbInformation, "DATA
ENTRY FOR NEW BOOKS"
KeyAscii = 0
End If
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)


If KeyAscii >= Asc("a") And KeyAscii <= Asc("z") Then
MsgBox "YOU CAN'T ENTER SMALL LETTERS", vbInformation, "DATA
ENTRY FOR NEW BOOKS"
KeyAscii = 0
End If
End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)


If KeyAscii > Asc("a") And KeyAscii < Asc("z") Then
MsgBox "YOU CAN'T ENTER SMALL LETTERS", vbInformation, "DATA
ENTRY FOR NEW BOOKS"
KeyAscii = 0
End If
End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer)


If KeyAscii > Asc("a") And KeyAscii < Asc("z") Then
MsgBox "YOU CAN'T ENTER SMALL LETTERS", vbInformation, "DATA
ENTRY FOR NEW BOOKS"
KeyAscii = 0
ElseIf KeyAscii > Asc("A") And KeyAscii < Asc("Z") Then
MsgBox "YOU CAN'T ENTER CAPITAL LETTERS", vbInformation, "DATA
ENTRY FOR NEW BOOKS"
KeyAscii = 0

End If
End Sub

Private Sub Text4_LostFocus()


If Val(Text4.Text) >= 2000 Then
MsgBox "YOU CAN'T ENTER VALUE GREATER THAN 2000", vbInformation,
"DATA ENTRY FOR NEW BOOKS"
Text4.SetFocus
End If
End Sub

Private Sub Text6_KeyPress(KeyAscii As Integer)


If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Then
MsgBox "YOU CAN'T ENTER NUMERIC VALUES", vbInformation, "DATA
ENTRY FOR NEW BOOKS"
KeyAscii = 0
End If
End Sub

Private Sub Text8_LostFocus()


'Option1.SetFocus
End Sub

FORM 2 BOOKS RETURN STUDENTS


Dim con As ADODB.Connection
Dim rs As ADODB.Recordset
Dim RS1 As ADODB.Recordset

Private Sub Command1_Click()


On Error GoTo ERR
Form2.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form2.Caption
End If
End Sub

Private Sub Command14_Click()


Adodc1.Recordset.Delete
Adodc1.Recordset.Requery
MsgBox "RECORD DELETED", vbInformation, "BOOKS RETURN"
Adodc1.Refresh
Adodc2.Refresh
End Sub

Private Sub Command2_Click()


Adodc1.Refresh
Adodc2.Refresh
Adodc1.Recordset.AddNew
DataCombo3.SetFocus
End Sub

Private Sub Command3_Click()


Adodc1.Recordset.MoveFirst
End Sub

Private Sub Command4_Click()


Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
MsgBox "YOU ARE ON LAST RECORD", vbInformation, "BOOKS RETURN "
End If
End Sub

Private Sub Command5_Click()


Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
MsgBox "YOU ARE ON FIRST RECORD", vbInformation, "BOOKS RETURN "
End If
End Sub

Private Sub Command6_Click()


Adodc1.Recordset.MoveLast
End Sub

Private Sub Command8_Click()


Unload Form2
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub DataCombo3_LostFocus()


On Error GoTo ERR
If DataCombo3 = "" Then
MsgBox "ROLL NO FIELD SHOULD NOT BE BLANK", vbInformation, "BOOKS
RETURN"
DataCombo3.SetFocus
Exit Sub
End If

rs.Open "Select acc_no,ISSUE_Date,return_date from transaction1 where roll_no='" &


DataCombo3.Text & "'", con, adOpenDynamic, adLockOptimistic
Text9.Text = rs!ACC_NO
Text2.Text = rs!ISSUE_DATE
Text1.Text = rs!RETURN_DATE
rs.Close
ERR:
If ERR.Number = 3021 Then
MsgBox "CHOOSE ROLL NO FROM THE LIST ONLY", vbInformation
DataCombo3.SetFocus
'rs.Close

End If

End Sub

Private Sub Form_Load()


Adodc1.Refresh
Adodc2.Refresh
Label9 = Date
Label9.ForeColor = vbBlue
Label9.FontBold = True
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
Set RS1 = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"

End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form2
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Option3_Click()


If Text7 = "" Then
MsgBox "ACTUAL RETURN DATE FIELD SHOULD NOT BE BLANK",
vbInformation, "BOOKS RETURN"
Text7.SetFocus
Option3.Value = False
Option4.Value = False
Exit Sub
ElseIf Text8 = "" Then

MsgBox "FINE FIELD SHOULD NOT BE BLANK", vbInformation, "BOOKS RETURN"


Text8.SetFocus
Option3.Value = False
Option4.Value = False
Exit Sub
End If
Adodc1.Recordset.Update
RS1.Open "DELETE FROM TRANSACTION1 WHERE ROLL_NO='" &
DataCombo3.Text & "'", con, adOpenDynamic, adLockOptimistic

MsgBox "RECORD SAVE", vbInformation, " BOOKS RETURN "


Option3.Value = False

End Sub

Private Sub Option4_Click()


Adodc1.Recordset.CancelUpdate
Option4.Value = False
End Sub

Private Sub Text7_GotFocus()


Text7 = Date
End Sub

Private Sub Text8_GotFocus()


Dim a As Variant
a = DateDiff("D", Text1.Text, Text7.Text)
If a <= 0 Then
Text8.Text = 0
Else
Text8.Text = a * 10
End If
End Sub

FORM 3 DATA ENTRY FOR LIBRARY MEMBERS


Dim con As ADODB.Connection
Dim rs As ADODB.Recordset

Private Sub Command1_Click()


Adodc1.Recordset.AddNew
DataCombo1.SetFocus

End Sub

Private Sub Command2_Click()


Adodc1.Recordset.Delete
Adodc1.Recordset.Requery
MsgBox "RECORD DELETED", vbInformation, "DATA ENTRY FOR STUDENTS"

End Sub

Private Sub Command3_Click()


Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
MsgBox "YOU ARE ON LAST RECORD", vbInformation, "DATA ENTRY FOR
STUDENTS"
End If

End Sub

Private Sub Command4_Click()


Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
MsgBox "YOU ARE ON FIRST RECORD", vbInformation, "DATA ENTRY FOR
STUDENTS"
End If
End Sub

Private Sub Command5_Click()


Adodc1.Recordset.MoveFirst

End Sub

Private Sub Command6_Click()


Adodc1.Recordset.MoveLast

End Sub

Private Sub Command7_Click()


Adodc1.Refresh

Unload Form3
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Command8_Click()

On Error GoTo ERR


Form3.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form3.Caption
End If

End Sub
Private Sub Form_Load()
Label8 = Date
Label8.ForeColor = vbBlue
Label8.FontBold = True
Combo1.AddItem "O LEVEL"
Combo1.AddItem "A LEVEL"
Combo1.AddItem "D.C.A"
Combo1.AddItem "D.C.P"
Combo1.AddItem "A.D.C.P"
Combo1.AddItem "A.D.C.A"
Combo2.AddItem "7.00 A.M TO 9.00 A.M"
Combo2.AddItem "9.00 A.M TO 11.00 A.M"
Combo2.AddItem "11.00 A.M TO 1.00 P.M"
Combo2.AddItem "1.00 P.M TO 3.00 P.M"
Combo2.AddItem "3.00 P.M TO 5.00 P.M"
Combo2.AddItem "5.00 P.M TO 7.00 P.M"
Combo2.AddItem "7.00 P.M TO 9.00 A.M"
Adodc1.Refresh
Adodc2.Refresh
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"

End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form3
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Option1_Click()


If DataCombo1 = "" Then
MsgBox "ROLL_NO FIELD SHOULD NOT BE BLANK", vbInformation, "DATA
ENTRY FOR STUDENTS"
DataCombo1.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text1 = "" Then
MsgBox " STUDENT NAME FIELD SHOULD NOT BE BLANK", vbInformation,
"DATA ENTRY FOR STUDENTS"
Text1.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text2 = "" Then
MsgBox " FATHER NAME FIELD SHOULD NOT BE BLANK", vbInformation,
"DATA ENTRY FOR STUDENTS"
Text2.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text4 = "" Then
MsgBox " CONTACT NO FIELD SHOULD NOT BE BLANK", vbInformation, "DATA
ENTRY FOR STUDENTS"
Text4.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text3 = "" Then
MsgBox " ADDRESS FIELD SHOULD NOT BE BLANK", vbInformation, "DATA
ENTRY FOR STUDENTS"
Text3.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text6 = "" Then
MsgBox " DATE OF JOINING FIELD SHOULD NOT BE BLANK", vbInformation,
"DATA ENTRY FOR STUDENTS"
Text6.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text7 = "" Then
MsgBox " END DATE FIELD SHOULD NOT BE BLANK", vbInformation, "DATA
ENTRY FOR STUDENTS"
Text7.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Combo1 = "" Then
MsgBox " COURSE FIELD SHOULD NOT BE BLANK", vbInformation, "DATA
ENTRY FOR STUDENTS"
Combo1.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Combo2 = "" Then
MsgBox " BATCH TIMINGS FIELD SHOULD NOT BE BLANK", vbInformation,
"DATA ENTRY FOR STUDENTS"
Combo2.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
End If
On Error GoTo ERR
Dim a As Variant
rs.Open "Select ROLL_NO from STU_MEMBER WHERE ROLL_NO='" &
DataCombo1.Text & "'", con, adOpenDynamic, adLockOptimistic
a = rs!ROLL_NO
MsgBox "ROLL NO ALREADY EXIST", vbInformation, "DATA ENTRY FOR
STUDENTS"
DataCombo1.SetFocus
Option1.Value = False
Option2.Value = False
rs.Close
Exit Sub
ERR:
If ERR.Number = 3021 Then
rs.Close
Else
MsgBox ERR.Number
MsgBox ERR.Description
End If

Adodc1.Recordset.Update

MsgBox "RECORD SAVE", vbInformation, "DATA ENTRY FOR STUDENTS"


Option1.Value = False

End Sub

Private Sub Option2_Click()


Adodc1.Recordset.CancelUpdate
Option2.Value = False

End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)


If KeyAscii >= Asc("a") And KeyAscii <= Asc("z") Then
MsgBox "YOU CAN'T ENTER SMALL LETTERS", vbInformation, "DATA
ENTRY FOR STUDENTS"
KeyAscii = 0
End If

End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("a") And KeyAscii <= Asc("z") Then
MsgBox "YOU CAN'T ENTER SMALL LETTERS", vbInformation, "DATA
ENTRY FOR STUDENTS"
KeyAscii = 0
End If

End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer)


If KeyAscii >= Asc("a") And KeyAscii <= Asc("z") Then
MsgBox "YOU CAN'T ENTER SMALL LETTERS", vbInformation, "DATA
ENTRY FOR STUDENTS"
KeyAscii = 0
ElseIf KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Then
MsgBox "YOU CAN'T ENTER CAPITAL LETTERS", vbInformation, "DATA
ENTRY FOR STUDENTS"
KeyAscii = 0

End If
End Sub

Private Sub Text5_KeyPress(KeyAscii As Integer)


If KeyAscii >= Asc("a") And KeyAscii <= Asc("z") Then
MsgBox "YOU CAN'T ENTER SMALL LETTERS", vbInformation, "DATA
ENTRY FOR STUDENTS"
KeyAscii = 0

End If
End Sub
Private Sub Text6_GotFocus()
Text6 = Date

End Sub

Private Sub Text7_GotFocus()


If Combo1 = "O LEVEL" Then
Text7 = DateAdd("YYYY", 1, Date)
ElseIf Combo1 = "A LEVEL" Then
Text7 = DateAdd("YYYY", 1, Date)
ElseIf Combo1 = "D.C.A" Then
Text7 = DateAdd("M", 6, Date)
ElseIf Combo1 = "D.C.P" Then
Text7 = DateAdd("M", 6, Date)
ElseIf Combo1 = "A.D.C.P" Then
Text7 = DateAdd("YYYY", 1, Date)
ElseIf Combo1 = "A.D.C.A" Then
Text7 = DateAdd("YYYY", 1, Date)
Else
Text7 = DateAdd("M", 3, Date)
End If
End Sub

Private Sub Text7_LostFocus()


Option1.SetFocus
End Sub
FORM 4 :BOOKS ISSUE TO STUDENTS

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim RS1 As ADODB.Recordset
Dim RS2 As ADODB.Recordset
Private Sub Command1_Click()
Adodc3.Recordset.AddNew
DataCombo1.SetFocus
End Sub

Private Sub Command10_Click()


Adodc3.Recordset.MovePrevious
If Adodc3.Recordset.BOF Then
Adodc3.Recordset.MoveFirst
MsgBox "YOU ARE ON FIRST RECORD", vbInformation, " BOOKS ISSUE TO
STUDENTS"
End If
End Sub

Private Sub Command11_Click()


Adodc3.Recordset.MoveLast
End Sub
Private Sub Command12_Click()
Unload Form4
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Command13_Click()


Adodc3.Recordset.Delete
Adodc3.Recordset.Requery
MsgBox "RECORD DELETED", vbInformation, "BOOKS ISSUE TO STUDENTS"

End Sub

Private Sub Command2_Click()


On Error GoTo ERR
Form4.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form4.Caption
End If

End Sub

Private Sub Command7_Click()


Adodc3.Recordset.MoveFirst
End Sub

Private Sub Command8_Click()


Unload Form4
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Command9_Click()


Adodc3.Recordset.MoveNext
If Adodc3.Recordset.EOF Then
Adodc3.Recordset.MoveLast
MsgBox "YOU ARE ON LAST RECORD", vbInformation, " BOOKS ISSUE TO
STUDENTS"
End If
End Sub

Private Sub DataCombo2_LostFocus()


On Error GoTo ERR
Dim a As Variant
If DataCombo2 = "" Then
MsgBox "ACC_NO FIELD SHOULD NOT BE BLANK", vbInformation, "BOOKS ISSUE
TO STUDENTS"
DataCombo2.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
End If
rs.Open "Select ACC_NO from TRANSACTION1 WHERE ACC_NO='" &
DataCombo2.Text & "'", con, adOpenDynamic, adLockOptimistic
a = rs!ACC_NO
MsgBox "THIS BOOK IS ALREADY ISSUED", vbInformation, "BOOKS ISSUE TO
STUDENTS"
DataCombo2.SetFocus
rs.Close
Exit Sub
ERR:
If ERR.Number = 3021 Then
rs.Close
Else
MsgBox ERR.Number
MsgBox ERR.Description
End If
End Sub

Private Sub Form_Load()


Label9 = Date
Label9.ForeColor = vbBlue
Label9.FontBold = True
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
Set RS1 = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open App.Path & "\DB2.mdb"
End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form4
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub
Private Sub Option1_Click()
If DataCombo1 = "" Then
MsgBox "ROLL_NO FIELD SHOULD NOT BE BLANK", vbInformation, "BOOKS
ISSUE TO STUDENTS"
DataCombo1.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub

ElseIf Text5 = "" Then


MsgBox " ISSUE DATE FIELD SHOULD NOT BE BLANK", vbInformation, "BOOKS
ISSUE TO STUDENTS"
Text5.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text6 = "" Then
MsgBox " RETURN DATE FIELD SHOULD NOT BE BLANK", vbInformation,
"BOOKS ISSUE TO STUDENTS"
Text6.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
End If
On Error GoTo ERR
Dim a As Variant
rs.Open "Select ROLL_NO from TRANSACTION1 WHERE ROLL_NO='" &
DataCombo1.Text & "'", con, adOpenDynamic, adLockOptimistic
a = rs!ROLL_NO
MsgBox "ROLL NO IS ALREADY EXIST", vbInformation, "BOOKS ISSUE TO
STUDENT"
DataCombo1.SetFocus
Option1.Value = False
Option2.Value = False
rs.Close
Exit Sub
ERR:
If ERR.Number = 3021 Then
rs.Close
Else
MsgBox ERR.Number
MsgBox ERR.Description
End If

Adodc3.Recordset.Update
MsgBox "RECORD SAVE", vbInformation, " BOOKS ISSUE TO STUDENTS"
Option1.Value = False
End Sub

Private Sub Option2_Click()


Adodc3.Recordset.CancelUpdate
Option2.Value = False
End Sub

Private Sub Text3_GotFocus()


rs.Open "Select book_name,AUTHOR_NAME from bookmaster where acc_no='" &
DataCombo2.Text & "'", con, adOpenDynamic, adLockOptimistic
Text3.Text = rs!BOOK_NAME
Text4.Text = rs!AUTHOR_NAME
rs.Close
End Sub

Private Sub Text5_GotFocus()


Text5 = Date
End Sub

Private Sub Text6_GotFocus()


Dim a As Variant
Text6 = Date + 8
a = Weekday(Text5)
If a = 1 Then
Text6 = (Date + 9)
End If
End Sub

Private Sub Text6_LostFocus()


Option1.SetFocus
End Sub
FORM 5: PARTICULAR BOOK INFORMATION

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Private Sub Command1_Click()
rs.Open "SELECT
BOOKMASTER.ACC_NO,BOOKMASTER.BOOK_NAME,BOOKMASTER.AUTHOR_
NAME,PRICE,PUB,D_O_P,BILL_NO,ROLL_NO,ISSUE_DATE,RETURN_DATE FROM
BOOKMASTER,TRANSACTION1 WHERE
BOOKMASTER.ACC_NO=TRANSACTION1.ACC_NO AND
BOOKMASTER.ACC_NO='" & Combo1.Text & "'", con, adOpenDynamic,
adLockOptimistic
Text2.Text = rs!BOOK_NAME
Text3.Text = rs!AUTHOR_NAME
Text4.Text = rs!PRICE
Text5.Text = rs!D_O_P
Text6.Text = rs!PUB
Text8.Text = rs!BILL_NO
Text10.Text = rs!ROLL_NO
Text9.Text = rs!ISSUE_DATE
Text7.Text = rs!RETURN_DATE
rs.Close
End Sub
Private Sub Command2_Click()
Unload Form5
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub
Private Sub Command7_Click()
On Error GoTo ERR
Form5.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form5.Caption
End If

End Sub
Private Sub Form_Load()
Label11 = Date
Label11.ForeColor = vbBlue
Label11.FontBold = True
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"
rs.Open "SELECT
BOOKMASTER.ACC_NO,BOOKMASTER.BOOK_NAME,BOOKMASTER.AUTHOR_
NAME,PRICE,PUB,D_O_P,BILL_NO,ROLL_NO,ISSUE_DATE,RETURN_DATE FROM
BOOKMASTER,TRANSACTION1 WHERE
BOOKMASTER.ACC_NO=TRANSACTION1.ACC_NO", con, adOpenDynamic,
adLockOptimistic
While Not rs.EOF
Combo1.AddItem rs!ACC_NO
rs.MoveNext
Wend
rs.Close
End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form5
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub
FORM 6: AVAILABLE BOOKS IN LIBRARY

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Private Sub Command1_Click()
rs.Open "SELECT
ACC_NO,BOOK_NAME,AUTHOR_NAME,PRICE,PUB,D_O_P,BILL_NO FROM
BOOKMASTER WHERE ACC_NO='" & Combo1.Text & "'", con, adOpenDynamic,
adLockOptimistic
Text2.Text = rs!BOOK_NAME
Text3.Text = rs!AUTHOR_NAME
Text4.Text = rs!PRICE
Text5.Text = rs!D_O_P
Text6.Text = rs!PUB
Text8.Text = rs!BILL_NO
rs.Close
End Sub

Private Sub Command2_Click()


Unload Form6
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Command7_Click()

On Error GoTo ERR


Form6.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form6.Caption
End If

End Sub

Private Sub Form_Load()


Label7 = Date
Label7.ForeColor = vbBlue
Label7.FontBold = True
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"

rs.Open "BOOKMASTER", con, adOpenDynamic, adLockOptimistic, adCmdTable


While Not rs.EOF
Combo1.AddItem rs!ACC_NO
rs.MoveNext
Wend
rs.Close

End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form6
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub
FORM 7: REQUIRED BOOKS IN LIBRARY

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset

Private Sub Command1_Click()


Adodc1.Recordset.AddNew
Text2.SetFocus

End Sub

Private Sub Command2_Click()


Adodc1.Recordset.Delete
Adodc1.Recordset.Requery
MsgBox "RECORD DELETED", vbInformation, "REQUIRED BOOKS IN LIBRARY"

End Sub

Private Sub Command3_Click()


Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
MsgBox "YOU ARE ON LAST RECORD", vbInformation, "REQUIRED BOOKS IN
LIBRARY"
End If
End Sub

Private Sub Command4_Click()


Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
MsgBox "YOU ARE ON FIRST RECORD", vbInformation, "REQUIRED BOOKS IN
LIBRARY"
End If
End Sub

Private Sub Command5_Click()


Adodc1.Recordset.MoveFirst
End Sub

Private Sub Command6_Click()


Adodc1.Recordset.MoveLast
End Sub

Private Sub Command7_Click()


Unload Form7
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""

End Sub

Private Sub Command8_Click()

On Error GoTo ERR


Form7.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form7.Caption
End If

End Sub

Private Sub Form_Load()


Label7 = Date
Label7.ForeColor = vbBlue
Label7.FontBold = True
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"

End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form7
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Option1_Click()


If Text2 = "" Then
MsgBox "BOOK_NAME FIELD SHOULD NOT BE EMPTY", vbInformation,
"REQUIRED BOOKS IN LIBRARY"
Text2.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
Else
If Text3 = "" Then
MsgBox "AUTHOR_NAME FIELD SHOULD NOT BE EMPTY", vbInformation,
"REQUIRED BOOKS IN LIBRARY"
Text3.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
End If
End If
On Error GoTo ERR
Dim a As Variant
rs.Open "Select BOOK_NAME from REQUIRED WHERE BOOK_NAME='" &
Text2.Text & "'", con, adOpenDynamic, adLockOptimistic
a = rs!BOOK_NAME
MsgBox "BOOK ALREADY EXIST", vbOKOnly, "REQUIRED BOOKS IN LIBRARY"
Text2.SetFocus
Option1.Value = False
Option2.Value = False
rs.Close

Exit Sub
ERR:
If ERR.Number = 3021 Then
rs.Close
Else
MsgBox ERR.Number
MsgBox ERR.Description
End If

Adodc1.Recordset.Update
MsgBox "RECORD SAVE", vbInformation, "REQUIRED BOOKS IN LIBRARY"
Option1.Value = False
End Sub

Private Sub Option2_Click()


Adodc1.Recordset.CancelUpdate
Option2.Value = False
End Sub

Private Sub Text1_LostFocus()


Option1.SetFocus
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)


If KeyAscii >= Asc("a") And KeyAscii <= Asc("z") Then
MsgBox "YOU CAN'T ENTER SMALL LETTERS", vbInformation, "REQUIRED
BOOKS IN LIBRARY"
KeyAscii = 0
End If

End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)


If KeyAscii > Asc("a") And KeyAscii < Asc("z") Then
MsgBox "YOU CAN'T ENTER SMALL LETTER", vbInformation, "REQUIRED
BOOKS IN LIBRARY"
KeyAscii = 0
End If

If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Then


MsgBox "YOU CAN'T ENTER NUMERIC VALUES", vbInformation,
"REQUIRED BOOKS IN LIBRARY"
KeyAscii = 0
End If
End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer)


If KeyAscii > Asc("a") And KeyAscii < Asc("z") Then
MsgBox "YOU CAN'T ENTER SMALL LETTER", vbInformation, "REQUIRED
BOOKS IN LIBRARY"
ElseIf KeyAscii > Asc("A") And KeyAscii < Asc("Z") Then
MsgBox "YOU CAN'T ENTER CAPITAL LETTER", vbInformation, "REQUIRED
BOOKS IN LIBRARY"
KeyAscii = 0

End If
End Sub

Private Sub Text4_LostFocus()


If Val(Text4.Text) >= 2000 Then
MsgBox "YOU CAN'T ENTER VALUE GREATER THAN 2000", vbInformation,
"REQUIRED BOOKS IN LIBRARY"
Text4.SetFocus
End If
End Sub

Private Sub Text6_KeyPress(KeyAscii As Integer)


If KeyAscii >= Asc("0") And KeyAscii <= Asc("9") Then
MsgBox "YOU CAN'T ENTER NUMERIC VALUES", vbInformation,
"REQUIRED BOOKS IN LIBRARY"
KeyAscii = 0
End If
End Sub
FORM8: SECURITY RECEIVED FROM STUDENTS

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim RS1 As ADODB.Recordset

Private Sub Command1_Click()


Adodc1.Recordset.AddNew
Text1.SetFocus
End Sub

Private Sub Command10_Click()


Unload Form8
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""

End Sub

Private Sub Command2_Click()


Form8.PrintForm
End Sub
Private Sub Command4_Click()
Adodc1.Recordset.Delete
rs.Open "DELETE FROM STU_MEMBER WHERE ROLL_NO='" & Text1.Text & "'",
con, adOpenDynamic, adLockOptimistic
RS1.Open "DELETE FROM TRANSACTION1 WHERE ROLL_NO='" & Text1.Text &
"'", con, adOpenDynamic, adLockOptimistic
Adodc1.Recordset.Requery
MsgBox "RECORD DELETED", vbInformation, " SECURITY RECEIVE"

End Sub

Private Sub Command5_Click()


Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
MsgBox "YOU ARE ON LAST RECORD", vbInformation, " SECURITY RECEIVE"
End If
End Sub

Private Sub Command6_Click()


Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
MsgBox "YOU ARE ON FIRST RECORD", vbInformation, " SECURITY RECEIVE"
End If
End Sub

Private Sub Command7_Click()


Adodc1.Recordset.MoveFirst
End Sub

Private Sub Command9_Click()


Adodc1.Recordset.MoveLast
End Sub

Private Sub Form_Load()


Label8 = Date
Label8.ForeColor = vbBlue
Label8.FontBold = True
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
Set RS1 = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open App.Path & "\DB2.mdb"
Text9 = "CASH"
Adodc1.Refresh
End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form8
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Option1_Click()


If Text1 = "" Then
MsgBox " ACC_NO FIELD SHOULD NOT BE BLANK", vbInformation, "SECURITY
RECEIVE"
Text1.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text3 = "" Then
MsgBox " RECIEPT NO FIELD SHOULD NOT BE BLANK", vbInformation,
"SECURITY RECEIVE"
Text3.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text4 = "" Then
MsgBox " DATE OF RECEIVED FIELD SHOULD NOT BE BLANK", vbInformation,
"SECURITY RECEIVE"
Text3.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text5 = "" Then
MsgBox "REFUND FIELD SHOULD NOT BE BLANK", vbInformation, "SECURITY
RECEIVE"
Text5.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text9 = "" Then
MsgBox "MODE OF PAYMENT FIELD SHOULD NOT BE BLANK", vbInformation,
"SECURITY RECEIVE"
Text9.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
ElseIf Text10 = "" Then
MsgBox " AMOUNT RECEIVED FIELD SHOULD NOT BE BLANK", vbInformation,
"SECURITY RECEIVE"
Text3.SetFocus
Option1.Value = False
Option2.Value = False
Exit Sub
End If
On Error GoTo ERR
Dim a As Variant
rs.Open "Select ROLL_NO from secreceive WHERE ROLL_NO='" & Text1.Text & "'",
con, adOpenDynamic, adLockOptimistic
a = rs!ROLL_NO
MsgBox "ROLL NO IS ALREADY EXIST", vbInformation, "SECURITY RECEIVE"
Text1.SetFocus
Option1.Value = False
Option2.Value = False
rs.Close
Exit Sub
ERR:
If ERR.Number = 3021 Then
rs.Close
Else
MsgBox ERR.Number
MsgBox ERR.Description
End If
Adodc1.Recordset.Update
MsgBox "RECORD SAVE", vbInformation, " SECURITY RECEIVE"
Option1.Value = False
End Sub

Private Sub Option2_Click()


Adodc1.Recordset.CancelUpdate
Option2.Value = False
End Sub

Private Sub Text10_GotFocus()


Text10.Text = 1000
Text10.Locked = True

End Sub
Private Sub Text2_GotFocus()
Text2.Text = 1000
Text2.Locked = True

End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
If KeyAscii >= Asc("a") And KeyAscii <= Asc("z") Then
MsgBox "YOU CAN'T ENTER SMALL LETTERS", vbInformation,
Form8.Caption
KeyAscii = 0
ElseIf KeyAscii >= Asc("A") And KeyAscii <= Asc("Z") Then
MsgBox "YOU CAN'T ENTER CAPITAL LETTERS", vbInformation,
Form8.Caption
KeyAscii = 0

End If

End Sub

Private Sub Text3_LostFocus()


On Error GoTo ERR
Dim a As Variant
rs.Open "Select rec_no from secreceive WHERE rec_no=" & Text3.Text, con,
adOpenDynamic, adLockOptimistic
a = rs!REC_NO
MsgBox "RECEIPT NO IS ALREADY EXIST", vbInformation, "SECURITY RECEIVE"
Text3.SetFocus
Option1.Value = False
rs.Close
Exit Sub
ERR:
If ERR.Number = 3021 Then
rs.Close
End If

End Sub

Private Sub Text4_GotFocus()


Text4 = Date
Text4.Locked = True
End Sub

Private Sub Text5_GotFocus()


Text5.Text = 1000
Text5.Locked = True
End Sub

Private Sub Text6_GotFocus()


Text6 = Date
Text6.Locked = True
End Sub

Private Sub Text5_LostFocus()


Option1.SetFocus
End Sub

Private Sub Text9_GotFocus()


Text9 = "CASH"
End Sub
FORM9: QUERY ABOUT A PARTICULAR BOOK

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim a As Integer
Private Sub Command1_Click()
On Error GoTo ERR
If Combo1 = "" Then
MsgBox "BOOK NAME FIELD SHOULD NOT BE BLANK", vbInformation,
Form9.Caption
Combo1.SetFocus
End If
Dim A1 As Integer
A1 = 0
For i = 1 To (a - 1)
MSG.Row = i
For j = 0 To 7
MSG.Col = j
MSG.Text = ""
Next
Next
rs.Open "select * from BOOKMASTER where BOOK_NAME='" & Combo1.Text & "'
ORDER BY ACC_NO", con, adOpenDynamic, adLockOptimistic
While Not rs.EOF
A1 = A1 + 1
rs.MoveNext
Wend
rs.MoveFirst
For i = 1 To A1
MSG.Row = i
MSG.Col = 0
MSG.Text = rs!ACC_NO
MSG.Col = 1
MSG.Text = rs!BOOK_NAME
MSG.Col = 2
MSG.Text = rs!AUTHOR_NAME
MSG.Col = 3
MSG.Text = rs!PRICE
MSG.Col = 4
MSG.Text = rs!PUB
MSG.Col = 5
MSG.Text = rs!BILL_NO
MSG.Col = 6
MSG.Text = rs!SHOP_ADDRESS
MSG.Col = 7
MSG.Text = rs!D_O_P
rs.MoveNext
Next
rs.Close
ERR:
If ERR.Number = 3021 Then
rs.Close
End If

End Sub

Private Sub Command2_Click()


Unload Form9
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""

End Sub
Private Sub Command3_Click()
On Error GoTo ERR
Form9.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form9.Caption
End If
End Sub

Private Sub Form_Load()


Label3 = Date
Label3.ForeColor = vbBlue
Label3.FontBold = True
a=0
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"

rs.Open "select DISTINCT BOOK_NAME from BOOKMASTER", con, adOpenDynamic,


adLockOptimistic
While Not rs.EOF
Combo1.AddItem rs!BOOK_NAME
rs.MoveNext
Wend
rs.Close

rs.Open "SELECT * FROM BOOKMASTER ORDER BY ACC_NO", con,


adOpenDynamic, adLockOptimistic
While Not rs.EOF
a=a+1
rs.MoveNext
Wend
rs.Close
a=a+1
MSG.Rows = a
MSG.Row = 0

MSG.Col = 0
MSG.Text = "ACC NO"
MSG.Col = 1
MSG.Text = "BOOK NAME"
MSG.Col = 2
MSG.Text = "AUTHOR NAME"
MSG.Col = 3
MSG.Text = "PRICE"
MSG.Col = 4
MSG.Text = "PUBLISHER"
MSG.Col = 5
MSG.Text = "BILL NO"
MSG.Col = 6
MSG.Text = "SHOP ADDRESS"
MSG.Col = 7
MSG.Text = "DATE OF PURCHASE"
End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form9
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub
FORM10: QUERY ABOUT THE BOOKS ACCORDING TO DATES

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim a As Integer
Private Sub Command1_Click()
If Text1 = "" Then
MsgBox "FIRST DATE FIELD SHOULD NOT BE BLANK", vbInformation, "QUERY
WITH DATE OF ISSUE"
Text1.SetFocus
Exit Sub
ElseIf Text2 = "" Then
MsgBox "SECOND DATE FIELD SHOULD NOT BE BLANK", vbInformation, "QUERY
WITH DATE OF ISSUE"
Text2.SetFocus
Exit Sub
ElseIf CDate(Text2) > Date Then
MsgBox "DATE SHOULD NOT BE GREATER THAN CURRENT DATE", vbInformation,
Form10.Caption
Text2.SetFocus
Exit Sub
ElseIf CDate(Text1) > Date Then
MsgBox "DATE SHOULD NOT BE GREATER THAN CURRENT DATE", vbInformation,
Form10.Caption
Text1.SetFocus
Exit Sub
End If
Dim A1 As Integer
A1 = 0
For i = 1 To (a - 1)
MSG.Row = i
For j = 0 To 5
MSG.Col = j
MSG.Text = ""
Next
Next
rs.Open "select roll_no,acc_no,book_name,author_name,issue_date,return_date from
TRANSACTION1 where ISSUE_DATE>=#" & Text1.Text & "#AND ISSUE_DATE<=#"
& Text2.Text & "# ORDER BY ROLL_NO,ACC_NO", con, adOpenDynamic,
adLockOptimistic
While Not rs.EOF
A1 = A1 + 1
rs.MoveNext
Wend
rs.MoveFirst
For i = 1 To A1
MSG.Row = i
MSG.Col = 0
MSG.Text = rs!ROLL_NO
MSG.Col = 1
MSG.Text = rs!ACC_NO
MSG.Col = 2
MSG.Text = rs!BOOK_NAME
MSG.Col = 3
MSG.Text = rs!AUTHOR_NAME
MSG.Col = 4
MSG.Text = rs!ISSUE_DATE
MSG.Col = 5
MSG.Text = rs!RETURN_DATE
rs.MoveNext
Next
rs.Close

End Sub

Private Sub Command2_Click()


Unload Form10
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""

End Sub

Private Sub Command3_Click()

On Error GoTo ERR


Form10.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form10.Caption
End If

End Sub

Private Sub Form_Load()


Label2 = Date
Label2.ForeColor = vbBlue
Label2.FontBold = True
a=0
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"

rs.Open "SELECT
ROLL_NO,ACC_NO,BOOK_NAME,AUTHOR_NAME,ISSUE_DATE,RETURN_DATE
FROM TRANSACTION1 ORDER BY ROLL_NO,ACC_NO", con, adOpenDynamic,
adLockOptimistic
While Not rs.EOF
a=a+1
rs.MoveNext
Wend
rs.Close
a=a+1
MSG.Rows = a
MSG.Row = 0
MSG.Col = 0
MSG.Text = "ROLL NO"
MSG.Col = 1
MSG.Text = "ACC NO"
MSG.Col = 2
MSG.Text = "BOOK NAME"
MSG.Col = 3
MSG.Text = "AUTHOR NAME"
MSG.Col = 4
MSG.Text = "ISSUE DATE"
MSG.Col = 5
MSG.Text = "RETURN DATE"

End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form10
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub
FORM11: QUERY ABOUT ISSUED BOOKS ACCORDING TO ROLL NO

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim a As Integer

Private Sub Command1_Click()


On Error GoTo ERR
If Combo1 = "" Then
MsgBox "ROLL NO FIELD SHOULD NOT BE BLANK", vbInformation, Form11.Caption
Combo1.SetFocus
End If

Dim A1 As Integer
A1 = 0
For i = 1 To (a - 1)
MSG.Row = i
For j = 0 To 5
MSG.Col = j
MSG.Text = ""
Next
Next
rs.Open "select * from TRANSACTION1 where ROLL_NO='" & Combo1.Text & "'", con,
adOpenDynamic, adLockOptimistic
While Not rs.EOF
A1 = A1 + 1
rs.MoveNext
Wend
rs.MoveFirst
For i = 1 To A1
MSG.Row = i
MSG.Col = 0
MSG.Text = rs!ROLL_NO
MSG.Col = 1
MSG.Text = rs!ACC_NO
MSG.Col = 2
MSG.Text = rs!BOOK_NAME
MSG.Col = 3
MSG.Text = rs!AUTHOR_NAME
MSG.Col = 4
MSG.Text = rs!ISSUE_DATE
MSG.Col = 5
MSG.Text = rs!RETURN_DATE
rs.MoveNext
Next
rs.Close
ERR:
If ERR.Number = 3021 Then
rs.Close
End If

End Sub

Private Sub Command2_Click()


Unload Form11
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""

End Sub

Private Sub Command3_Click()


On Error GoTo ERR
Form11.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form11.Caption
End If
End Sub

Private Sub Form_Load()


Label2 = Date
Label2.ForeColor = vbBlue
Label2.FontBold = True
a=0
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset

con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"

rs.Open "select roll_no from transaction1 order by roll_no", con, adOpenDynamic,


adLockOptimistic
While Not rs.EOF
Combo1.AddItem rs!ROLL_NO
rs.MoveNext
Wend
rs.Close

rs.Open "SELECT
ROLL_NO,ACC_NO,BOOK_NAME,AUTHOR_NAME,ISSUE_DATE,RETURN_DATE
FROM TRANSACTION1", con, adOpenDynamic, adLockOptimistic
While Not rs.EOF
a=a+1
rs.MoveNext
Wend
rs.Close
a=a+1
MSG.Rows = a
MSG.Row = 0
MSG.Col = 0
MSG.Text = "ROLL NO"
MSG.Col = 1
MSG.Text = "ACC NO"
MSG.Col = 2
MSG.Text = "BOOK NAME"
MSG.Col = 3
MSG.Text = "AUTHOR NAME"
MSG.Col = 4
MSG.Text = "ISSUE DATE"
MSG.Col = 5
MSG.Text = "RETURN DATE"
End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form11
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub
FORM12: QUERY ABOUT THE BOOKS ACCORDING TO AUTHOR NAME

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim a As Integer

Private Sub Command1_Click()


On Error GoTo ERR
If Combo1 = "" Then
MsgBox "AUTHOR NAME FIELD SHOULD NOT BE BLANK", vbInformation,
Form12.Caption
Combo1.SetFocus
End If

Dim A1 As Integer
A1 = 0
For i = 1 To (a - 1)
MSG.Row = i
For j = 0 To 7
MSG.Col = j
MSG.Text = ""
Next
Next
rs.Open "select * from BOOKMASTER where AUTHOR_NAME='" & Combo1.Text &
"'ORDER BY AUTHOR_NAME,ACC_NO", con, adOpenDynamic, adLockOptimistic
While Not rs.EOF
A1 = A1 + 1
rs.MoveNext
Wend
rs.MoveFirst
For i = 1 To A1
MSG.Row = i
MSG.Col = 0
MSG.Text = rs!AUTHOR_NAME
MSG.Col = 1
MSG.Text = rs!ACC_NO
MSG.Col = 2
MSG.Text = rs!BOOK_NAME
MSG.Col = 3
MSG.Text = rs!PRICE
MSG.Col = 4
MSG.Text = rs!PUB
MSG.Col = 5
MSG.Text = rs!BILL_NO
MSG.Col = 6
MSG.Text = rs!SHOP_ADDRESS
MSG.Col = 7
MSG.Text = rs!D_O_P
rs.MoveNext
Next
rs.Close

rs.Open "select AUTHOR_NAME from BOOKMASTER where AUTHOR_NAME='" &


Combo1.Text & "'", con, adOpenDynamic, adLockOptimistic
MSG.Row = 1
MSG.Col = 0
MSG.Text = rs!AUTHOR_NAME
rs.Close

ERR:
If ERR.Number = 3021 Then
rs.Close
End If

End Sub

Private Sub Command2_Click()


Unload Form12
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""

End Sub

Private Sub Command3_Click()

On Error GoTo ERR


Form12.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form12.Caption
End If

End Sub

Private Sub Form_Load()


Label2 = Date
Label2.ForeColor = vbBlue
Label2.FontBold = True
a=0
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"

rs.Open "select DISTINCT AUTHOR_NAME from BOOKMASTER", con,


adOpenDynamic, adLockOptimistic
While Not rs.EOF
Combo1.AddItem rs!AUTHOR_NAME
rs.MoveNext
Wend
rs.Close

rs.Open "SELECT
AUTHOR_NAME,BOOK_NAME,ACC_NO,PRICE,PUB,BILL_NO,SHOP_ADDRESS,D
_O_P FROM BOOKMASTER ORDER BY AUTHOR_NAME,ACC_NO", con,
adOpenDynamic, adLockOptimistic
While Not rs.EOF
a=a+1
rs.MoveNext
Wend
rs.Close
a=a+1
MSG.Rows = a
MSG.Row = 0
MSG.Col = 0
MSG.Text = "AUTHOR NAME"
MSG.Col = 1
MSG.Text = "ACC NO"
MSG.Col = 2
MSG.Text = "BOOK NAME"
MSG.Col = 3
MSG.Text = "PRICE"
MSG.Col = 4
MSG.Text = "PUBLISHER"
MSG.Col = 5
MSG.Text = "BILL NO"
MSG.Col = 6
MSG.Text = "SHOP ADDRESS"
MSG.Col = 7
MSG.Text = "DATE OF PURCHASE"

End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form11
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub
FORM13: QUERY ABOUT THE ACCORDING TO PUBLISHER NAME

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim a As Integer

Private Sub Command1_Click()


On Error GoTo ERR
If Combo1 = "" Then
MsgBox "PUBLISHER NAME FIELD SHOULD NOT BE BLANK", vbInformation,
Form13.Caption
Combo1.SetFocus
End If

Dim A1 As Integer
A1 = 0
For i = 1 To (a - 1)
MSG.Row = i
For j = 0 To 7
MSG.Col = j
MSG.Text = ""
Next
Next
rs.Open "select * from BOOKMASTER where PUB='" & Combo1.Text & "'ORDER BY
ACC_NO", con, adOpenDynamic, adLockOptimistic
While Not rs.EOF
A1 = A1 + 1
rs.MoveNext
Wend
rs.MoveFirst
For i = 1 To A1
MSG.Row = i
MSG.Col = 0
MSG.Text = rs!ACC_NO
MSG.Col = 1
MSG.Text = rs!BOOK_NAME
MSG.Col = 2
MSG.Text = rs!AUTHOR_NAME
MSG.Col = 3
MSG.Text = rs!PRICE
MSG.Col = 4
MSG.Text = rs!PUB
MSG.Col = 5
MSG.Text = rs!BILL_NO
MSG.Col = 6
MSG.Text = rs!SHOP_ADDRESS
MSG.Col = 7
MSG.Text = rs!D_O_P
rs.MoveNext
Next
rs.Close

ERR:
If ERR.Number = 3021 Then
rs.Close
End If

End Sub

Private Sub Command2_Click()


Unload Form13
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""

End Sub
Private Sub Command3_Click()

On Error GoTo ERR


Form13.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form13.Caption
End If

End Sub

Private Sub Form_Load()


Label2 = Date
Label2.ForeColor = vbBlue
Label2.FontBold = True
a=0
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset

con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"

rs.Open "select DISTINCT PUB from BOOKMASTER", con, adOpenDynamic,


adLockOptimistic
While Not rs.EOF
Combo1.AddItem rs!PUB
rs.MoveNext
Wend
rs.Close

rs.Open "SELECT * FROM BOOKMASTER ORDER BY ACC_NO", con,


adOpenDynamic, adLockOptimistic
While Not rs.EOF
a=a+1
rs.MoveNext
Wend
rs.Close
a=a+1
MSG.Rows = a
MSG.Row = 0

MSG.Col = 0
MSG.Text = "ACC NO"
MSG.Col = 1
MSG.Text = "BOOK NAME"
MSG.Col = 2
MSG.Text = "AUTHOR NAME"
MSG.Col = 3
MSG.Text = "PRICE"
MSG.Col = 4
MSG.Text = "PUBLISHER"
MSG.Col = 5
MSG.Text = "BILL NO"
MSG.Col = 6
MSG.Text = "SHOP ADDRESS"
MSG.Col = 7
MSG.Text = "DATE OF PURCHASE"

End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form13
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub
FORM14 :QUERY ABOUT THE BOOK ISSUED OR NOT

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim a As Integer

Private Sub Command1_Click()


On Error GoTo ERR
If Combo1 = "" Then
MsgBox "BOOK NAME FIELD SHOULD NOT BE BLANK", vbInformation,
Form14.Caption
Combo1.SetFocus
End If

Dim A1 As Integer
A1 = 0
For i = 1 To (a - 1)
MSG.Row = i
For j = 0 To 8
MSG.Col = j
MSG.Text = ""
Next
Next

rs.Open "SELECT
TRANSACTION1.ROLL_NO,NAME,COURSE,ACC_NO,BOOK_NAME,AUTHOR_NA
ME,ISSUE_DATE,RETURN_DATE,BATCH_TIMINGS FROM
TRANSACTION1,STU_MEMBER WHERE
TRANSACTION1.ROLL_NO=STU_MEMBER.ROLL_NO AND BOOK_NAME='" &
Combo1.Text & "'", con, adOpenDynamic, adLockOptimistic
While Not rs.EOF
A1 = A1 + 1
rs.MoveNext
Wend
rs.MoveFirst
For i = 1 To A1
MSG.Row = i
MSG.Col = 0
MSG.Text = rs!ROLL_NO
MSG.Col = 1
MSG.Text = rs!Name
MSG.Col = 2
MSG.Text = rs!COURSE
MSG.Col = 3
MSG.Text = rs!ACC_NO
MSG.Col = 4
MSG.Text = rs!BOOK_NAME
MSG.Col = 5
MSG.Text = rs!AUTHOR_NAME
MSG.Col = 6

MSG.Text = rs!ISSUE_DATE
MSG.Col = 7
MSG.Text = rs!RETURN_DATE
MSG.Col = 8
MSG.Text = rs!BATCH_TIMINGS
rs.MoveNext
Next
rs.Close
ERR:
If ERR.Number = 3021 Then
rs.Close
End If

End Sub

Private Sub Command2_Click()


Unload Form14
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Command3_Click()

On Error GoTo ERR


Form14.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form14.Caption
End If

End Sub

Private Sub Form_Load()


Label2 = Date
Label2.ForeColor = vbBlue
Label2.FontBold = True
a=0
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset

con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"
rs.Open "select DISTINCT BOOK_NAME from BOOKMASTER", con, adOpenDynamic,
adLockOptimistic
While Not rs.EOF
Combo1.AddItem rs!BOOK_NAME
rs.MoveNext
Wend
rs.Close

rs.Open "SELECT TRANSACTION1.ROLL_NO,NAME,


COURSE,ACC_NO,BOOK_NAME,AUTHOR_NAME,ISSUE_DATE,RETURN_DATE,B
ATCH_TIMINGS FROM TRANSACTION1,STU_MEMBER WHERE
TRANSACTION1.ROLL_NO=STU_MEMBER.ROLL_NO", con, adOpenDynamic,
adLockOptimistic
While Not rs.EOF
a=a+1
rs.MoveNext
Wend
rs.Close
a=a+1
MSG.Rows = a
MSG.Row = 0
MSG.Col = 0
MSG.Text = "ROLL NO"
MSG.Col = 1
MSG.Text = "NAME"
MSG.Col = 2
MSG.Text = "COURSE"
MSG.Col = 3
MSG.Text = "ACC NO"
MSG.Col = 4
MSG.Text = "BOOK NAME"
MSG.Col = 5
MSG.Text = "AUTHOR NAME"
MSG.Col = 6
MSG.Text = "ISSUE DATE"
MSG.Col = 7
MSG.Text = "RETURN DATE"
MSG.Col = 8
MSG.Text = "BATCH TIMINGS"
End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form14
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub
FORM15: QUERY ABOUT NO OF A PARTICULAR BOOK

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim a As Integer

Private Sub Command1_Click()


On Error GoTo ERR
If Combo1 = "" Then
MsgBox "BOOK NAME FIELD SHOULD NOT BE BLANK", vbInformation,
Form15.Caption
Combo1.SetFocus
End If

Dim A1 As Integer
A1 = 0
For i = 1 To (a - 1)
MSG.Row = i
For j = 0 To 3
MSG.Col = j
MSG.Text = ""
Next
Next

rs.Open "select book_name,author_name,pub,count(book_name) as COPIES from


BOOKMASTER where BOOK_NAME='" & Combo1.Text & "' group by
book_name,author_name,pub", con, adOpenDynamic, adLockOptimistic
While Not rs.EOF
A1 = A1 + 1
rs.MoveNext
Wend
rs.MoveFirst
For i = 1 To A1
MSG.Row = i

MSG.Col = 0
MSG.Text = rs!BOOK_NAME
MSG.Col = 1
MSG.Text = rs!AUTHOR_NAME
MSG.Col = 2
MSG.Text = rs!PUB
MSG.Col = 3
MSG.Text = rs!Copies
rs.MoveNext
Next
rs.Close

rs.Open "select BOOK_NAME from BOOKMASTER where BOOK_NAME='" &


Combo1.Text & "'", con, adOpenDynamic, adLockOptimistic
MSG.Row = 1
MSG.Col = 0
MSG.Text = rs!BOOK_NAME
rs.Close
ERR:
If ERR.Number = 3021 Then
rs.Close
End If

End Sub

Private Sub Command2_Click()


Unload Form15
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Command3_Click()


On Error GoTo ERR
Form15.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form15.Caption
End If

End Sub

Private Sub Form_Load()


Label2 = Date
Label2.ForeColor = vbBlue
Label2.FontBold = True
a=0
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"

rs.Open "select distinct BOOK_NAME from BOOKMASTER", con, adOpenDynamic,


adLockOptimistic
While Not rs.EOF
Combo1.AddItem rs!BOOK_NAME
rs.MoveNext
Wend
rs.Close

rs.Open "SELECT BOOK_NAME,AUTHOR_NAME,PUB,COUNT(BOOK_NAME)as


'COPIES' FROM BOOKMASTER GROUP BY BOOK_NAME,AUTHOR_NAME,PUB",
con, adOpenDynamic, adLockOptimistic
While Not rs.EOF
a=a+1
rs.MoveNext
Wend
rs.Close
a=a+1
MSG.Rows = a
MSG.Row = 0
MSG.Col = 0
MSG.Text = "BOOK NAME"
MSG.Col = 1
MSG.Text = "AUTHOR NAME"
MSG.Col = 2
MSG.Text = "PUB"
MSG.Col = 3
MSG.Text = "NO OF COPIES"
End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form15
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub
FORM16: LIBRARY SECURITY REFUND

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim RS1 As ADODB.Recordset
Dim RS2 As ADODB.Recordset

Private Sub Command1_Click()


On Error GoTo ERR
Form16.PrintForm
ERR:
If ERR.Number = 482 Then
MsgBox "PRINTER NOT AVAILABLE", vbInformation, Form16.Caption
End If

End Sub

Private Sub Command10_Click()


Unload Form16
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Command2_Click()


Adodc1.Refresh
Adodc2.Refresh
Adodc1.Recordset.AddNew
DataCombo1.SetFocus
End Sub

Private Sub Command4_Click()


Adodc1.Recordset.Delete
Adodc1.Recordset.Requery
MsgBox "RECORD DELETED", vbInformation, "SECURITY REFUND"
End Sub

Private Sub Command5_Click()


Adodc1.Recordset.MoveNext
If Adodc1.Recordset.EOF Then
Adodc1.Recordset.MoveLast
MsgBox "YOU ARE ON LAST RECORD", vbInformation, "SECURITY REFUND"
End If
End Sub

Private Sub Command6_Click()


Adodc1.Recordset.MovePrevious
If Adodc1.Recordset.BOF Then
Adodc1.Recordset.MoveFirst
MsgBox "YOU ARE FIRST RECORD", vbInformation, "SECURITY REFUND"
End If
End Sub

Private Sub Command7_Click()


Adodc1.Recordset.MoveFirst
End Sub

Private Sub Command9_Click()


Adodc1.Recordset.MoveLast
End Sub
Private Sub DataCombo1_LostFocus()
On Error GoTo ERR
If DataCombo1 = "" Then
MsgBox "ROLL NO FIELD SHOULD NOT BE BLANK", vbInformation, "SECURITY
REFUND"
DataCombo1.SetFocus
Exit Sub
End If

rs.Open "Select REC_NO,DOR,REFUND,MOP from SECRECEIVE where roll_no='" &


DataCombo1.Text & "'", con, adOpenDynamic, adLockOptimistic
Text8.Text = rs!REC_NO
Text6.Text = rs!DOR
Text2.Text = rs!REFUND
Text7.Text = rs!MOP
rs.Close
ERR:
If ERR.Number = 3021 Then
MsgBox "CHOOSE ROLL NO FROM THE LIST ONLY", vbInformation
DataCombo1.SetFocus
rs.Close

End If

End Sub

Private Sub Form_Load()


Adodc1.Refresh
Adodc2.Refresh
Label8 = Date
Label8.ForeColor = vbBlue
Label8.FontBold = True
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
Set RS1 = New ADODB.Recordset
Set RS2 = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"
End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form16
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Option1_Click()


Adodc1.Recordset.Update
RS1.Open "DELETE FROM STU_MEMBER WHERE ROLL_NO= '" &
DataCombo1.Text & "'", con, adOpenDynamic, adLockOptimistic
rs.Open "DELETE FROM SECRECEIVE WHERE ROLL_NO='" & DataCombo1.Text &
"'", con, adOpenDynamic, adLockOptimistic
RS2.Open "DELETE FROM TRANSACTION1 WHERE ROLL_NO='" &
DataCombo1.Text & "'", con, adOpenDynamic, adLockOptimistic
MsgBox "RECORD SAVE", vbInformation, "SECURITY REFUND "
Option1.Value = False
End Sub

Private Sub Option2_Click()


Adodc1.Recordset.CancelUpdate
Option2.Value = False
End Sub

Private Sub Text6_GotFocus()


Text6 = Date
End Sub
FORM17: PASSWORD SCREEN FOR LIBRARY MANAGEMENT SYSTEM

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim RS1 As ADODB.Recordset
Private Sub Command1_Click()
Dim a As Variant
'On Error GoTo ERR
Set rs = New ADODB.Recordset
rs.Open "Select P1 from P1 WHERE P1='" & Text1.Text & "'", con, adOpenDynamic,
adLockOptimistic
a = rs!P1
A1:
If Text1 = a Then
MDIForm1.Show
Unload Form17
'rs.Close
Else
MsgBox "UNAUTHORISED USER"
Text1 = ""
Text1.SetFocus
Exit Sub
End If
ERR:
If ERR.Number = 3021 Then
'rs.Close
'Text1.SetFocus
GoTo A1
End If

End Sub

Private Sub Command2_Click()


If Text1 = "" Then
MsgBox "PASSWORD FIELD SHOULD NOT BE BLANK", vbInformation,
"PASSWORD SCREEN"
Text1.SetFocus
Exit Sub
End If
rs.Open "INSERT INTO P1 VALUES('" & Text1.Text & "')", con, adOpenDynamic,
adLockOptimistic
MsgBox "YOUR PASSWORD HAS BEEN CHANGED", vbInformation, "PASSWORD
SCREEN"

End Sub

Private Sub Command3_Click()


End
End Sub

Private Sub Form_Load()


Label3 = Date
Label3.ForeColor = vbBlue
Label3.FontBold = True

Text1 = ""
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
Set RS1 = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open App.Path & "\DB2.mdb"

End Sub
FROM18:CHANGE PASSWORD

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim RS1 As ADODB.Recordset
Private Sub Command1_Click()

If Text2 = "" Then


MsgBox "PASSWORD FIELD SHOULD NOT BE BLANK", vbInformation,
"PASSWORD SCREEN"
Text2.SetFocus
Exit Sub
End If
rs.Open "INSERT INTO P1 VALUES('" & Text2.Text & "')", con, adOpenDynamic,
adLockOptimistic
MsgBox "YOUR PASSWORD HAS BEEN CHANGED", vbInformation, "PASSWORD
SCREEN"

End Sub

Private Sub Command2_Click()


Unload Form18
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Form_Load()


Label3 = Date
Label3.ForeColor = vbBlue
Label3.FontBold = True
Set con = New ADODB.Connection
Set rs = New ADODB.Recordset
Set RS1 = New ADODB.Recordset
con.Provider = "Microsoft.Jet.OLEDB.4.0"
con.Open "D:\LIBRARY MANAGEMENT\DB2.mdb"
End Sub

Private Sub Form_Unload(Cancel As Integer)


Unload Form18
MDIForm1.Show
MDIForm1.StatusBar2.Panels(2) = ""
End Sub

Private Sub Text1_LostFocus()


If Text1 = "" Then
MsgBox "PASSWORD FIELD SHOULD NOT BE BLANK", vbInformation,
"PASSWORD SCREEN"
Text1.SetFocus
Exit Sub
End If
Dim a As Variant
On Error GoTo ERR
rs.Open "Select P1 from P1 WHERE P1='" & Text1.Text & "'", con, adOpenDynamic,
adLockOptimistic
a = rs!P1
A1:
If Text1 = a Then
rs.Close
rs.Open "DELETE FROM P1", con, adOpenDynamic, adLockOptimistic
Text2.SetFocus
Else
MsgBox "UNAUTHORISED USER"
Text1 = ""
Text1.SetFocus
Exit Sub
End If

ERR:
If ERR.Number = 3021 Then
rs.Close
Text1.SetFocus
GoTo A1
End If
End Sub
MDI FORM

Dim con As ADODB.Connection


Dim rs As ADODB.Recordset
Dim RS1 As ADODB.Recordset

Private Sub AUTHOR_Click()


Load Form12
Form12.Show
MDIForm1.StatusBar2.Panels(2) = Form12.Caption
End Sub

Private Sub AVAILABLE_Click()


Load Form6
Form6.Show
MDIForm1.StatusBar2.Panels(2) = Form6.Caption
End Sub

Private Sub AVAILABLE1_Click()


Project1.DataReport2.Refresh
Load DataReport2
DataReport2.Show
MDIForm1.StatusBar2.Panels(2) = DataReport2.Caption
End Sub
Private Sub BOOK1_Click()
Load Form9
Form9.Show
MDIForm1.StatusBar2.Panels(2) = Form9.Caption
End Sub

Private Sub BOOKS_Click()


Load Form5
Form5.Show
MDIForm1.StatusBar2.Panels(2) = Form5.Caption
End Sub

Private Sub COPIES_Click()


Load Form15
Form15.Show
MDIForm1.StatusBar2.Panels(2) = Form15.Caption
End Sub

Private Sub DATE1_Click()


Load Form10
Form10.Show
MDIForm1.StatusBar2.Panels(2) = Form10.Caption
End Sub

Private Sub DEFAULTER_Click()


Load DataReport9
DataReport9.Show
MDIForm1.StatusBar2.Panels(2) = DataReport9.Caption
End Sub

Private Sub DETAIL_Click()


Load DataReport3
DataReport3.Show
MDIForm1.StatusBar2.Panels(2) = DataReport3.Caption
End Sub

Private Sub ENTRY_Click()


Load Form1
Form1.Show
MDIForm1.StatusBar2.Panels(2) = Form1.Caption
End Sub

Private Sub EXIT_Click()


End
End Sub
Private Sub FINE_Click()
Load DataReport5
DataReport5.Show
MDIForm1.StatusBar2.Panels(2) = DataReport5.Caption
End Sub

Private Sub ISSUE_Click()


Load Form4
Form4.Show
MDIForm1.StatusBar2.Panels(2) = Form4.Caption
End Sub

Private Sub ISSUE1_Click()


Load Form14
Form14.Show
MDIForm1.StatusBar2.Panels(2) = Form14.Caption
End Sub

Private Sub LIBRARY_Click()


Load DataReport4
DataReport4.Show
MDIForm1.StatusBar2.Panels(2) = DataReport4.Caption
End Sub

Private Sub MEMBERS_Click()


Load Form3
Form3.Show
MDIForm1.StatusBar2.Panels(2) = Form3.Caption

End Sub

Private Sub PASSWORD_Click()

Form18.Show
Form18.Text1.SetFocus
MDIForm1.StatusBar2.Panels(2) = Form18.Caption

End Sub

Private Sub PUB_Click()


Load Form13
Form13.Show
MDIForm1.StatusBar2.Panels(2) = Form13.Caption
End Sub
Private Sub REFUND_Click()
Load Form16
Form16.Show
MDIForm1.StatusBar2.Panels(2) = Form16.Caption
End Sub

Private Sub REFUND1_Click()


Load DataReport8
DataReport8.Show
MDIForm1.StatusBar2.Panels(2) = DataReport8.Caption
End Sub

Private Sub REQUIRED_Click()


Load DataReport1
DataReport1.Show
MDIForm1.StatusBar2.Panels(2) = DataReport1.Caption
End Sub

Private Sub REQUIRED1_Click()


Load Form7
Form7.Show
MDIForm1.StatusBar2.Panels(2) = Form7.Caption
End Sub

Private Sub RETURN_Click()


Load Form2
Form2.Show
MDIForm1.StatusBar2.Panels(2) = Form2.Caption
End Sub

Private Sub ROLLNO_Click()


Load Form11
Form11.Show
MDIForm1.StatusBar2.Panels(2) = Form11.Caption
End Sub

Private Sub SECURITY_Click()


Load DataReport6
DataReport6.Show
MDIForm1.StatusBar2.Panels(2) = DataReport6.Caption
End Sub
Private Sub SECURITY1_Click()
Load Form8
Form8.Show
MDIForm1.StatusBar2.Panels(2) = Form8.Caption
End Sub
TESTING MECHANISIM USED

Testing is the major quality control measure employed during

software development. Testing is the process of executing a program with the

intent of finding an error. No piece of code is completely ready unless it has

been fully tested. This stage is very important, it is verified whether the code

developed meet the requirement specifications or not. Moreover all validations

are also checked in the testing stage.

Need for Testing:

Testing is vital to the success of the system. Testing makes a

logical assumption that if all parts of the system are correct, the goal will be

successfully achieved. Inadequate testing or non-testing leads to errors that

may not appear until a month later. A small system error can conceivably

explode into a much larger problem effective testing early in the process

translates directly into long term cost saving form a reduced number of errors.

Second reason for testing is its utility as a user oriented vehicle before

implementation.

Finally, testing leads to software reliability. Identifying and

removing faults, during testing can make the software more reliable. This

increases user’s confidence in the system.


THE BASIC LEVELS OF TESTING ARE:

1. UNIT TESTING

2. INTEGRATION TESTING

3. SYSTEM TESTING

4. ACCEPTANCE TESTING

These different levels of testing attempt to detect different types o

faults. The relation of faults introduced in different phases, and different levels

of testing are shown.

CLIENTS NEEEDS ACCEPTANCE TESTING

REQUIREMENTS SYSTEM
TESTING

DESIGN INTEGRATED TESTING

CODE UNIT
TESTING
1) UNIT TESTING:

The first level of testing is unit testing. In this different modules

are tested against the specifications produced during design for the modules.

Unit testing is essential for verification of the code produced during the coding

phase and hence the goal is to test the internal logic of the modules.

2) INTEGRATION TESTING:

The next level of testing is often called integration testing. In this

many tested modules are combined into sub-systems, which are then tested the

goal here is to see if the modules can be integrated properly, the emphasis

being on testing interfaces between modules. This activity can be considered as

testing the design, and hence the emphasis on testing module interactions.

3) SYSTEM TESTING:

The next level of testing is system testing. Here the entire system

software system is tested. The reference document for this process is

requirement document, and the goal is to see if the software meets its

requirements. This is essentially a validation exercise.

4) ACCEPTANCE TESTING:

The last level of testing is acceptance testing. Acceptance testing

is performed with realistic data of the client to demonstrate that the software is
working satisfactorily. Testing here focuses on the external behavior of the

system; the internal logic of the program is not emphasized.

SELECTION OF TEST CASES:

For testing to be successful, proper selection of test cases is

essential. There are two different approaches to selection cases- functional

testing and structural testing.

In functional testing the software o the module to be tested is

treated as a black box, and the test cases are decided based on the

specifications of the system or the module. For this reason type of testing is

also called “black box testing” the focus here is on testing the external behavior

of the system.

In structural testing the test cases are decided based on the logic

of the module to be tested. A common approach here is to achieve some type of

coverage of the statements in the code. One common coverage criterion is

statement coverage, which requires that test cases be selected so that together

they execute each statement exactly once.

Test Plan:

Testing is an extremely critical and time-consuming activity. It

requires proper planning of the overall testing process. Testing process starts
with a test plan. This plan identifies all the testing related activities that must

be performed and specifies the schedule, allocates the resources, and specifies

guidelines for testing. The test plan specifies conditions that should be tested,

different units to be tested, and the manner in which the modules will be

integrated together.

Steps Followed in Testing the System:

1) First of all unit testing was performed by me. Each and every module of the

system was tested separately so that there are no syntax and logical errors.

2) Integration testing was performed next by combining tested modules into

subsystems. Here we tested module interactions.

3) When the development of the whole system was completed, we performed

overall system testing to discover any remaining errors.

4) Next we performed beta testing by installing the beta version of in the café

shop.

5) Testing some errors, not uncovered earlier, was discovered. They are mainly

field size errors and some other minor problems. All errors found were

corrected.

6) At the end acceptance testing was performed.


IMPLEMENTATION
A crucial phase in system life cycle is the successful

implementation of the new system design. Implementation simply means

converting a new system design into operation. This involves creating

computer-compatible files, training the operating staff and installing hardware,

terminals and telecommunication hardware (where necessary) before the

system is up and running.

IMPLEMENTATION MECHANISM

After doing the system analysis and design, the next step is system

implementation that is to practically install the system. In this step system

testing is carried out because no system designed ever has perfect

communication, programmer negligence or time constraint create errors that

must be eliminated before the system is ready for user acceptance testing. The

implementation phase is less creative than system design. This phase is

primarily concerned with user training, site preparation, and file conservation.

During the final testing user acceptance is tested, followed by user

training. User training is an essential part of the phase because user is filly

involved in successful implementation of the system. User training is carried

out in a very easy and systematic way, keeping into mind the user interest,

which is how the way of training should be designed so that the user can
understand the whole candidate system. Once program becomes available, test

data is read into the computer and processed against the files provided for

testing. If successful, the program is run with “live” data. In this phase

hardware and software is also elected. Every candidate system must provide

built in features for security and integrity of data. Without safe guards against

unauthorized access, fraud, embezzlement, fire and natural disasters, the

system could be so vulnerable to threaten the survival of the organization.

Special steps are taken during this phase to provide security to the system.

Therefore, implementation is also a very important stage of system

development life cycle

POST IMPLEMENTATION

After the installation phase is completed and the user staff is

adjusted to the changes created by the candidate system, evaluation and

maintenance begin. Like any system, there is an aging process that requires

periodical pf hardware and software. If the new information is inconsistent

with the design specifications, then changes have to be made. Hardware also

requires periodic maintenance to keep in tune with the design specifications.

The importance of it is to bring the new system to standards. This is the last

step in the system development life cycle.


Therefore, these six stages make the system development life

cycle. All the stages are equally important for the successful project. So the

system development life cycle is a building block of any project, if these stages

are thoroughly done the project becomes successful. .


Future Scope

FUTURE SCOPE OF APPLICATION :

This application can be easily implemented under various situations. We can

add new features as and when we require. Reusability is possible as and

when require in this application. There is flexibility in all the modules.

SOFTWARE SCOPE:

Extensibility
This software is extendable in ways that its original developers

may not expect. The following principles enhances extensibility like hide

data structure, avoid traversing multiple links or methods, avoid case

statements on object type and distinguish public and private operations.

Reusability
Reusability is possible as and when require in this application.

We can update it next version. Reusable software reduces design, coding and

testing cost by amortizing effort over several designs. Reducing the amount

of code also simplifies understanding, which increases the likelihood that

the code is correct. We follow up both types of reusability: Sharing of newly

written code within a project and reuse of previously written code on new

projects.
Understandability: A method is understandable if someone other than the

creator of the method can understand the code (as well as the creator after a

time lapse). We use the method, which small and coherent helps to

accomplish this.

Cost-effectiveness: Its cost is under the budget and make within given time

period. It is desirable to aim for a system with a minimum cost subject to the

condition that it must satisfy the entire requirement

Scope of this document is to put down the requirements, clearly

identifying the information needed by the user, the source of the information

and outputs expected from the system.


Conclusion
From a proper analysis of positive points and constraints on the

component, it can be safely concluded that the product is a highly efficient GUI

based component. This application is working properly and meeting to all user

requirements. This component can be easily plugged in many other systems.


Bibliography
Books:

 Beginning Programming Microsoft Visual Basic 6.0

 Author: Francesco Balena

Publisher: Microsoft Press

 Introduction to Visual Basic(NIIIT publication)

 Visual Basic 6 from the Ground Up

 Author: Gary Cornell

Publisher: Osborne Mcgraw Hill

 Introduction to MS-Access
SUBMITTED BY:

GURPREET KAUR
MCA-VIth

SUBMITTED TO

PUNJAB TECHNICAL UNIVERSITY


JALANDHAR
COMPANY PROFILE

LIBRARY MANAEGEMENT is one of the acknowledged


names in software development & high-end project based training to
students of MCA, B.Tech. and IT professionals of various institutes and
colleges. The training professionals are basically software developers having
industrial experience and exposure to live projects on various technologies like
VB.NET, C# and VB etc. Special emphasis is laid on exposure to read time
projects.

The trainees are equipped with intense knowledge of various


modules from basic to advance in software involved in their projects. The skills
of the trainees are sharpened to their best.

In shot, the very purpose of providing the industrial training is to


familiarize the trainees with software industry environment of leading
companies.
CERTIFICATE

This is to certify that this report of Library Management System

embodies the original work done by Miss Gurpreet Kaur D/o Sukhdev

Singh, Roll no. 9205930153 a during this project submission as a partial

fulfillment of the requirement for the System Design Project of

Masters of Computer Application

Mr. Balwinder Taneja


Asst. Prof. in Computer Dept.
GNIMT, Model Town
Ludhiana
LETTER OF AUTHENTICATION

I here by declare that the work I have presented on the project

“LIBRARY MANAGEMENT,” This is to certify that this report of Library

Management System embodies the original work partial fulfillment of the

requirement for the award of Master of Computer Application, submitted to

department of computers Guru Nanak Institute Of Management &

Technology, Ludhiana is an authentic record of my work carried out be me in

the 6th semester of my degree of MCA.

Miss Gurpreet Kaur


Roll No.
9205930153
MCA-VI
Table of Contents

Index
Acknowledgment
Preface
Introduction
 Study of Existing System
 Brief Overview of the Project
Objective and Scope
Feasibility Study
Data Tables
Definition of Problem
 Software Used
 Hardware and Software Requirements
Project Analysis
System Analysis
 Initial Investigation
 Information Gathering
Project Design
Source Coding
Testing
Implementation
Implementation Mechanism
Post Implementation
. Future Scope
Conclusion
Bibliography
ACKNOWLEDGEMENT

The satisfaction that accompanies that the successful completion of any task

would be incomplete without the mention of people whose ceaseless

cooperation made it possible, whose constant guidance and encouragement

crown all efforts with success.

We are grateful to our project guide Mr. Ravi for the guidance, inspiration and

constructive suggestions that helpful us in the preparation of this project. We

also thank our colleagues who have helped in successful completion of the

project.

Gurpreet Kaur
MCA-VI
Roll No- 9205930153
PREFACE

For the complete knowledge of the subject, one should be practically

strong in addition to the theoretical knowledge. Thus for the computer students

the industrial training has the great importance which gives deep understanding

to the students above working condition, environment and knowledge of things

which they studied in their classes. Thus we are highly thankful to Distance

Education Department of the GNIMT College, Ludhiana, which gives us

permission. Last but not least I thank all the staff of the Institute who directly

or indirectly helps us in completing our Industrial Training project satisfactory.


LIBRARY MANAGEMENT SYSTEM

You might also like