Library Management System VB Project Documentation
Library Management System VB Project Documentation
com
PROJECT REPORT ON
ACKNOWLEDGEMENT
http://www.chetanasprojects.com
supportive nature. His inspiring nature has always
made my work easy.
PREFACE
The field of computer education has witnessed a
sea change since the discovery of simple calculating
machine by CHARLES BABAGE. The era is
confronting with the speed and mind of computer, i.e.
the speed and intelligence have become vital. At one
end they are competing with each other. Not only
these computers have immensely benefited the
mankind in the field of planning. The wheel of
progress is rolling with much faster speed then it used
to be a decade ago; thank to the revolution ushered in
by computer. But all this haven’t come as easy as it
appears to be rather it requires planning strategy and a
lot of brain storming before a package is developed or
a language is born.
Since the prime task of the computer is to
process a raw data into useful information, we can
ignore the basic step of information collection ret
rival and processing at our risk only. The importance
of finding the right information in the possible least
time as well know to us.
ABSTRACT
Maintaining records of application for estates, the
manual system is too complex and cumbersome.
Since time and resources available we have been
proposed to develop an inventory system.
Visual Basic
Power Builder
MDI support.
-: INTRODUCTION TO ACCESS :-
TABLES :
QUERIES:
ADVANTAGES OF ACCESS :-
No authentication measures.
Security:-
Portability:-
Reliability:-
Simulation Test.
Memory Test.
Path Test.
Loop Test.
OS Compatibility Test.
Data Test.
The above listed test are carried out at development
site, installation site and during the development
process as per the requirement. The multiple waterfall
modules during the development of the project will
assure minimum risk.
Application Requirement:
Database: Access
ACCESS TABLE’S DETAIL’S:
V.B.
FORM
DESIGN
&
CODDING
Img1.Height = Me.ScaleHeight
Img1.Width = Me.ScaleWidth
LblWelcome1.Left = (Me.ScaleWidth / 2 -
LblWelcome1.Width / 2) - 120
LblWelcome2.Left = Me.ScaleWidth / 2 - LblWelcome2.Width
/2
End Sub
End Sub
'OPEN RECORDSET
rs_user.Open "select * from Login_Mast", conn,
adOpenStatic, adLockPessimistic
End Sub
Option Explicit
Call MnuBkRpt_Click
ElseIf str = "CD" Then
Call MnuCdRpt_Click
Else
MsgBox "Invalid input.", vbCritical, "Report Creation"
End If
End Sub
Private Sub CmdBkSubISu_Click()
Call MnuBkIsuSub_Click
End Sub
CmdBkSubISu.Enabled = False
End If
End Sub
End If
End Sub
'================================================
==='GENERATE REPORT FOR BOOK/CD (PROCEDURE)
End If
'CREATE REPORT
'OPEN FILE
FL = typ & "_" & Format(Date, "dd-mm-yyyy")
Open App.Path & "\Reports\" & FL & ".txt" For Output As #1
Print #1,
"
"
Print #1, ""
Print #1, " Date : " & Format(Date, "dd-mm-yyyy")
Print #1, ""
Print #1,
"
"
Print #1, " CODE TITLE AUTHOR
PRICE QUANTITY "
Print #1,
"
"
rs.MoveFirst
Do While Not rs.EOF
Print #1, " " & rs!Code & " " & _
rs!title & Space(31 - Len(rs!title)) & _
rs!Author & Space(22 - Len(rs!Author)) & _
Space(6 - Len(rs!Price)) & rs!Price & _
Space(11 - Len(rs!qty)) & rs!qty
Print #1, ""
rs.MoveNext
Loop
rs.Close
Close #1
MsgBox FL & ".txt created successfully.", vbInformation,
"Member Report"
End Sub
TxtConfPwd.SetFocus
Exit Sub
End If
'DUPLICATION CHECK
rs_user.MoveFirst
rs_user.Find "usr='" & TxtUser & "'"
Query = "insert into Login_Mast values ('" & TxtUser & "','"
&_
TxtPwd & "','" & typ & "')"
MsgBox Query
conn.Execute Query
MsgBox "New user is successfully added.", vbInformation,
"User Addition"
TxtUser = ""
TxtPwd = ""
TxtConfPwd = ""
CmbUserType.SetFocus
Call Form_Load
End Sub
MDIFrm.Pct1.Visible = False
'OPEN RECORDSET
If rs_user.State = 1 Then rs_user.Close
rs_user.Open "select * from Login_Mast", conn,
adOpenStatic, adLockPessimistic
CmbUserType.Text = CmbUserType.List(0)
End Sub
Else
rs_user.MoveFirst
rs_user.Find "usr='" & TxtUser & "'"
End If
'UPDATE PASSWORD
conn.Execute Query
MsgBox "Your password is changed successfully.",
vbInformation, "Change Password"
TxtUser.Text = ""
TxtCurPwd.Text = ""
TxtNewPwd.Text = ""
TxtConfPwd.Text = ""
TxtUser.SetFocus
End Sub
Else
End If
'CHECK FOR DUPLICATE RECORD
rs_user.MoveFirst
rs_user.Find "usr='" & TxtNewUser & "'"
End If
TxtCurUser.Text = ""
TxtNewUser.Text = ""
TxtCurUser.SetFocus
End Sub
End Sub
If TabEditAcc.Tab = 0 Then
FremEditPwd.Enabled = False
FremEditUser.Enabled = True
CmdUser.Default = True
'CmbUserType.Text = CmbUserType.List(0)
TxtCurUser = ""
TxtNewUser = ""
Else
FremEditPwd.Enabled = True
FremEditUser.Enabled = False
CmdPwd.Default = True
End Sub
MsgBox "You can not delete this Admin user." & vbCrLf &
"Atlist one Admin user is required.", vbCritical,
"User Deletion"
Exit Sub
End If
End Sub
Option Explicit
Class = CmbClass.Text
Call fillYear(Me) 'SELECT YEAR
CmbClassYear.Text = CmbClassYear.List(0)
End Sub
Yer = CmbClassYear.Text
End Sub
CmbDay.AddItem i
Next i
CmbDay.Text = Day(Date)
End Sub
cmd = "Add"
CmdExit.Caption = "&Cancel"
'ENABLE ALL CONTROLS
Call Member.controlEnable(Me, True)
TxtCode.Locked = True
CmdSave.Enabled = True 'ENABLE SAVE BUTTON
CmbClass.Enabled = False 'DISABLE CLASS COMBO
CmbClassYear.Enabled = False 'DISABLE YEAR COMBO
FremCategory.Enabled = False 'DISABLE SEARCH FREAM
Call Book.disableCommand(Me) 'DISABLE COMMAND
BTNS
CmdSave.Enabled = True
End Sub
If rs_mbr.RecordCount = 0 Then
Else
If rs_mbr.EOF Then
rs_mbr.MoveFirst
'RETRIVE RECORD
Call Member.memberData(Me, rs_mbr)
Exit Sub
Else
'RETRIVE RECORD
Call Member.memberData(Me, rs_mbr)
End If
End If
End If
End Sub
Unload Me
End If
End Sub
'VALIDATIONS
If TxtCode = "" Or TxtSurname = "" Or TxtFirst = "" Or TxtLast
= "" Or _
TxtAddress = "" Or TxtCity = "" Or TxtFee = "" Then
MsgBox "Enter all compulsory information.",
vbInformation, "Member Entry"
Exit Sub
End If
dt = CmbDay.Text & "/" & CmbMonth.Text & "/" &
CmbYear.Text
If OptMale.Value = True Then
sex = "M"
Else
sex = "F"
End If
'ADD RECORD
If cmd = "Add" Then
Qry = "insert into Mbr_Mast values ('" & TxtCode & "','" &
TxtSurname & "','" & _
TxtFirst & "','" & TxtLast & "','" & dt & "','" & TxtAddress &
"','" & _
TxtCity & "','" & CmbClass.Text & "','" &
CmbClassYear.Text & "','" & _
TxtContact & "','" & sex & "'," & TxtFee & ",0)"
conn.Execute Qry
MsgBox Qry
conn.Execute Qry
End If
End Sub
'DAY COMBO
For i = 1 To 31
CmbDay.AddItem i
Next
'MONTH COMBO
For i = 1 To 12
CmbMonth.AddItem i
Next
'YEAR COMBO
For i = 1950 To 2050
CmbYear.AddItem i
Next
CmbClass.Text = Class
Me.MsfgSearch.FormatString = "No. |Code |Name
|Join Date |City "&_
"|Contect No. |Gender| Fine"
End Sub
End Sub
If Forms.Count = 2 Then
MDIFrm.Pct1.Visible = True
End If
End Sub
'================================================
===
Private Sub fillMbrGrid1(Frm As Form, rs As Recordset)
Dim r As Integer
Frm.MsfgSearch.Cols = 8
Frm.MsfgSearch.Rows = rs.RecordCount + 1
LstFrom.Clear
If rs.RecordCount > 0 Then
rs.MoveNext
Loop
End If
End Sub
LstTo.Clear
If rs1.RecordCount > 0 Then
rs1.MoveNext
Loop
End If
End Sub
conn.Execute Qry
LstFrom.Clear
Call CmbClassYearTo_Click 'TO RETRIVE UPDATED
DATA
Else
MsgBox "Destination Class is not empty.", vbInformation,
"Member Transfer"
End If
End Sub
CmbClassFrom.Text = CmbClassFrom.List(0)
CmbClassTo.Text = CmbClassTo.List(0)
End Sub
'================================================
===
'FILL YEAR COMBO BOX
Public Sub fillYear(c As Control, y As Control)
y.Clear
If c.Text = "BBA" Or c.Text = "BCOM" Then
y.AddItem "FY"
y.AddItem "SY"
y.AddItem "TY"
End Sub