Anda di halaman 1dari 85

CONTENTS

PROJECT OUTLINE
The title of Project
The Objective of the project
Hardware/Software specification
Objective achieved successfully

SYSTEM ANALYSIS
SOFTWARE PLANNING
SYSTEM DESIGN
TESTING & DEBUGGING
CONCLUSION
BIBLIOGRAPHY

Page 1
ABOUT PROJECT

Page 2
ABOUT PROJECT

This Project can manage all Student & book transaction of any
“COMPUTER PROVIDER.” “EDUCATION FIELDS” like
Student detail, member detail, Transaction detail , issue detail ,
returns detail , Book detail , etc can effectively be perform by this
project.

We would like to extend my sincere


thanks to MR. HERMEET SINGH SACHDEV, Director of SAI
INSTITUTE OF INFORMATION & EDUCATIONAL
TECHNOLOGY, who made available all possible resources
necessary for our project .further we would like to give regards to,
Mr. MANEESH TANEJA.

Page 3
PROJECT INTRODUCTION

Conventional system in computer involves of manual


entries, maintenance of record of number of member updating
them manually require huge amount of man power, time and
funds moreover as the entries and system being manual, error
may also creep up.

We taking into consideration various ideas, which came


into our mind, have developed a self-sufficient bank account.
the project can further be modified and made efficient and
fool proof .

These project titled” LIBRARY MANAGEMENT


SYSTEM”, has been developed a with studies undertaken at
Bhilai, the project deals with the computerized college
Education system. The software use the task are window XP
operating system, visual basic 6.0 as the fronted and ms
access as the backend database visual basic 6.0 application
software h=as been used for this project because a major
portion of the program is accomplished visually step by i.e.
output display can be view after each step easily during the

Page 4
design period and modification if any can made moreover
event driven programming .which is an object oriented tool.

In spite of our since efforts project has some limitation


,which are discussed later

Page 5
OBJECTIVE OF THE PROJECT

The main objective of this project is to provider all the information of


student.

STUDENT/MEMBER INFORMATION:

Detail information of regular student that is run by the any


Library management system.

T
OCKINFORMATION:

This project is designed in such a manner that it can provide all


the detail information of Book that is run by any Library
management.

BOOK TRANSACTION INFORMATION:

There are various types of transaction perform in the item that


is issue and return books efficiently manage by this project
Because all the Information is stored along with their group and
category detail that make their searching easy and efficient.

Page 6
REPORT GENERATION:

This project is designed to provide us various Summary and


Inward Sheet Report for Date wise transaction, Member wise
transaction with complete information of Student detail.

Page 7
INTRODUCTION TO VISUAL BASIC 6.0

Visual Basic is senior member of Visual Basic (VB) product that


includes Visual Basic for Application and Visual Basic, Scripting
Edition (VBScript). While most of the code that you write in Visual
Basic can be shared with application written in Visual Basic for
Application or VBScript, there are some exception.
COMPABILITY WITH VISUAL-BASIC FOR APPLICATION

Visual Basic for application is a single, common application


scripting language and environment that users and developers can
leverage across their windows desktop. Visual basic for Application is
including in Microsoft office and other Microsoft application. It is
also licensed to other software venders and included in a wide range
of products.

Visual Basic for Application, contained in Vba6.dll, is the


underlying engine for Visual Basic. This library contains the entire
language elements that are shared by Visual Basic for Application and
Visual Basic. You can View the elements by selecting VBA from the
library list box in the object Browser. Code written in Visual Basic for
Application is portable to Visual Basic with the following limitations:
1 .Visual basic for Application code that refers to applications-
specific element (such as an Microsoft Excel worksheet) may be
ported.
Page 8
2. Provided that they contain a fully qualified reference and the
referenced application exists on the targets machine.
Element specific to the VB, such as forms and intrinsic controls are
Contained in the type library Vb6.olb (Which is also visible in the
object browser). In general, code written in VB is portable to VB for
Application as long as it doesn’t reference these elements.

Page 9
-: INTRODUCTION TO ACCESS :-

Database : What they are? And how they work?

A database is collection of information related to particular or


purpose such as tracking customer orders or maintaining a music
collection. If your database isn’t stored on a computer or only parts of
it are, you may be tracking information from varied of source that you
have to coordinate and organize yourself.

Using it, you can manage all our information from single
database file. Within file divide your data using into separate storage
containers called tables; view, add, and update table data using forms;
find and retrieve just the data you want using queries and analyze or
print data in specific layout using reports.

To find and retrieve just data that meet condition you specify
including data from multiple tables create a query. A query can also
update multiple records at the same time and perform built-in or
custom calculations on your data. To easily view, enter and change
directly in a table, create a form. When you open a form, it retrieves
the data from one or more tables and displays it on screen using the
data from you chose in the form using a layout that you crated from
scratch.
To analyze your data present it a certain way in print, create a

