Project Report
Project Report
1 Acknowledgement 2
2 Introduction to Project 3
3 Platform Used 5
5 Testing Mechanisms 7
6 Introduction to VB 8
7 Database Structure 9
8 Coding Project 20
9 Output Project 64
10 Conclusion 79
11 Bibliography 80
1
ACKNOWLEDGEMENT
2
INTRODUCTION
After collecting the necessary information from different teachers, peoples and
With the help of this project we can maintain books record, student report.
In this project we can store information about a student as well as teacher, who
has the member ship in the library system. And according to his/her
books of a person has not any member ship number. Then he cannot issue the
book. In this project we have provides information about books and how many
books in the library. It gives information about books name. if there are some
new books for library then it can be added to the software and issue .
3
In one more feature of this project is that any teacher cannot issue more then
This project also provides us the book issue and return facility. This is the
main feature of our project. This project also provides the show details report
facility which tells the student to see which book is currently issued. It shows
In this project we have given password to the software for the security. If the
user know about the password then he can use and otherwise not. It also can
calculate fine for a student on a back. After fifteen days if a student does not
This project is made by using front end tool visual basic and backend tool
access. All the tables of access are firstly copy to c:\ drive for store the data.
This facility is also available in our project. The access table can be copied
hard disk to CD drive and from CD to hard disk. So these are the main feature
of our project which satisfies all the requirement of our college’s library
4
Platform Used: ----
Windows XP (professional)
This is exactly the window graphical user interface
5
Front & Back end used
very quickly. Visual Basic applications are very popular as front-end to many
can develop easy to use data input forms .data in access store in the form of
tables
6
Testing mechanisms
This Project was testing on Celeron or any higher system as like P-III or P-IV
7
Introduction of Visual Basic
Visual Basic language is having several faces. One is Visual, which comprises
of objects and tools that easily assembles themselves into a modern Windows
interface.
Another face is the Visual Basic language, which is an outcome of the original
BASIC language. BASIC (Beginners All-Purpose Symbolic Instruction Code).
BASIC was invented in the early 1960s. It was intended to be as easy to
understand and as close to layman language as possible.
8
Visual Basic has kept the BASIC tradition intact in this respect. It is one of the
easiest computer languages to work with and understand.
Data Controls
(a) Data Control : This control is the most versatile to cruise through a
Database, but it has its own limitations on the programming interface.
(b) ADO Data Control : This control is more versatile in the way that the
program code is more compact and making relationships between various
controls is very simple.
OBJECTIVES
9
PROJECT CATEGORY The project categorizes itself in Visual
Basic. For database management it uses Jet Database engine which works
behind Microsoft Access. It uses Data Controls.
Visual Basic IDE : This is the most amazing and useful component of
Visual Basic, this is the built in IDE or Integrated Development Environment.
In older versions of visual basic programmers used a text editor(similar to
word processor) to write and make changes to their code, but with Visual
Basic IDE one can easily design screens tables etc using inbuilt controls and
IDE actually writes code for these controls on its own for carrying out the
design constructions.
10
don’t know computers. This project being on the platform of windows
incorporates all its versatile genuine features.
MENU EDITOR
“Menu Editor” Utility of VB can be accessed from Tools menu in the
Forms Design screen. This utility is used for creating menus. It allows you to
create custom menus for your application and to define their properties
TOOLBAR:
Toolbars are a collection of icons, which provide mouse-driven short-
cuts to menu options. The toolbar can be easily added to the form by
STATUS BAR
The Status bar is a common Windows feature. The Status bar is
normally at the bottom of a window and on the status bar certain information
in displayed like date, time etc. The status bar can be easily added to your
form as it is available as a control in the component, Microsoft Windows
Common controls 6.0.
11
VARIABLES
We often need to store values temporarily when performing calculations with
Visual Basic. For example, we might want to calculate several values,
compare them and perform different operations on them, depending on the
result of the comparison. We need to retain the values if we want to compare
them but not store them in a property
Label: The label control displays text a user cannot interact with or modify.
Textbox: The text box control provides an area to enter or display text.
Frame: The frame control provides a visual and functional container for
controls
12
Combo Box: The Combo box control combines a text box with a list box.
Allows a user to type in a selection or select an item from a drop-down list.
List Box: The list box control displays a list of items that a user can choose
from.
TABLE STRUCTURE
13
BCODE NUMBER 2
AUTHOR TEXT 50
PUB TEXT 50
NOC NUMBER 2
DATE TEXT 50
IBOOK NUMBER 2
RBOOK NUMBER 2
2. ibook
14
DATE TEXT 2
BNAME TEXT 50
AUTHOR TEXT 50
PUB TEXT 50
STOCK NUMBER 2
CLASS TEXT 50
ROLL NUMBER 2
NAME TEXT 50
BNO NUMBER 50
3. rbooks
15
FIELD NAME TYPE SIZE
RDATE TEXT 50
BNO NUMBER 2
CLASS TEXT 50
ROLL NUMBER 2
NAME TEXT 50
BNAME TEXT 50
AUTHOR TEXT 50
PUB TEXT 50
IDATE TEXT 50
FINE NUMBER 2
4. student
16
FIELD NAME TYPE SIZE
DOB TEXT 50
SEX TEXT 50
FNAME TEXT 50
OCC TEXT 50
ADD TEXT 50
PHONE NUMBER 2
ADATE TEXT 50
CLASS TEXT 50
ROLL NUMBER 2
SEM NUMBER 2
5. teacher
17
FIELD NAME TYPE SIZE
ID NUMER 2
NAME TEXT 50
DOB TEXT 50
SEX TEXT 50
MS TEXT 50
EQ TEXT 50
EX TEXT 50
FNAME TEXT 50
ADD TEXT 50
TEL NUMBER 2
CDATE TEXT 50
DOJ TEXT 50
18
6. tibook
IDATE TEXT 50
TDATE TEXT 50
AUTHOR TEXT 50
STOCK NUMBER 2
TNAME TEXT 50
ID NUMBER 2
BN NUMBER 2
19
7. trbook
CDATE TEXT 50
BN NUMBER 2
TNAME TEXT 50
INAME TEXT 50
BNAME TEXT 50
TNAME TEXT 50
AUTHOR TEXT 50
PUB TEXT 50
20
CODING
OF
PROJECT
21
Sub bu_Click()
If MsgBox("Insert the floppy into A: Drive to write BackUp data.",
vbOKCancel, "Take BackUp") = vbCancel Then Exit Sub
BackUp
Form1(library.frm)
Private Sub ad_Click()
Form10.Show
End Sub
Private Sub am_Click()
frmabout.Show
End Sub
End Sub
End Sub
23
Private Sub te3_Click()
Form8.Show
End Sub
24
Label1.Caption = Mid(Label1.Caption, 2, Len(Label1.Caption)) +
Mid(Label1.Caption, 1, 1)
End Sub
Form3.Show
Case 5
Form4.Show
Case 7
Form5.Show
Case 8
Form6.Show
Case 10
Form7.Show
Case 11
Form8.Show
Case 13
Form9.Show
Case 15
Form2.Show
End Select
25
Form2(addnew.frm)
Dim bc As Integer
Private Sub Command1_Click()
Command2.Enabled = True
Command1.Enabled = False
Data1.Recordset.Fields("date").Value = Date
Data1.Recordset.Fields("rbook").Value = Val(Text4.Text)
Data1.Recordset.Fields("ibook").Value = 0
Data1.Recordset.Update
MsgBox "Book Added Successfully", vbOKOnly + vbInformation,
"Library System.."
Data1.Recordset.MoveFirst
End Sub
26
bc = Data1.Recordset.Fields("bcode").Value
Text1.Text = bc
End Sub
Text5.Text = Date
End Sub
Private Sub Text4_LostFocus()
Command1.Enabled = True
End Sub
Form3(issue.frm)
Dim S As String
Dim temp As String
Dim a As String
Dim t As Integer
Dim y As Integer
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
y=0
27
If Data1.Recordset.Fields("bname").Value = S Then
y=1
End If
'Combo2.AddItem (Data1.Recordset.Fields("author").Value)
'Exit Do
'Else
If y = 1 Then
Combo2.AddItem (Data1.Recordset.Fields("author").Value)
End If
Data1.Recordset.MoveNext
'End If
Loop
End Sub
temp = Combo2.Text
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
Text1.Text = Data1.Recordset.Fields("pub").Value
Text2.Text = Data1.Recordset.Fields("noc").Value
Exit Do
Else
Data1.Recordset.MoveNext
28
End If
Loop
End Sub
End If
Data2.Recordset.MoveNext
Loop
End Sub
Data2.Recordset.MoveFirst
Do Until Data2.Recordset.EOF
If t = Data2.Recordset.Fields("roll").Value Then
Text4.Text = Data2.Recordset.Fields("name").Value
29
Exit Do
End If
Data2.Recordset.MoveNext
Loop
End Sub
tp = Val(Text3.Text)
p=0
Data3.Recordset.MoveFirst
Do Until Data3.Recordset.EOF
If tp = Data3.Recordset.Fields("bno").Value Then
p=1
Exit Do
Else
Data3.Recordset.MoveNext
End If
Loop
If p = 1 Then
MsgBox "This Book No. is Invalid or book with this no. is Allready
Issued", vbOKOnly + vbInformation, "Library System.."
Text1.Text = " "
Text4.Text = " "
30
Text2.Text = " "
Text3.Text = " "
Combo1.Text = " "
Combo2.Text = " "
Combo3.Text = " "
Combo4.Text = " "
Else
Data3.Recordset.AddNew
Data3.Recordset.Fields("date").Value = Date
Data3.Recordset.Fields("bname").Value = S
Data3.Recordset.Fields("author").Value = temp
Data3.Recordset.Fields("pub").Value = Text1.Text
Data3.Recordset.Fields("stock").Value = Val(Text2.Text)
Data3.Recordset.Fields("class").Value = a
Data3.Recordset.Fields("roll").Value = t
Data3.Recordset.Fields("name").Value = Text4.Text
Data3.Recordset.Fields("bno").Value = Val(Text3.Text)
Data3.Recordset.Update
MsgBox "Book Issued", vbOKOnly + vbInformation, "Library
System.."
Text1.Text = " "
Text4.Text = " "
Text2.Text = " "
If p = 0 Then
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
If S = Data1.Recordset.Fields("bname").Value And temp =
Data1.Recordset.Fields("author").Value Then
31
rbb = Data1.Recordset.Fields("rbook").Value
ibb = Data1.Recordset.Fields("ibook").Value
If rbb <= 0 Then
End Sub
32
Private Sub Form_Activate()
Data3.Recordset.MoveLast
Text6.Text = Data3.Recordset.Fields("bno").Value
Dim y As Integer
Dim y1 As String
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
y1 = Data1.Recordset.Fields("bname").Value
y=0
For j = 0 To Combo1.ListCount - 1
If Trim(Combo1.List(j)) = Trim(y1) Then
y=1
End If
Next j
If y = 0 Then
Combo1.AddItem (y1)
End If
Data1.Recordset.MoveNext
Loop
Dim x As Integer
Dim x1 As String
Data2.Recordset.MoveFirst
Do Until Data2.Recordset.EOF
x1 = Data2.Recordset.Fields("class").Value
x=0
For j = 0 To Combo3.ListCount - 1
If Trim(Combo3.List(j)) = Trim(x1) Then
33
x=1
End If
Next j
If x = 0 Then
Combo3.AddItem (x1)
End If
Data2.Recordset.MoveNext
Loop
End Sub
End Sub
Form4(tissue.frm)
Dim S As String
Dim temp As String
Dim temp1 As String
Combo2.Clear
Text1.Text = " "
Text2.Text = " "
S = Combo1.Text
Dim y As Integer
34
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
y=0
If Data1.Recordset.Fields("bname").Value = S Then
y=1
End If
'Combo2.AddItem (Data1.Recordset.Fields("author").Value)
'Exit Do
'Else
If y = 1 Then
Combo2.AddItem (Data1.Recordset.Fields("author").Value)
End If
Data1.Recordset.MoveNext
'End If
Loop
End Sub
temp = Combo2.Text
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
35
If Data1.Recordset.Fields("author").Value = temp And S =
Data1.Recordset.Fields("bname").Value Then
Text1.Text = Data1.Recordset.Fields("pub").Value
Text2.Text = Data1.Recordset.Fields("noc").Value
Exit Do
Else
Data1.Recordset.MoveNext
End If
Loop
End Sub
temp1 = Combo3.Text
Data2.Recordset.MoveFirst
Do Until Data2.Recordset.EOF
If temp1 = Data2.Recordset.Fields("name").Value Then
Text4.Text = Data2.Recordset.Fields("id").Value
Exit Do
Else
Data2.Recordset.MoveNext
End If
Loop
End Sub
36
Dim tp As Integer
tp = Val(Text3.Text)
p=0
Data3.Recordset.MoveFirst
Do Until Data3.Recordset.EOF
If tp = Data3.Recordset.Fields("bn").Value Then
p=1
Exit Do
Else
Data3.Recordset.MoveNext
End If
Loop
If p = 1 Then
MsgBox "Sorry ,this Book No. is Invalid or book with this no. is
Allready Issued", vbOKOnly + vbInformation, "Library System.."
Text1.Text = " "
Text2.Text = " "
Data3.Recordset.Fields("id").Value = Val(Text4.Text)
37
Data3.Recordset.Fields("bn").Value = Val(Text3.Text)
Data3.Recordset.Update
MsgBox "Book Issued", vbOKOnly + vbInformation, "Library
System.."
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text4.Text = " "
Combo1.Text = " "
Combo2.Text = " "
Combo3.Text = " "
End If
If p = 0 Then
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
If S = Data1.Recordset.Fields("bname").Value And temp =
Data1.Recordset.Fields("author").Value Then
rbb = Data1.Recordset.Fields("rbook").Value
ibb = Data1.Recordset.Fields("ibook").Value
38
Data1.Recordset.Update
End If
Exit Do
Else
Data1.Recordset.MoveNext
End If
Loop
Else
MsgBox "Sorry ,this Book No. is Invalid or book with this no. is
Allready Issued", vbOKOnly + vbInformation, "Library System.."
Text1.Text = " "
Text2.Text = " "
Text3.Text = " "
Text4.Text = " "
Combo1.Text = " "
Combo2.Text = " "
Combo3.Text = " "
End If
End Sub
Text6.Text = Data3.Recordset.Fields("bn").Value
Dim y As Integer
Dim y1 As String
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
39
y1 = Data1.Recordset.Fields("bname").Value
y=0
For j = 0 To Combo1.ListCount - 1
If Trim(Combo1.List(j)) = Trim(y1) Then
y=1
End If
Next j
If y = 0 Then
Combo1.AddItem (y1)
End If
Data1.Recordset.MoveNext
Loop
Data2.Recordset.MoveFirst
Do Until Data2.Recordset.EOF
Combo3.AddItem (Data2.Recordset.Fields("name").Value)
Data2.Recordset.MoveNext
Loop
End Sub
End Sub
Form5(sreturm.frm)
40
End Sub
Command1.Enabled = False
temp1 = temp
Data2.Recordset.AddNew
Data2.Recordset.Fields("rdate").Value = Date
Data2.Recordset.Fields("bno").Value = temp
Data2.Recordset.Fields("class").Value = Text3.Text
Data2.Recordset.Fields("roll").Value = Val(Text1.Text)
Data2.Recordset.Fields("name").Value = Text2.Text
Data2.Recordset.Fields("bname").Value = Text7.Text
Data2.Recordset.Fields("author") = Text4.Text
Data2.Recordset.Fields("pub") = Text6.Text
Data2.Recordset.Fields("idate") = Text8.Text
Data2.Recordset.Fields("fine") = Val(Text9.Text)
Data2.Recordset.Update
41
MsgBox "Book Returned", vbOKOnly + vbInformation, "Library
System.."
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
If temp1 = Data1.Recordset.Fields("bno").Value Then
tbn = Data1.Recordset.Fields("bname").Value
tauthor = Data1.Recordset.Fields("author").Value
Data1.Recordset.Delete
Exit Do
Else
Data1.Recordset.MoveNext
End If
Loop
42
Data3.Recordset.MoveFirst
Do Until Data3.Recordset.EOF
rbb = Data3.Recordset.Fields("rbook").Value
ibb = Data3.Recordset.Fields("ibook").Value
noc = Data3.Recordset.Fields("noc").Value
Data3.Recordset.Edit
Data3.Recordset.Fields("rbook").Value = rbb
Data3.Recordset.Fields("ibook").Value = ibb
Data3.Recordset.Update
Exit Do
Else
Data3.Recordset.MoveNext
End If
Loop
43
End Sub
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
If temp = Data1.Recordset.Fields("bno").Value Then
Text3.Text = Data1.Recordset.Fields("class").Value
Text1.Text = Data1.Recordset.Fields("roll").Value
Text2.Text = Data1.Recordset.Fields("name").Value
Text7.Text = Data1.Recordset.Fields("bname").Value
Text4.Text = Data1.Recordset.Fields("author").Value
Text6.Text = Data1.Recordset.Fields("pub").Value
Text8.Text = Data1.Recordset.Fields("date").Value
Exit Do
Else
Data1.Recordset.MoveNext
End If
Loop
Dim id As Date
Dim rd As Date
id = Data1.Recordset.Fields("date").Value
rd = Date
44
x = Day(id)
y = Day(rd)
z=y-x
If z > 7 Then
Text9.Text = (z - 7) * 5
Else
Text9.Text = "0"
End If
End Sub
Else
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
Combo1.AddItem (Data1.Recordset.Fields("bno").Value)
Data1.Recordset.MoveNext
Loop
End If
End Sub
End Sub
45
Form6(treturn.frm)
End Sub
Command1.Enabled = False
temp1 = temp
Data1.Recordset.AddNew
Data1.Recordset.Fields("cdate").Value = Date
Data1.Recordset.Fields("bn").Value = temp
Data1.Recordset.Fields("tname").Value = Text3.Text
Data1.Recordset.Fields("idate").Value = Text8.Text
Data1.Recordset.Fields("bname").Value = Text7.Text
Data1.Recordset.Fields("author") = Text4.Text
Data1.Recordset.Fields("pub") = Text6.Text
Data1.Recordset.Update
MsgBox "Book Returned", vbOKOnly + vbInformation, "Library
System.."
46
Data2.Recordset.MoveFirst
Do Until Data2.Recordset.EOF
If temp1 = Data2.Recordset.Fields("bn").Value Then
tbn = Data2.Recordset.Fields("bname").Value
tauthor = Data2.Recordset.Fields("author").Value
Data2.Recordset.Delete
Exit Do
Else
Data2.Recordset.MoveNext
End If
Loop
Combo1.Text = " "
Text3.Text = " "
Text4.Text = " "
Text6.Text = " "
Text7.Text = " "
Text8.Text = " "
47
MsgBox "Stock is Allready Complete", vbOKOnly + vbInformation,
"Library System.."
Else
rbb = rbb + 1
ibb = ibb - 1
End If
Data3.Recordset.Edit
Data3.Recordset.Fields("rbook").Value = rbb
Data3.Recordset.Fields("ibook").Value = ibb
Data3.Recordset.Update
Exit Do
Else
Data3.Recordset.MoveNext
End If
Loop
End Sub
Do Until Data2.Recordset.EOF
If temp = Data2.Recordset.Fields("bn").Value Then
Text3.Text = Data2.Recordset.Fields("tname").Value
Text8.Text = Data2.Recordset.Fields("idate").Value
Text7.Text = Data2.Recordset.Fields("bname").Value
Text4.Text = Data2.Recordset.Fields("author").Value
48
Text6.Text = Data2.Recordset.Fields("pub").Value
Exit Do
Else
Data2.Recordset.MoveNext
End If
Loop
End Sub
Data2.Recordset.MoveFirst
Do Until Data2.Recordset.EOF
Combo1.AddItem (Data2.Recordset.Fields("bn").Value)
Data2.Recordset.MoveNext
Loop
End If
End Sub
End Sub
49
Form10(student.frm)
Dim bc As Integer
Private Sub Command1_Click()
Else
Else
Else
Else
50
Text5.SetFocus
Else
Else
If Text7 = Empty Then
MsgBox "You Have To Fill Phone Number", vbInformation,
"Information"
Text7.SetFocus
Else
Else
Data1.Recordset.Fields("adate").Value = Date
Data1.Recordset.Update
MsgBox "Student Added Successfully", vbOKOnly + vbInformation,
"Library System.."
Data1.Recordset.MoveFirst
Command2.Enabled = True
Command1.Enabled = False
End If
End If
End If
End If
End If
End If
End If
51
End If
End Sub
End Sub
Data1.Recordset.AddNew
Text1.Text = ""
Text4.Text = ""
Text3.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text12.Text = ""
Text1.SetFocus
bc = bc + 1
Text2.Text = bc
End Sub
52
Option1(0).Value = True
Else
If Text9.Text = "F" Then
Option1(1).Value = True
End If
End If
Data1.Recordset.MoveFirst
End Sub
Data1.Recordset.MoveLast
End Sub
Option1(1).Value = True
End If
53
End If
Data1.Recordset.MoveNext
End If
End Sub
Data1.Recordset.MovePrevious
End If
End Sub
54
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
If Trim(na) = Trim(Data1.Recordset.Fields("name").Value) Then
S=1
Exit Do
Else
Data1.Recordset.MoveNext
End If
Loop
If S = 0 Then
MsgBox "No Record Found", vbOKOnly + vbInformation, "Library
System.."
End If
End Sub
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
If Trim(na1) = Trim(Data1.Recordset.Fields("roll").Value) Then
S=1
Exit Do
Else
Data1.Recordset.MoveNext
End If
Loop
If S = 0 Then
MsgBox "No Record Found", vbOKOnly + vbInformation, "Library
System.."
End If
55
End Sub
Data1.Recordset.Edit
Data1.Recordset.Update
End Sub
Dim y As Integer
Dim y1 As String
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
y1 = Data1.Recordset.Fields("class").Value
y=0
For j = 0 To Combo1.ListCount - 1
If Trim(Combo1.List(j)) = Trim(y1) Then
y=1
End If
Next j
If y = 0 Then
Combo1.AddItem (y1)
End If
Data1.Recordset.MoveNext
Loop
Data1.Recordset.MoveLast
bc = Data1.Recordset.Fields("roll").Value
Text2.Text = bc
56
End Sub
End Sub
End Sub
Form11(teacher.frm)
57
Data1.Recordset.Fields("cdate").Value = Date
Data1.Recordset.Update
MsgBox "Teacher Added Successfully", vbOKOnly + vbInformation,
"Library System.."
Data1.Recordset.MoveFirst
End Sub
Data1.Recordset.AddNew
bc1 = bc1 + 1
Text2.Text = bc1
End Sub
58
Private Sub Command3_Click()
Data1.Recordset.MoveFirst
End Sub
End Sub
End Sub
59
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
If Trim(na) = Trim(Data1.Recordset.Fields("name").Value) Then
S=1
Exit Do
Else
Data1.Recordset.MoveNext
End If
Loop
If S = 0 Then
MsgBox "No Record Found", vbOKOnly + vbInformation, "Library
System.."
End If
End Sub
Data1.Recordset.MoveFirst
Do Until Data1.Recordset.EOF
If Trim(na1) = Trim(Data1.Recordset.Fields("id").Value) Then
S=1
Exit Do
Else
Data1.Recordset.MoveNext
End If
Loop
If S = 0 Then
MsgBox "No Record Found", vbOKOnly + vbInformation, "Library
System.."
End If
End Sub
60
Private Sub Form_Activate()
Data1.Recordset.MoveLast
bc1 = Data1.Recordset.Fields("id").Value
Text2.Text = bc1
End Sub
End Sub
End Sub
End Sub
Form12(pass.frm)
61
Private Sub Command1_Click()
If Text1.Text = "ast" Or Text1.Text = "AST" Then
Form1.Show
Unload Me
Else
MsgBox "Wrong Password", vbOKOnly + vbInformation, "Library
System.."
Text1.Text = ""
Text1.SetFocus
End If
End Sub
For i = 0 To 12
Label1(i).Visible = False
Next
End Sub
62
Private Sub Timer1_Timer()
Static S As Integer
Label1(S).Visible = True
If S >= 12 Then
S=0
Text1.Enabled = True
'Text1.SetFocus
Command1.Enabled = True
Command2.Enabled = True
End If
S=S+1
End Sub
Form13(exit.frm)
Form7(Senquiry.frm)
Form7(Tenquiry.frm)
63
Private Sub Command1_Click()
CommonDialog1.ShowPrinter
End Sub
Form9(Stock.frm)
Frmabout(frmabout.frm)
frmabout.CurrentY = 1000 - (3 * i)
frmabout.Print "Library System"
For a = 1 To 10000
Next
Next
Case 16
For i = 0 To 255
frmabout.ForeColor = RGB(AnimationStarter * 10, i, AnimationStarter *
10)
frmabout.CurrentX = 1300 - (3 * i)
frmabout.CurrentY = 1000 - (3 * i)
frmabout.Print "Library System"
For a = 1 To 10000
Next
Next
65
Case 20
For i = 0 To 255
frmabout.ForeColor = RGB(i, AnimationStarter * 10, AnimationStarter *
10)
frmabout.CurrentX = 1300 - (3 * i)
frmabout.CurrentY = 1000 - (3 * i)
frmabout.Print "Library System"
For a = 1 To 10000
Next
Next
AnimationStarter = -3
End Select
' black
frmabout.CurrentX = 1300 - (3 * i)
frmabout.CurrentY = 1000 - (3 * i)
frmabout.ForeColor = vbBlack
frmabout.Print "Library System"
End If
AnimationStarter = AnimationStarter + 1
End Sub
Static S As Integer
If S Then
Label2.Visible = False
Else
Label2.Visible = True
End If
S = Not S
66
End Sub
Wel(wel.frm)
End Sub
Modules
Public bc As Integer
Public ib As Integer
Public rb As Integer
Public nam As String
OUTPUT
67
OF
PROJECT
68
69
Password form
Main form
70
Add Student
71
72
Teacher Recruitment form
73
Adding new books form
74
Books Issuing form (Student)
75
Book Issuing form (teacher)
76
Book Returning form (Student)
77
Book Returning form (Teacher)
78
Issued Books Enquiry
79
Issued Books Enquiry
80
Library Stock Enquiry
81
Books Issuing form (Student)
82
CONCLUSION
In the end we come to conclusion that this project is very helpful for storing
and maintaining books record as well as student data. we can also use the
menu bar as well as toolbar to use various options. This project also provides
us the facility to search books using book name, author name as well as book
83
serial no. with the help of this project we can easily handle all the process of
library system.
Bibliography
media).
84
85