Page 10
report. For example, you might print one report that raw material and
calculates totals.

TABLES:

A table is a collection of data about a specific topic, such as


products or suppliers. Using as separate table for each topic means
you store that data only once which makes your database more
efficient and reduces data entry errors. Table organizes data into
columns and rows.

In table datasheet view, you can add, edit or view the data in a
table. You can also check the spelling and print your table’s data filter
or sort records change the datasheet’s appearance or change the
table’s structure by adding or deleting columns. You can create an
entire table from scratch, or add, delete, or customize existing table’s
fields.

QUERIES:

You use queries to view, change and analyze data in different


ways. You can also use them as the source of records for forms and
report. The most common type of query is a select query. A select
query retrieves data from one or more tables using criteria you specify

Page 11
and then display it in the order you want.

ADVANTAGES OF ACCESS :-

 More Reliable than other RDBMS.

 Easy to use and learn.

 Data security is high.

 Updating database.

 Support ODBC, ADO data programming objects.

Page 12
HARDWARE & SOFTWARE USED

HARDWARE REQUIRMENT:

Processor : P2, 450 MHz Or Higher


Ram : 64MB More
Hard Disk : 10GB Or More
Monitor : Color Monitor
Key Board : Window Computable Key
Board
Printer : A4 size laser printer
Mouse : PC Mouse
CD ROM : Any CD ROM
(Cd writer recommended)
Main Memory : 256 MB or More
Mother Board : Any compatible Motherboard

SOFTWARE REQUIMENT:

Operating system : Window XP


Backend : MS access
Fronted : Visual Basic 6.0

Page 13
DATA FLOW DIAGRAM

Librarian/member
STUDENTS

Notifies Data of
order of members, fines payments
Issues
new books books
books by and
members/ member
staff

Returns

LIBRARY

MANAGEMENT

SYSTEM

Issues Returns

Staff/teacher

Page 14
ER Model
SNAME
MNAM
E M_ADD
SID S_N
MID O.

TRA EDUC
MEMBER NSE BOOKS ATIO
CTIO N STUDENT
N

Tran S_ADD SDATE


CON_NO DATE sacti
.
on
SID BOOK_N
O BOOK_NA
SNAM ME
E

RETU
BOOK ISSUE BOOK RNIN RETURN
ID G BOOK

STUDENT
ID S_NA
BOOK NAME ME

ISSUE DATE RETURN


DATE

Page 15
DATA BASE DESIGN

DATA BASE

There are many data table uses in access 2007 for my project. Library
management. This is the data source name to connecting access data
base that contain all details about computer shop management that is
accessed by the use.

BOOK ENTRY TABLE

Page 16
EMPLOYESS DETAILS ENTRY
TABLE

STUDENT DETAILS ENTRY TABLE

Page 17
BOOK ISSUE AND RETURN
DETAILS ENTRY TABLE

Page 18
LOGIN FORM

Page 19
SPLASH FORM

Page 20
MDI MAIN FORM

Page 21
CATEGORY DETAILS FORM

Page 22
BOOKS DETAIL FORM

Page 23
EMPLOYESS DETAIL FORM

Page 24
ATTENDENCE DETAIL FORM

Page 25
STUDENTS DETAIL FORM

Page 26
VIEW AND SEARCH FORM

Page 27
ISSUE BOOK FORM

Page 28
RETURN BOOK FORM

Page 29
BOOK REPORTS

Page 30
BOOK ISSUE REPORTS

Page 31
BOOK RETURN REPORTS

Page 32
SOURCE CODE

Page 33
LOGIN FORM

Private Sub cmdcancel_Click()


End
End Sub

Private Sub CMDOK_Click()


If LCase(Text1.Text) = "shivam" And LCase(Text2.Text) =
"limza" Then
Me.Hide
splash.Show
Unload Me
Else
MsgBox ("Invalid user name or Passward"), vbInformation

End If
End Sub

Page 34
SPLASH FORM

Private Sub Frame1_DragDrop(Source As Control, X As


Single, Y As Single)

End Sub

Private Sub Timer1_Timer()


If ProgressBar1.Value > 97 Then
mdimain.Show
Unload Me
Timer1.Enabled = False
End If

ProgressBar1.Value = ProgressBar1.Value + 1
Label10.Caption = ProgressBar1.Value & "%"

End Sub

Page 35
BOOK DETAILS FORM

Private Sub ADD_Click()

End Sub

Private Sub cmdcancel_Click()


Form_Load
End Sub

Private Sub cmdClose_Click()


Unload Me
End Sub

Private Sub cmdSave_Click()

If RS.State = 1 Then RS.Close


RS.Open "SELECT * FROM codetbl", con, adOpenKeyset,
adLockOptimistic, adCmdText

Page 36
RS.AddNew
RS(0) = cmbser.Text
RS(1) = combo1.Text
RS(2) = Text1.Text
RS(3) = Val(Text2.Text)
RS(4) = Val(Text3.Text)
RS(5) = Text4.Text
RS(6) = Text5.Text
RS.Update
RS.Close
Form_Load
MsgBox "Record saved", vbInformati

End Sub

Private Sub Command1_Click()


combo1.Text = ""
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""

Page 37
Text5.Text = ""

If RS.State = 1 Then RS.Close


RS.Open "SELECT * FROM MAIN_SERVICE order by
SERVICE_NAME", con, adOpenKeyset, adLockOptimistic,
adCmdText
cmbser.Clear
If RS.RecordCount >= 1 Then
While RS.EOF = False
cmbser.AddItem RS(0)
RS.MoveNext
Wend
End If

RS.Close

If RS.State = 1 Then RS.Close


RS.Open "SELECT max(id) FROM codetbl", con,
adOpenKeyset, adLockOptimistic, adCmdText
Text1.Text = Val(RS(0)) + 1

Page 38
End Sub

Private Sub RichTextBox1_Change()

End Sub

Private Sub Form_Load()

End Sub

Page 39
CATEGORY DETAILS FORM
Dim P_DEPT_OLD As String
Dim CpyUpdate As String

Private Sub cmdcancel_Click()


Call Form_Load
End Sub

Private Sub cmdClose_Click()


mdimain.Enabled = True
Unload Me
End Sub

Private Sub CMDDEL_Click()


If MsgBox("IT WILL ALSO DELETE ALL METIRIAL
OF THIS SERVICE" & vbCrLf & " ARE
YOU WANT TO DELETE.", vbYesNo) = vbYes Then
con.Execute "DELETE FROM MAIN_SERVICE where
SERVICE_NAME = '" & Trim(UCase(TXTDEPT.Text)) &
"'"
Call Form_Load

Page 40
TXTDEPT.SetFocus
MsgBox "Recored Deleted", vbInformation
End If
End Sub

Private Sub cmdSave_Click()


If TXTDEPT.Text = "" Then
MsgBox "Please Enter SERVICE Name", vbInformation
TXTDEPT.SetFocus
Exit Sub
End If

'If Double_entry("MAIN_SERVICE",
"SERVICE_NAME", TXTDEPT.Text, TXTDEPT) = True
Then Exit Sub

'**********************************

sql = "INSERT INTO MAIN_SERVICE


(SERVICE_NAME) VALUES('" &
UCase(Trim(TXTDEPT.Text)) & "')"
con.Execute sql

Page 41
'***********************************
Call Form_Load
TXTDEPT.SetFocus
MsgBox "Recored Saved", vbInformation
End Sub

Private Sub CMDUP_Click()


If (TXTDEPT.Text = "") Then
MsgBox "Please Enter SERVICE Name", vbInformation
TXTDEPT.SetFocus
Else

con.Execute ("UPDATE MAIN_SERVICE SET


SERVICE_NAME = '" & UCase(Trim(TXTDEPT.Text)) & "'
where SERVICE_NAME = '" & CpyUpdate & "'")
Form_Load
MsgBox "Record Updated Successfully", vbInformation
TXTDEPT.SetFocus
End If
End Sub

Page 42
Private Sub Form_Load()

TXTDEPT.Text = ""
If RS.State = 1 Then RS.Close
RS.Open "SELECT * FROM MAIN_SERVICE order by
SERVICE_NAME", con, adOpenKeyset, adLockOptimistic,
adCmdText
msg1.Rows = 1
If RS.RecordCount >= 1 Then
While RS.EOF = False
msg1.AddItem RS(0) & Chr(9)
RS.MoveNext
Wend
End If
cmdsave.Enabled = True
CMDUP.Enabled = False
CMDDEL.Enabled = False
Lbltotal.Caption = RS.RecordCount
End Sub

Private Sub msg1_Click()

Page 43
If RS.State = 1 Then RS.Close
RS.Open "SELECT * FROM MAIN_SERVICE where
SERVICE_NAME ='" & msg1.TextMatrix(msg1.RowSel, 0)
& "'", con, adOpenKeyset, adLockOptimistic, adCmdText
If RS.RecordCount >= 1 Then
While RS.EOF = False
TXTDEPT.Text = RS(0)
RS.MoveNext
Wend
cmdsave.Enabled = False
CMDUP.Enabled = True
CMDDEL.Enabled = True

Else
MsgBox "record not found", vbInformation
End If

End Sub

Page 44
EMPLOYESS FORM

Dim RS As New ADODB.Recordset


Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub cmdfind_Click()
Dim sql As String
List1.Visible = True
If RS.State = 1 Then RS.Close
sql = "select * from emp_details where emp_no ='" &
txtemp_no.Text & "'"
RS.Open sql, , adOpenKeyset, adLockOptimistic
If RS.RecordCount > 0 Then
txtemp_no = RS(0)
txtemp_name = RS(1)
txtemp_add = RS(2)
Txtsalary = RS(3)
txtemp_phone = RS(4)
txtemp_desig = RS(5)
DTd_o_j = RS(6)

Page 45
dtd_o_b = RS(7)
cmbsex = RS(8)
End If
cmdUpdate.Enabled = True
End Sub
Private Sub cmdnew_Click()
Dim sql As String
cmdsave.Enabled = True
cmdUpdate.Enabled = False
cmdFind.Enabled = False
cmdnew.Enabled = False
sql = "select max(VAL(MID(emp_no,2)))from emp_details"
If RS.State = 1 Then RS.Close
RS.Open sql, , adOpenDynamic, adLockOptimistic
If IsNull(RS(0)) Then
txtemp_no.Text = "E1"
Else
txtemp_no.Text = "E" & (RS(0) + 1)
End If
txtemp_name.SetFocus
txtemp_name.Text = ""
txtemp_add.Text = ""

Page 46
Txtsalary.Text = ""
txtemp_desig.Text = ""
txtemp_phone.Text = ""
cmbsex.Text = ""
End Sub
Private Sub cmdSave_Click()
Dim sql As String
If Trim(txtemp_name.Text) = "" Then
txtemp_name.SetFocus
MsgBox "enter suitablename", vbInformation
Exit Sub
End If
If Trim(txtemp_add.Text) = "" Then
txtemp_add.SetFocus
MsgBox "enter suitable address", vbInformation
Exit Sub
End If
If Trim(Txtsalary.Text) = "" Then
Txtsalary.SetFocus
MsgBox "enter suitable salary", vbInformation
Exit Sub
End If

Page 47
If Trim(txtemp_desig.Text) = "" Then
txtemp_desig.SetFocus
MsgBox "enter suitable designation", vbInformation
Exit Sub
End If
txtemp_phone.Text = IIf(Trim(txtemp_phone.Text) = "", "-
", txtemp_phone.Text)
If Trim(DTd_o_j.Value) = "" Then
DTd_o_j.SetFocus
MsgBox "enter suitable date of joining", vbInformation
Exit Sub
End If
' Dim a As Integer
' a = DateDiff("yyyy", dtd_o_b.Value, DTd_o_j.Value)
' If a < 18 Then
' DTd_o_j.SetFocus
' MsgBox "enter suitable date of birth", vbInformation
' Exit Sub
' End If
If Trim(cmbsex.Text) = "" Then
cmbsex.SetFocus
MsgBox "select suitable sex", vbInformation

Page 48
Exit Sub
End If
sql = "insert into emp_details values('" & txtemp_no.Text &
"','" & txtemp_name.Text & "','" & txtemp_add.Text & "'," &
Txtsalary.Text & ",'" & txtemp_phone.Text & "','" &
txtemp_desig.Text & "',#" & DTd_o_j.Value & "#,#" &
dtd_o_b.Value & "#,'" & cmbsex.Text & "')"
con.Execute sql
MsgBox "record saved", vbInformation
Form_Load
cmdnew.Enabled = True
cmdsave.Enabled = False
cmdFind.Enabled = True
End Sub
Private Sub cmdupdate_Click()
sql = "(update emp_details set emp_name='" & txtemp_name
& "',address='" & txtemp_add & "',salary='" & Txtsalary &
"',phone_no='" & txtemp_phone & "',designation='" &
txtemp_desig & "',d_o_j=#" & DTd_o_j & "#,d_o_b=#" &
dtd_o_b & "#,sex='" & cmbsex & "' where emp_no='" &
txtemp_no & "')"
con.Execute sql

Page 49
MsgBox ("record update"), vbInformation
End Sub
Private Sub Form_Load()

'centerform Me
dtd_o_b.Value = Date
DTd_o_j.Value = Date
sql = "select * from emp_details"
If RS.State = 1 Then
RS.Close
Set RS = Nothing
End If
RS.Open sql, con, adOpenKeyset, adLockPessimistic,
adCmdText
If RS.RecordCount = 0 Then
cmdsave.Enabled = False
cmdUpdate.Enabled = False
cmdFind.Enabled = False
End If
List1.Visible = False

Page 50
If RS.State = 1 Then RS.Close
RS.Open "select emp_no from emp_details", ,
adOpenKeyset, adLockOptimistic
List1.Clear
While Not RS.EOF = True
List1.AddItem RS(0)
RS.MoveNext
Wend
txtemp_name = ""
txtemp_add = ""
Txtsalary = ""
txtemp_phone = ""
txtemp_desig = ""
DTd_o_j = Date
dtd_o_b = Date
cmbsex = ""
cmdnew.Enabled = True
cmdsave.Enabled = False
cmdFind.Enabled = True
cmdUpdate.Enabled = False
End Sub

Page 51
Private Sub List1_Click()
txtemp_no = List1.Text
If RS.State = 1 Then RS.Close
RS.Open "select * from emp_details where emp_no='" &
txtemp_no & "' ", , adOpenKeyset, adLockOptimistic
If RS.RecordCount > 0 Then
txtemp_name = RS(1)
txtemp_add = RS(2)
Txtsalary = RS(3)
txtemp_phone = RS(4)
txtemp_desig = RS(5)
DTd_o_j = RS(6)
dtd_o_b = RS(7)
cmbsex = RS(8)
End If
End Sub

Page 52
EMPLOYESS ATTEND. FORM

Private Sub cmbsex_Click()


If RS.State = 1 Then RS.Close
RS.Open "select emp_no,sex from emp_details where
emp_name='" & cmbsex.Text & "'", con
Label6.Caption = RS(0)
Label4.Caption = RS(1)
End Sub

Private Sub cmdClose_Click()


Unload Me
End Sub

Private Sub cmdSave_Click()


If RS.State = 1 Then RS.Close
RS.Open "select * from tblatt where adate=#" & dt1.Value &
"# and empid='" & Label6.Caption & "'", con, adOpenKeyset,
adLockOptimistic, adCmdText
If RS.RecordCount > 0 Then
MsgBox "Attandence Allready Saved", vbInformati

Page 53
Exit Sub
End If

If RS.State = 1 Then RS.Close


RS.Open "select * from tblatt", con, adOpenKeyset,
adLockOptimistic, adCmdText
RS.AddNew
RS(0) = Label6.Caption
RS(1) = cmbsex.Text
RS(2) = Label4.Caption
RS(3) = dt1.Value
RS(4) = Combo1.Text
RS.Update
RS.Close
'cmbsex.Text = ""
Label6.Caption = ""
Label4.Caption = ""
Combo1.Text = ""
dt1.Value = Date
MsgBox "Record Saved", vbInformation

End Sub

Page 54
Private Sub Form_Load()

dt1.Value = Date
'Me.Height = 5950
'Me.Width = 10965
'centerform Me

If RS.State = 1 Then RS.Close


RS.Open "select emp_no,emp_name from emp_details", con
cmbsex.Clear
While Not RS.EOF
cmbsex.AddItem RS(1)
RS.MoveNext
Wend

End Sub

Private Sub Frame1_DragDrop(Source As Control, X As


Single, Y As Single)

End Sub

Page 55
STUDENTS DETAILS FORM

Dim RS As New ADODB.Recordset


Private Sub cmdClose_Click()
Unload Me
End Sub
Private Sub cmdfind_Click()
Dim sql As String
List1.Visible = True
If RS.State = 1 Then RS.Close
sql = "select * from mem_details where emp_no ='" &
txtemp_no.Text & "'"
RS.Open sql, , adOpenKeyset, adLockOptimistic
If RS.RecordCount > 0 Then
txtemp_no = RS(0)
txtemp_name = RS(1)
txtemp_add = RS(2)
Txtsalary = RS(3)
txtemp_phone = RS(4)
txtemp_desig = RS(5)
DTd_o_j = RS(6)

Page 56
dtd_o_b = RS(7)
cmbsex = RS(8)
End If
cmdUpdate.Enabled = True
End Sub
Private Sub cmdnew_Click()
Dim sql As String
cmdSave.Enabled = True
cmdUpdate.Enabled = False
cmdFind.Enabled = False
cmdnew.Enabled = False
sql = "select max(VAL(MID(emp_no,2)))from mem_details"
If RS.State = 1 Then RS.Close
RS.Open sql, , adOpenDynamic, adLockOptimistic
If IsNull(RS(0)) Then
txtemp_no.Text = "S1"
Else
txtemp_no.Text = "S" & (RS(0) + 1)
End If
txtemp_name.SetFocus
txtemp_name.Text = ""
txtemp_add.Text = ""

Page 57
Txtsalary.Text = ""
txtemp_desig.Text = ""
txtemp_phone.Text = ""
cmbsex.Text = ""
End Sub
Private Sub cmdSave_Click()
Dim sql As String
If Trim(txtemp_name.Text) = "" Then
txtemp_name.SetFocus
MsgBox "enter suitablename", vbInformation
Exit Sub
End If
If Trim(txtemp_add.Text) = "" Then
txtemp_add.SetFocus
MsgBox "enter suitable address", vbInformation
Exit Sub
End If
If Trim(Txtsalary.Text) = "" Then
Txtsalary.SetFocus
MsgBox "enter suitable salary", vbInformation
Exit Sub
End If

Page 58
If Trim(txtemp_desig.Text) = "" Then
txtemp_desig.SetFocus
MsgBox "enter suitable designation", vbInformation
Exit Sub
End If
txtemp_phone.Text = IIf(Trim(txtemp_phone.Text) = "", "-
", txtemp_phone.Text)
If Trim(DTd_o_j.Value) = "" Then
DTd_o_j.SetFocus
MsgBox "enter suitable date of joining", vbInformation
Exit Sub
End If
' Dim a As Integer
' a = DateDiff("yyyy", dtd_o_b.Value, DTd_o_j.Value)
' If a < 18 Then
' DTd_o_j.SetFocus
' MsgBox "enter suitable date of birth", vbInformation
' Exit Sub
' End If
If Trim(cmbsex.Text) = "" Then
cmbsex.SetFocus
MsgBox "select suitable sex", vbInformation

Page 59
Exit Sub
End If
sql = "insert into mem_details values('" & txtemp_no.Text
& "','" & txtemp_name.Text & "','" & txtemp_add.Text & "',"
& Txtsalary.Text & ",'" & txtemp_phone.Text & "','" &
txtemp_desig.Text & "',#" & DTd_o_j.Value & "#,#" &
dtd_o_b.Value & "#,'" & cmbsex.Text & "')"
con.Execute sql
MsgBox "record saved", vbInformation
Form_Load
cmdnew.Enabled = True
cmdSave.Enabled = False
cmdFind.Enabled = True
End Sub
Private Sub cmdupdate_Click()
sql = "(update mem_details set emp_name='" & txtemp_name
& "',address='" & txtemp_add & "',salary='" & Txtsalary &
"',phone_no='" & txtemp_phone & "',designation='" &
txtemp_desig & "',d_o_j=#" & DTd_o_j & "#,d_o_b=#" &
dtd_o_b & "#,sex='" & cmbsex & "' where emp_no='" &
txtemp_no & "')"
con.Execute sql

Page 60
MsgBox ("record update"), vbInformation
End Sub
Private Sub Form_Load()

dtd_o_b.Value = Date
DTd_o_j.Value = Date
sql = "select * from mem_details"
If RS.State = 1 Then
RS.Close
Set RS = Nothing
End If
RS.Open sql, con, adOpenKeyset, adLockPessimistic,
adCmdText
If RS.RecordCount = 0 Then
cmdSave.Enabled = False
cmdUpdate.Enabled = False
cmdFind.Enabled = False
End If
List1.Visible = False
If RS.State = 1 Then RS.Close
RS.Open "select emp_no from mem_details", ,
adOpenKeyset, adLockOptimistic

Page 61
List1.Clear
While Not RS.EOF = True
List1.AddItem RS(0)
RS.MoveNext
Wend
txtemp_name = ""
txtemp_add = ""
Txtsalary = ""
txtemp_phone = ""
txtemp_desig = ""
DTd_o_j = Date
dtd_o_b = Date
cmbsex = ""
cmdnew.Enabled = True
cmdSave.Enabled = False
cmdFind.Enabled = True
cmdUpdate.Enabled = False
End Sub

Private Sub List1_Click()


txtemp_no = List1.Text
If RS.State = 1 Then RS.Close

Page 62
RS.Open "select * from mem_details where emp_no='" &
txtemp_no & "' ", , adOpenKeyset, adLockOptimistic
If RS.RecordCount > 0 Then
txtemp_name = RS(1)
txtemp_add = RS(2)
Txtsalary = RS(3)
txtemp_phone = RS(4)
txtemp_desig = RS(5)
DTd_o_j = RS(6)
dtd_o_b = RS(7)
cmbsex = RS(8)
End If
End Sub

Page 63
VIEW AND SEARCH BOOK
FORM

Private Sub cmbser_Click()


If RS.State = 1 Then RS.Close
RS.Open "SELECT * FROM sub_service where
service_name='" & cmbser.Text & "' order by service_name",
con, adOpenKeyset, adLockOptimistic, adCmdText
Combo1.Clear
If RS.RecordCount >= 1 Then
While RS.EOF = False
Combo1.AddItem RS(1)
RS.MoveNext
Wend
End If
RS.Close
Adodc1.RecordSource = "select service_name as
Category,sub_service_name as Album,code_p as CD,PRICE
from CODETBL where service_name='" & cmbser.Text & "'"
Adodc1.Refresh
Page 64
End Sub

Private Sub cmdClose_Click()


Unload Me
End Sub

Private Sub Combo1_Click()

Adodc1.RecordSource = "select service_name as


Category,sub_service_name as Album,code_p as CD,PRICE
from CODETBL where service_name='" & cmbser.Text & "'
and sub_service_name='" & Combo1.Text & "'"
Adodc1.Refresh

End Sub

Private Sub Command1_Click()


If cmbser.Text = "ALL" Then
Adodc1.RecordSource = "select service_name as
Category,sub_service_name as BOOK,code_p as ID,PRICE
from CODETBL where sub_service_name like'%" &
Text1.Text & "%'"

Page 65
Else
Adodc1.RecordSource = "select service_name as
Category,sub_service_name as BOOK,code_p as ID,PRICE
from CODETBL where service_name='" & cmbser.Text & "'
and sub_service_name like'%" & Text1.Text & "%'"
End If
Adodc1.Refresh
End Sub

Private Sub Form_Load()


Combo1.Clear

Combo1.Clear

'cmdsave.Enabled = True
'CMDUP.Enabled = False
'CMDDEL.Enabled = False

If RS.State = 1 Then RS.Close

Page 66
RS.Open "SELECT * FROM MAIN_SERVICE order by
SERVICE_NAME", con, adOpenKeyset, adLockOptimistic,
adCmdText
cmbser.Clear
cmbser.Text = "ALL"
cmbser.AddItem "ALL"
If RS.RecordCount >= 1 Then
While RS.EOF = False
cmbser.AddItem RS(0)
RS.MoveNext
Wend
End If
RS.Close

End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
Command1_Click
End If
End Sub

Page 67
ISSUE BOOKS FORM

Private Sub cmbmem_Click()

If RS.State = 1 Then RS.Close


RS.Open "select * from mem_details where emp_no='" &
cmbmem.Text & "'", con, adOpenKeyset, adLockOptimistic
Label2.Caption = RS(1)
Label4.Caption = RS(2)
Label6.Caption = RS(4)
Label18.Caption = RS(5)

End Sub

Private Sub cmdClose_Click()


Unload Me
End Sub

Private Sub cmdSave_Click()


If cmbmem.Text = "" Or Combo1.Text = "" Then

Page 68
MsgBox "Plz select all boxes", vbInformation
Exit Sub
End If
If Label15.Caption <> "Available" Then
MsgBox "Book not Available", vbInformation
Exit Sub
End If
If RS.State = 1 Then RS.Close
RS.Open "select * from tblissue", con, adOpenKeyset,
adLockOptimistic
RS.AddNew
RS(0) = cmbmem.Text
RS(1) = Combo1.Text
RS(2) = Date
RS(4) = "Issued"
RS.Update
If RS.State = 1 Then RS.Close
RS.Open "select avl from codetbl where
sub_service_name='" & Combo1.Text & "'", con,
adOpenKeyset, adLockOptimistic
RS(0) = True
RS.Update

Page 69
Form_Load
MsgBox "Book Issued", vbInformation
End Sub

Private Sub Combo1_Click()

If RS.State = 1 Then RS.Close


RS.Open "select * from CODETBL where
sub_service_name='" & Combo1.Text & "'", con,
adOpenKeyset, adLockOptimistic
Label12.Caption = RS(7)
Label10.Caption = RS(5)
Label7.Caption = RS(1)
If RS(8) = False Then
Label15.Caption = "Available"
Else
Label15.Caption = "Issued"
End If

End Sub

Page 70
Private Sub Form_Load()

dt1.Value = Date
Label2.Caption = ""
Label4.Caption = ""
Label6.Caption = ""
Label10.Caption = ""
Label12.Caption = ""
Label15.Caption = ""
Label18.Caption = ""
Label7.Caption = ""

If RS.State = 1 Then RS.Close


RS.Open "select emp_no from mem_details order by 1", con,
adOpenKeyset, adLockOptimistic
cmbmem.Clear
While Not RS.EOF = True
cmbmem.AddItem RS(0)
RS.MoveNext
Wend

If RS.State = 1 Then RS.Close

Page 71
RS.Open "select sub_service_name from CODETBL order
by 1", con, adOpenKeyset, adLockOptimistic
Combo1.Clear
While Not RS.EOF = True
Combo1.AddItem RS(0)
RS.MoveNext
Wend

End Sub

Private Sub Frame1_DragDrop(Source As Control, X As


Single, Y As Single)

End Sub

Page 72
BOOKS RETURNS FORM

Private Sub cmbmem_Click()

If RS.State = 1 Then RS.Close


RS.Open "select * from mem_details where emp_no='" &
cmbmem.Text & "'", con, adOpenKeyset, adLockOptimistic
Label2.Caption = RS(1)
Label4.Caption = RS(2)
Label6.Caption = RS(4)
Label18.Caption = RS(5)

End Sub

Private Sub cmdClose_Click()


Unload Me
End Sub

Private Sub cmdSave_Click()


If cmbmem.Text = "" Or Combo1.Text = "" Then

Page 73
MsgBox "Plz select all boxes", vbInformation
Exit Sub
End If
If Label15.Caption <> "Available" Then
MsgBox "Book not Available", vbInformation
Exit Sub
End If
If RS.State = 1 Then RS.Close
RS.Open "select * from tblissue", con, adOpenKeyset,
adLockOptimistic
RS.AddNew
RS(0) = cmbmem.Text
RS(1) = Combo1.Text
RS(2) = Date
RS(4) = "Issued"
RS.Update
If RS.State = 1 Then RS.Close
RS.Open "select avl from codetbl where
sub_service_name='" & Combo1.Text & "'", con,
adOpenKeyset, adLockOptimistic
RS(0) = True
RS.Update

Page 74
Form_Load
MsgBox "Book Issued", vbInformation
End Sub

Private Sub Combo1_Click()

If RS.State = 1 Then RS.Close


RS.Open "select * from CODETBL where
sub_service_name='" & Combo1.Text & "'", con,
adOpenKeyset, adLockOptimistic
Label12.Caption = RS(7)
Label10.Caption = RS(5)
Label7.Caption = RS(1)
If RS(8) = False Then
Label15.Caption = "Available"
Else
Label15.Caption = "Issued"
End If

End Sub

Page 75
Private Sub Form_Load()

dt1.Value = Date
Label2.Caption = ""
Label4.Caption = ""
Label6.Caption = ""
Label10.Caption = ""
Label12.Caption = ""
Label15.Caption = ""
Label18.Caption = ""
Label7.Caption = ""

If RS.State = 1 Then RS.Close


RS.Open "select emp_no from mem_details order by 1", con,
adOpenKeyset, adLockOptimistic
cmbmem.Clear
While Not RS.EOF = True
cmbmem.AddItem RS(0)
RS.MoveNext
Wend

If RS.State = 1 Then RS.Close

Page 76
RS.Open "select sub_service_name from CODETBL order
by 1", con, adOpenKeyset, adLockOptimistic
Combo1.Clear
While Not RS.EOF = True
Combo1.AddItem RS(0)
RS.MoveNext
Wend

End Sub

Private Sub Frame1_DragDrop(Source As Control, X As


Single, Y As Single)

End Sub

Page 77
BOOKS ISSUE
& RETURN REPORT

Private Sub cmdClose_Click()


Unload Me
End Sub

Private Sub cmdSave_Click()


If DataEnvironment1.rsCommand5.State = 1 Then
DataEnvironment1.rsCommand5.Close
DataEnvironment1.rsCommand5.Filter = "emp_name='" &
Combo1.Text & "'"
DataRet.Show
End Sub

Private Sub Form_Load()

If RS.State = 1 Then RS.Close

Page 78
RS.Open "SELECT * FROM mem_details order by 2",
con, adOpenKeyset, adLockOptimistic, adCmdText
Combo1.Clear
If RS.RecordCount >= 1 Then
While RS.EOF = False
Combo1.AddItem RS(1)
RS.MoveNext
Wend
End If
RS.Close

End Sub

Private Sub Frame1_DragDrop(Source As Control, X As


Single, Y As Single)

End Sub

Page 79
CATEGORY REPORT

Private Sub cmdClose_Click()


Unload Me
End Sub

Private Sub cmdSave_Click()


If DataEnvironment1.rsCommand4.State = 1 Then
DataEnvironment1.rsCommand4.Close
DataEnvironment1.rsCommand4.Filter = "emp_name='" &
Combo1.Text & "'"
DataIssue.Show
End Sub

Private Sub Form_Load()

If RS.State = 1 Then RS.Close


RS.Open "SELECT * FROM mem_details order by 2",
con, adOpenKeyset, adLockOptimistic, adCmdText

Page 80
Combo1.Clear
If RS.RecordCount >= 1 Then
While RS.EOF = False
Combo1.AddItem RS(1)
RS.MoveNext
Wend
End If
RS.Close

End Sub

Private Sub Frame1_DragDrop(Source As Control, X As


Single, Y As Single)

End SuB

Page 81
LIMITATION

Limitation Of manual system:-


For every information like STUDENT Entry, BOOKS
Entry, ISSUE entry, member Entry, returns
Entry and search Entry.

In manual maintenance duplication of record is


Possible.

Modification updating can’t be done frequently.

If will be difficult to manage files if record


Exceeds from hundred to thousand and so on.

Limitation computerized system:-


Connection with in the files should be made
Correct otherwise it difficult get desired
Information.

Computerized system can be only work in good


Power supply.

Page 82
Here only one work can be done at one time,
Because mdi forms are used.
Books maintenance can’t be determine
Through this project.

For working on this project it is necessary to the


Worker he/she has knowledge about the project
Properly.

Page 83
CONCLUSION

As we know that manual work is very tidies and heavy as it is the


consuming and slow in manual working information and stored on the
paper and papers have short life and bulky and takes more space to
store. Through my project entitled “ LIBRARY MANAGEMENT
SYSTEM” we have tried to solve this problem.
We have faced so many difficulties while
developing this project. This project has given all the proper
information. When any problem is there, by the cooperation of my
faculty and blessing of god, we tried our best to make this project
well.

Page 84
BIBLIOGRAPHY

References are always needed for the development of any System /


Software development. Through the system development life cycle, I
refer the following books and manuals for related sources.

Book Name Author Name

The Complete Reference Visual Basic 6 Tata McGraw Hill

Informatics Practices Mr. MANEESH TANEJA

Visual Programming Black Book Steven Holzner

Other than these books I referred some sites and ebooks also.

URL’s:-

www.freecomputerbooks.com
www.bigbanyantree.com
www.forumempire.com

Page 85

Anda mungkin juga menyukai