-
8/12/2019 98940815 Library Management System VB Project Documentation
1/69
A
Project Report
On
LIBRARY MANAGEMENT
SYSTEM
Submitted in partial fulfillment of the requirement
!or the a"ard of
#ot Graduate $iploma in %omputer Appli&ation
'#G$%A II Semeter(
Seion )*+,-)*+.
Guide / Submitted b0/
M1 Ru&hi
$ate0
Submitted To
-
8/12/2019 98940815 Library Management System VB Project Documentation
2/69
MA23ANLAL %3AT4R5E$I NATI6NAL 4NI5ERSITY 6!
764RNALISM 8 %6MM4NI%ATI6N9 B36#AL 'M1#1(
:
6;!6R$ %6LLEGE9 G
-
8/12/2019 98940815 Library Management System VB Project Documentation
3/69
MA23ANLAL %3AT4R5E$I NATI6NAL 4NI5ERSITY 6!
764RNALISM 8 %6MM4NI%ATI6N9 B36#AL 'M1#1(
#ro=e&t E?aluation1. Candidates Roll No.
.....
Students Name 1.... Email
Students Name 2.... Email
2. Project Title
..
3. Software Base
..
. S!onsorin" #nstitute $ddress .
...
%. Su&mitted for course ' (ear .
). Stud* Centre Code+ Name+
$ddress..
,. Total #nternal $ssessment and e-am wor e/aluation
.0ars out of 1.
etails of E/aluation alon" name and si"nature of teacer .
.
.
...
#arti&ular Mar> out of Mar> a"arded Internal E@aminer
Name 8 Sinature
4. 5orwardin" &* 6ead of Stud* Center ...
7Si"nature+ Name+ ' Stud* Center Seal8 .
.
9. Remar of Stud* Center...
-
8/12/2019 98940815 Library Management System VB Project Documentation
4/69
1. :ni/ersit* !roject e-aminers e/aluation Total 0ars awarded
..
;ut of 1 etails of E/aluation alon" wit Name ' Si"nature of :ni/ersit* E-aminer.
#arti&ular Mar> out of Mar> a"arded E@ternal E@aminerName 8 Sinature
11. Remars of :ni/ersit* E-aminer..
.......
SELF CERTIFICATE
Tis is to certif* tat te !roject re!ort entitled Library
Management Systemis done &* me is an autentic wor carried
out of te award of te i!loma of Post
-
8/12/2019 98940815 Library Management System VB Project Documentation
5/69
Sinature of the tudent
Ru&hi $ate0
Roll NoCCCCCC111
-
8/12/2019 98940815 Library Management System VB Project Documentation
6/69
OXFORD COLLEGE
G
-
8/12/2019 98940815 Library Management System VB Project Documentation
7/69
ACKNOL!D"!M!N#
# tae tis !recious o!!ortunit* to e-!ress m*
"ratitude toward =?#BR$R( 0$N$
-
8/12/2019 98940815 Library Management System VB Project Documentation
8/69
PR!$AC!
Te field of com!uter education as witnessed a
sea can"e since te disco/er* of sim!le calculatin"
macine &* C6$R?ES B$B$
-
8/12/2019 98940815 Library Management System VB Project Documentation
9/69
A%S#RAC#
0aintainin" records of a!!lication for estates+
te manual s*stem is too com!le- and cum&ersome.
Since time and resources a/aila&le we a/e &een
!ro!osed to de/elo! an in/entor* s*stem.
$ll te outset te a!!lication reuirements were
studied and anal*sis and desi"n were carried out.
Te de/elo!ment !latform and software tool were
identified as Disual Basic ). 7$s 5ront>End8 and
$ccess 7$s Bac>End8 data&ase. :sin" /isual
!ro"rammin"+ o&ject are mani!ulated directl* and
also due to te feature of fast and eas* !rotot*!in"and
-
8/12/2019 98940815 Library Management System VB Project Documentation
10/69
Te detail of te !ro"rammin" ste!s followed
and im!ortant clauses incor!orated in te screen are
descri&ed in documents.
-
8/12/2019 98940815 Library Management System VB Project Documentation
11/69
Disual Basic is a/aila&le in tree /ersions+ eac "enerate to meet
a s!ecific set of de/elo!ment reuirement.
Te /isual &asic learnin" edition.
Te !rofessional edition.
Te enter!rise edition.
5IS4AL BASI% AN$ $ATABASE
Disual Basic can &e used to &uild /er* com!le- a!!lication.
Disual Basic effecti/e software tat can !erform all essentialmana"ement function. #t can &e used toF
Create data ta&le and store data in tem.
Edit data records.
Retrie/e data selecti/el* from stored records to
!ro/ide s!ecific information.
Pre!are !rinted information retrie/al re!orts.
Perform calculation. Create screens tat can interact wit users.
Disual Basic !ro/ides a wide /erit* of data access alternati/es+
for worin" wit local and remote data&ase+ includin" enter!rise le/el
tree>tiered clientGser/er a!!lication.
-/ INTR6$4%TI6N T6 A%%ESS /-
$atabae / D
$ data&ase is collection of information related to !articular or
!ur!ose suc as tracin" customer orders or maintainin" a music
-
8/12/2019 98940815 Library Management System VB Project Documentation
12/69
collection. #f *our data&ase isnt stored on a com!uter or onl* !arts of
it are+ *ou ma* &e tracin" information from /arie* of source tat *ou
a/e to coordinate and or"anie *our self.
:sin" it+ *ou can mana"e all our information from sin"ledata&ase file. Aitin file di/ide *our data usin" into se!arate stora"e
containers called ta&les /iew+ add+ and u!date ta&le data usin" forms
find and retrie/e just te data *ou want usin" ueries and anal*e or
!rint data in s!ecific la*out usin" re!orts.
To find and retrie/e just data tat meet condition *ou s!ecif*
includin" data from multi!le ta&les create a uer*. $ uer* can also
u!date multi!le records at te same time and !erform &uilt>in or
custom calculations on *our data. To easil* /iew+ enter and can"e
directl* in a ta&le+ create a form. Aen *ou o!en a form+ it retri/es te
data from one or more ta&les and dis!la* it on screen usin" te data
from *ou cose in te form usin" a la*out tat *ou creted from
scratc.
To anal*e *our data !resent it a certain wa* in !rint+
create a re!ort. 5or e-m!le+ *ou mi"t !rint one re!ort tat raw
material and calculates totals.
TABLES /
$ ta&les is a collection of data a&out a s!ecific to!ic+ suc
as !roducts or su!!liers. :sin" as se!arate ta&le for eac to!ic means
*ou store tat data onl* once wic maes *our data&ase more
efficient and reduces dataentr* errors. Ta&le or"anie data into
columns and rows.
#n ta&le dataseet /iew+ *ou can add+ edit or /iew te data
in a ta&le. (ou can also cec te s!ellin" and !rint *our ta&les data
filter or sort records can"e te dataseets a!!earance or can"e te
ta&les structure &* addin" or deletin" columns. (ou can create an
entire ta&le from scratc+ or add+ delete+ or customie an e-istin"
ta&les fields.
-
8/12/2019 98940815 Library Management System VB Project Documentation
13/69
4ERIES/
(ou use ueries to /iew+ can"e and anal*e data in
different wa*s. (ou can also use tem as te source of records forfroms and re!ort. Te most common t*!e of uer* is a select uer*. $
select uer* retrie/es data from one or more ta&les usin" criteria *ou
s!ecif* and ten dis!la* it in te order *ou want.
A$5ANTAGES 6!A%%ESS /-
0ore Relia&le tan oter RB0S.
Eas* to use and learn.
ata securit* is i".
:!datin" data&ase.
Su!!ort ;BC + $; data !ro"rammin" o&jects.
$iad?antae of Manual S0tem/- Te manual s*stem reuired more time for !rocessin".
Te !rocessin" is /er* len"t*.
#t reuire more clerical wor.
Te manual s*stem is more error !rone.
0anual s*stem is costl*.
#mmediate res!onse to te uires is difficult* and time
consumin".
#t is not !ossi&le to create uic re!ort.
0atematical calculation done manfull*.
No autentication measures.
-
8/12/2019 98940815 Library Management System VB Project Documentation
14/69
Need for &omputeriFed 0tem/-
Te main draw &ac of te e-istin" s*stem is tat manual wor
leads time consum!tion. #t affects te all !erson of mana"ement andalso te de!artments. Tere is num&er of da*>&*>da* transactions and
ence te lar"e num&er of re"ister a/e to te e!t to circulation+
wic a/e to te stored. $lso lar"e num&ers of re"ister a/e to te
e!t to te store. Tis document is reuired more storin" s!ace+ more
man!ower and jo& &ecome tedious. Sometime "aterin" of all
documents is a tedious jo&.
#n tis s*stem !rocess of summar* re!ort in main !art+usin" te com!uteried s*stem tis !rocess is &ecome sim!le and
small. (ou can immediatel* "ettin" te re!ort for te uer*. (ou can
"et tis all re!ort or summar* for te !re/ious *ear. Darious *ear.
Darious details a/e to te !ro/idin" to te mana"ement at an* time.
S0tem Attribute And ualit0
%hara&teriti&/
Se&urit0/-
Te s*stem is desi"ned ee!in" in /iew tat cances of
unautoried use are made neli"i&le. #n te desi"n de!endin" u!on te
user+ te* are entitled wit s!ecific reuired ri"t onl*. ;nl* te
$dministrator will &e a&le to create new users. 6e is te onl* !ersona/in" full access of main data&ase. $s seurit* is a crucial
caracteristic+ it is treated accordin" in tis s*stem.
#ortabilit0/-
Te desi"ned s*stem must o!erate on different /ersion of ;S
/i. Aindows 94+ NT+ IP etc. Pro!er care is taen at te time of
-
8/12/2019 98940815 Library Management System VB Project Documentation
15/69
desi"n and codin" so tat it will e-ecute and run !ro!ert*. To assure
!orta&ilit* of te s*stem+ &acward com!ati&ilit* u! to a certain le/el
will also &e maintained.
Reliabilit0/-
5ollowin" tests will &e !erformed to assure relia&ilit* of te
s*stem.
Simulation Test.
0emor* Test.
Pat Test.
?oo! Test.
Random ata Test.
;S Com!ati&ilit* Test.
6ardware Com!ati&ilit* Test.
ata Test.
Te a&o/e listed test are carried out at de/elo!ment site+ installation
site and durin" te de/elo!ment !rocess as !er te reuirement. Temulti!le waterfall modules durin" te de/elo!ment of te !roject will
assure minimum ris.
Appli&ation Requirement/
:ser PlatformF PCGPentium
;!eratin" S*stemF Aindows2
e/elo!ment ToolsF Disual Basic).
ata&aseF $ccess
-
8/12/2019 98940815 Library Management System VB Project Documentation
16/69
-
8/12/2019 98940815 Library Management System VB Project Documentation
17/69
A%%ESS TABLES $ETAILS/
TABLE + / L6GINHMAST '4er
Information(
!IEL$ NAME $ATA TY#E 8
'SIE(
$ES%RI#TI6N
:sr Te-t 728 :ser Name
Pw Te-t 728 :ser Password
T*! Te-t 718 T*!e of :ser
TABLEJK) B662HMAST 'Store Boo>
detail(
!IEL$ NAME $ATA TY#E 8
'SIE(
$ES%RI#TI6N
Code Te-t 7)8 BooGC Code
Title Te-t 738 Title of BooGCd
$utor Te-t 728 $uter of &oo7s8
Pu&liser Te-t 728 Pu&liser of Boo
PurJt ateGTime Purcase ate
Price Currenc* 7Standard8 Price of BooGCd
Kt* Num&er 7?on" int.8 BooGCd Kuantit*
PurJ5rom Te-t 7%8 Purcase 5rom
#sudB Num&er 7?on" int8 Kuantit* of issued
BooGcd
-
8/12/2019 98940815 Library Management System VB Project Documentation
18/69
TABLEJK, MBRHMAST 'Store Mater
detail(
!IEL$ NAME $ATA TY#E 8'SIE( $ES%RI#TI6N
Code Te-t 718 0em&er No
Surname Te-t 7%8 Surname
0em&er Te-t 7%8 0em&er Name
5ater Te-t 7%8 5ater Name
LoinJt ateGTime Loin ate
$ddress 0emo 0em&er $ddress
Cit* Te-t 728 Cit*
Crs Te-t 718 Course(er Te-t 718 (ear of Course75(+
S(+ T(+ SE01+etc...8
CntJNo Te-t 7%8 Contect Num&er
-
8/12/2019 98940815 Library Management System VB Project Documentation
19/69
TABLEJK ISS4EHMAST 'Store Iue
$etail(
!IEL$ NAME $ATA TY#E 8'SIE(
$ES%RI#TI6N
0&rJNo Te-t 7)8 0em&er No
Crs Te-t 718 Student Course or Staff
(er Te-t 718 (ear of Stud*
BJNo Te-t 7)8 Boo No.
#suJt ateGTime #ssue ate
?stJt ateGTime ?ast Su&mit ate
-
8/12/2019 98940815 Library Management System VB Project Documentation
20/69
D.B.
5;R0ES#
-
8/12/2019 98940815 Library Management System VB Project Documentation
21/69
!6RM - + /
-
8/12/2019 98940815 Library Management System VB Project Documentation
22/69
%6$E /
-
8/12/2019 98940815 Library Management System VB Project Documentation
23/69
$%mLogi&.Sho' *bModal ime%1.&abled = $al#eEnd Sub
!6RM - ) / L6GIN !6RM '!rmLoin1frm(
-
8/12/2019 98940815 Library Management System VB Project Documentation
24/69
%6$E / L6GIN !6RM '!rmLoin1frm(
+im %#,#e% # e' Reco%d#et
Private Sub CmdCancel_Click() &dEnd SubPrivate Sub CmdLogin_Click() b"pe = 334 #e%"pe = L 5la## = 6 7e% = $7
If %im(8t9#e%) = &d %im(8t:'d) = he&
M#go8 $ill all the detail#; *bI&fo%matio&; Logi& 8t9#e%.Set$oc# 8it Sb &d If
If 8t9#e% = LIRR7 &d 8t:'d = I+IS3$ he& #e%"pe = L #e%m = LIRR7 9&load $%mWelcome 9&load $%mLogi& M+I$%m.Sho'
8it Sb &d If
If %#,#e%.Reco%d5o&t ? 8t9#e% ? > If ot %#,#e%.3$ he& If %#,#e%.$ield#(1) = 8t:'d he& #e%"pe = %#,#e%.$ield#(2) #e%m = %#,#e%.$ield#(0) 9&load $%mWelcome
9&load $%mLogi& M+I$%m.Sho' 8it Sb l#e M#go8 W%o&g #e%&ame o% pa##'o%d.; *b5%itical; Logi& 8t9#e%.Set$oc# 8it Sb &d If l#e M#go8 W%o&g #e%&ame o% pa##'o%d.; *b5%itical; Logi& 8t9#e%.Set$oc#
-
8/12/2019 98940815 Library Management System VB Project Documentation
25/69
8it Sb &d If l#e M#go8 W%o&g #e%&ame o% pa##'o%d.; *b5%itical; Logi& 8t9#e%.Set$oc#
8it Sb &d If
End Sub
Private Sub Form_Load()
>3: R53R+S %#,#e%.3pe& #elect @ f%om Logi&,Ma#t; co&&; ad3pe&Static;
adLoc:e##imi#tic
End Sub
Private Sub Form_"nload(Cancel #s Integer) %#,#e%.5lo#eEnd Sub
Private Sub !$tP%d_&otFocus() 5all #elect8t(8t:'d)End Sub
Private Sub !$tP%d_'ePress('e#scii #s Integer) If 4e"#cii = AB he& 4e"#cii = 0 &d If 4e"#cii = ppe%(4e"#cii)End Sub
Private Sub !$t"ser_&otFocus() 5all #elect8t(8t9#e%)End Sub
Private Sub !$t"ser_'ePress('e#scii #s Integer) If 4e"#cii = AB he& 4e"#cii = 0 &d If 4e"#cii = ppe%(4e"#cii)End Sub
-
8/12/2019 98940815 Library Management System VB Project Documentation
26/69
!6RM , / M$I !6RM 'M$I!rm1frm(
-
8/12/2019 98940815 Library Management System VB Project Documentation
27/69
!6RM , / M$I !6RM 'M$I!rm1frm(
3ptio& 8plicit
+im %# # e' +3+.Reco%d#et+im $L # St%i&g >3 S3R $IL M
+im %pt # St%i&g
Private Sub CmdkEntr_Click() 5all M&3p%,5licEnd Sub
Private Sub CmdkR*t_Click() +im #t% # St%i&g
#t% = I&pto8(&te% 334 fo% oo %epo%t a&d 5+ fo% 5d %epo%t; Repo%t
5%eatio&; 334)
If #t% = 334 he&
5all M&Rpt,5lic l#eIf #t% = 5+ he& 5all M&5dRpt,5lic l#e M#go8 I&*alid i&pt.; *b5%itical; Repo%t 5%eatio& &d If
End Sub
Private Sub CmdkSubISu_Click() 5all M&I#Sb,5licEnd Sub
Private Sub CmdE$it_Click() &dEnd Sub
Private Sub CmdIsu+tl_Click()
-
8/12/2019 98940815 Library Management System VB Project Documentation
28/69
5all M&I#+tl,5licEnd Sub
Private Sub CmdIsuR*t_Click() 5all m&I#Rpt,5lic
End Sub
Private Sub Cmd,brEntr_Click() 5all M&Mb%3p%,5licEnd Sub
Private Sub Cmd,brR*t_Click() 5all M&Mb%Rpt,5licEnd Sub
Private Sub Cmd"#cc_Click()
5all M&9mgcc,5licEnd Sub
Private Sub LblClose_Click() :ct1.Ci#ible = $al#eEnd Sub
Private Sub ,+IForm_Load()
>5H54 9SR 7: If #e%m = LIRR7 he& M&9mg.&abled = $al#e 5md9cc.&abled = $al#e &d If
If #e%"pe = L he& M&I#Sb.&abled = $al#e M&Rpt.&abled = $al#e
5mdSbIS.&abled = $al#e &d If
End Sub
Private Sub ,+IForm_Resize() >RSID S9S R If Me.Width 1000 &d Me.Height 1000 he& Stat#a%1.:a&el#(1).Width = Me.ScaleWidth @ 0.E Stat#a%1.:a&el#(2).Width = Me.ScaleWidth @ 0.11 Stat#a%1.:a&el#(A).Width = Me.ScaleWidth @ 0.11 Stat#a%1.:a&el#(F).Width = Me.ScaleWidth @ 0.11 Stat#a%1.:a&el#(E).Width = Me.ScaleWidth @ 0.11
-
8/12/2019 98940815 Library Management System VB Project Documentation
29/69
Stat#a%1.:a&el#(!).Width = Me.ScaleWidth @ 0.0E Stat#a%1.:a&el#(1) = 5%%e&t 9#e% 6 ? #e%m ? ( ? #e%"pe ? )
&d If
>RRG :I59R 3 + 3HR 53MM+ 93S :ct1.Height = Me.Height
If Me.Height = 100 &d Me.Width = 11E00 he&
>M4 LL 3 5R Lbla#.Left = Me.ScaleWidth / 2 - Lbla#.Width / 2
>S LL 53MM+ 93S + $RM 5md9cc.Left = Me.ScaleWidth / 2 - 5md9cc.Width / 2
$%amI#.Left = Me.ScaleWidth / 2 - $%amI#.Width / 2 $%amMb%.Left = $%amI#.Left - $%amMb%.Width - E00 $%am.Left = $%amI#.Left $%amI#.Width E00
>S 53MM+ 93 3 5R 5md8it.Left = Me.ScaleWidth / 2 - 5md8it.Width / 2
Lbl5lo#e.op = Me.Height - 1E00 Lbl5lo#e.Left = Me.ScaleWidth - 2E00 &d If
End Sub
Private Sub ,+IForm_"nload(Cancel #s Integer) &dEnd Sub
Private Sub ,nu#btLib_Click() :ct1.Ci#ible = $al#e f%mbot.Sho' *bModal
End Sub
Private Sub ,nukIsu+tl_Click() :ct1.Ci#ible = $al#e $%mI#+tl.Sho'End Sub
Private Sub ,nukIsuSub_Click() :ct1.Ci#ible = $al#e $%mooI#.Sho'
-
8/12/2019 98940815 Library Management System VB Project Documentation
30/69
End Sub
Private Sub ,nuk-*r_Click() :ct1.Ci#ible = $al#e f%m&t%".Sho'
End Sub
Private Sub ,nukR*t_Click() 5all oo5dRepo%t(334) >GR R:3REnd Sub
Private Sub ,nuCdR*t_Click() 5all oo5dRepo%t(5+) >GR R:3REnd Sub
Private Sub mnuIsuR*t_Click()
:ct1.Ci#ible = $al#e
Repo%t = I >I mea I##e Repo%t $%mRpt.Sho' *bModalEnd Sub
Private Sub ,nu,br-*r_Click() :ct1.Ci#ible = $al#e $%mMembe%.Sho'End Sub
Private Sub ,nu,brR*t_Click() :ct1.Ci#ible = $al#e Repo%t = M >M mea Membe% Repo%t $%mRpt.Sho' *bModalEnd Sub
Private Sub ,nu,strSelection_Click() :ct1.Ci#ible = %eEnd Sub
Private Sub ,nu"mg#cc_Click() :ct1.Ci#ible = $al#e $%m9#e%M&g.Sho' *bModalEnd Sub
Private Sub ,nuinClose_Click() +o While $o%m#.5o&t - 1 0 9&load Me.cti*e$o%m LoopEnd Sub
-
8/12/2019 98940815 Library Management System VB Project Documentation
31/69
Private Sub ,nuinCscd_Click() %%a&ge *b5a#cadeEnd Sub
Private Sub ,nuin.rz_Click() %%a&ge *bHo%iJo&talEnd Sub
Private Sub ,nuin/rtl_Click() %%a&ge *bCe%ticalEnd Sub
>===================================================>GR R:3R $3R 334/5+ (:R35+9R)
Private Sub ookCdRe*ort(t* #s String) Set %# = e' Reco%d#et
If t"p = 334 he&
%#.3pe& SL5 5ode;itle;tho%;:%ice;Kt" $R3M oo,Ma#t WHR5ode lie >>; co&&; ad3pe&Static; adLocRead3&l"
l#e
%#.3pe& SL5 5ode;itle;tho%;:%ice;Kt" $R3M oo,Ma#t WHR5ode lie >5>; co&&; ad3pe&Static; adLocRead3&l"
&d If
>WH 3 R53R+ IS If %#.Reco%d5o&t = 0 he& %#.5lo#e M#go8 o %eco%d i# fo&d.; *bI&fo%matio&; Membe% Repo%t 8it Sb &d If
>5R R:3R >3: $IL $L = t"p ? , ? $o%mat(+ate; dd-mm-"""") 3pe& pp.:ath ? Repo%t# ? $L ? .t8t $o% 3tpt # N1
:%i&t N1; :%i&t N1; --------------------------------------------------------------------------------
If t"p = 334 he&
-
8/12/2019 98940815 Library Management System VB Project Documentation
32/69
:%i&t N1; ---------------------------- 3 3 4 S R : 3 R ----------------------------
l#e :%i&t N1; ------------------------------- 5 + R : 3 R
-------------------------------
&d If
:%i&t N1; -------------------------------------------------------------------------------- :%i&t N1; :%i&t N1; +ate 6 ? $o%mat(+ate; dd-mm-"""") :%i&t N1; :%i&t N1; -------------------------------------------------------------------------------- :%i&t N1; 53+ IL 9H3R :RI5
K9I7 :%i&t N1; --------------------------------------------------------------------------------
%#.Mo*e$i%#t +o While ot %#.3$ :%i&t N1; ? %#O5ode ? ? , %#Otitle ? Space(A1 - Le&(%#Otitle)) ? , %#Otho% ? Space(22 - Le&(%#Otho%)) ? , Space(! - Le&(%#O:%ice)) ? %#O:%ice ? , Space(11 - Le&(%#OPt")) ? %#OPt" :%i&t N1; %#.Mo*ee8t Loop %#.5lo#e
5lo#e N1 M#go8 $L ? .t8t c%eated #cce##fll".; *bI&fo%matio&; Membe% Repo%t
Shell pp.:ath ? Repo%t#'o%dpad.e8e ? pp.:ath ? Repo%t# ? $L ?.t8t; *bMa8imiJed$oc#
End Sub
!6RM . / 4SER MANAGEMENT
'!rm4erMn(
-
8/12/2019 98940815 Library Management System VB Project Documentation
33/69
%6$E / 4SER MANAGEMENT
'!rm4erMn1frm(
Private Sub CmdCancel_Click() 9&load MeEnd Sub
Private Sub CmdCreate#cc_Click() 9&load Me $%m5%eatecc.Sho' *bModalEnd Sub
Private Sub Cmd+elete#cc_Click() 9&load Me $%m9#e%+elete.Sho' *bModal
End Sub
-
8/12/2019 98940815 Library Management System VB Project Documentation
34/69
Private Sub CmdEdit#cc_Click() 9&load Me $%mditcc.Sho' *bModalEnd Sub
Private Sub Form_Load() If #e%"pe = L he& 5md5%eatecc.&abled = $al#e 5md+eletecc.&abled = $al#e &d IfEnd Sub
Private Sub Form_"nload(Cancel #s Integer) If $o%m#.5o&t = 2 he& M+I$%m.:ct1.Ci#ible = %e
&d IfEnd Sub
-
8/12/2019 98940815 Library Management System VB Project Documentation
35/69
!6RM / %REATE NE< 4SER
'!rm%reateA&&(
-
8/12/2019 98940815 Library Management System VB Project Documentation
36/69
%6$E / %REATE NE< 4SER '!rm%reateA&&(
+im %#,#e% # e' +3+.Reco%d#et
Private Sub Cmdack_Click() 9&load Me $%m9#e%M&g.Sho' *bModalEnd Sub
Private Sub CmdCancel_Click() 9&load MeEnd Sub
Private Sub CmdCreate#cc_Click() +im Ke%" # St%i&g; t"p # St%i&g
If %im(8t9#e%.e8t) = 3% %im(8t:'d) = 3% %im(8t5o&f:'d) = he&
M#go8 ll field# a%e compl#o%".; *bI&fo%matio&;
9#e% dditio& 8it Sb
l#eIf %im(8t:'d) +9:LI5I3 5H54
%#,#e%.Mo*e$i%#t %#,#e%.$i&d #%=> ? 8t9#e% ? >
If %#,#e%.3$ he& >9SR 3 IS If 5mb9#e%"pe.e8t = +MI he& t"p = l#e t"p = L &d If
-
8/12/2019 98940815 Library Management System VB Project Documentation
37/69
Ke%" = ie%t i&to Logi&,Ma#t *ale# (> ? 8t9#e% ? >;> ? , 8t:'d ? >;> ? t"p ? >) M#go8 Ke%" co&&.8ecte Ke%" M#go8 e' #e% i# #cce##fll" added.; *bI&fo%matio&; 9#e% dditio&
8t9#e% = 8t:'d = 8t5o&f:'d = 5mb9#e%"pe.Set$oc# 5all $o%m,Load
l#e >9SR IS LR+7 IS M#go8 9#e% al%ead" e8it. &te% a&othe% #e% &ame.; *b5%itical; 9#e%
ddito& 8t9#e%.Set$oc# &d If
End SubPrivate Sub Form_Load() M+I$%m.:ct1.Ci#ible = $al#e
>3: R53R+S If %#,#e%.State = 1 he& %#,#e%.5lo#e %#,#e%.3pe& #elect @ f%om Logi&,Ma#t; co&&; ad3pe&Static;
adLoc:e##imi#tic
>5LR 3 8t9#e%.e8t = 8t:'d.e8t = 8t5o&f:'d.e8t =
5mb9#e%"pe.e8t = 5mb9#e%"pe.Li#t(0)End Sub
Private Sub Form_"nload(Cancel #s Integer) %#,#e%.5lo#eEnd Sub
Private Sub !$tCon0P%d_&otFocus() 5all oo.#elect8t(8t5o&f:'d)End Sub
Private Sub !$tCon0P%d_'ePress('e#scii #s Integer) If 4e"#cii = AB 3% 4e"#cii = AF 3% 4e"#cii = A2 he& 4e"#cii = 0 &d If 4e"#cii = oo.ppe%(4e"#cii)End Sub
-
8/12/2019 98940815 Library Management System VB Project Documentation
38/69
Private Sub !$tP%d_&otFocus() 5all oo.#elect8t(8t:'d)End Sub
Private Sub !$tP%d_'ePress('e#scii #s Integer) If 4e"#cii = AB 3% 4e"#cii = AF 3% 4e"#cii = A2 he& 4e"#cii = 0 &d If 4e"#cii = oo.ppe%(4e"#cii)End Sub
Private Sub !$t"ser_&otFocus() 5all oo.#elect8t(8t9#e%)End Sub
Private Sub !$t"ser_'ePress('e#scii #s Integer) If 4e"#cii = AB 3% 4e"#cii = AF 3% 4e"#cii = A2 he& 4e"#cii = 0 &d If 4e"#cii = oo.ppe%(4e"#cii)End Sub
!6RM / %3ANGE 4SER NAME
'!rmEditA&&(
-
8/12/2019 98940815 Library Management System VB Project Documentation
39/69
!6RM - / %3ANGE #ASS
-
8/12/2019 98940815 Library Management System VB Project Documentation
40/69
%6$E / %3ANGE 4SER NAME 8
%3ANGE #ASS
-
8/12/2019 98940815 Library Management System VB Project Documentation
41/69
+im Ke%" # St%i&g
Private Sub Cmdack_Click() 9&load Me $%m9#e%M&g.Sho' *bModal
End Sub
Private Sub CmdCancel_Click() 9&load MeEnd Sub
Private Sub CmdP%d_Click() >5H54IG $3R L54 3S If %im(8t9#e%) = 3% %im(8t5%:'d) = 3% %im(8te':'d) = 3%
%im(8t5o&f:'d) = he&
M#go8 ll field# a%e compl#o%".; *bI&fo%matio&; 5ha&ge :a##'o%d 8it Sb &d If
>5H54IG $3R W :SSW3R+ ? 53$. :SSW3R+ M5HIG If 8te':'d
-
8/12/2019 98940815 Library Management System VB Project Documentation
42/69
Ke%" = pdate Logi&,Ma#t #et p'=> ? 8te':'d ?> 'he%e #%=> ? 8t9#e% ? >
l#e
>WH 9SR IS LIMI+ If 8t9#e% ? 8te':'d ?> 'he%e #%=> ? 8t9#e% ? >
&d If
>9:+ :SSW3R+
co&&.8ecte Ke%" M#go8 7o% pa##'o%d i# cha&ged #cce##fll".; *bI&fo%matio&; 5ha&ge
:a##'o%d
8t9#e%.e8t = 8t5%:'d.e8t = 8te':'d.e8t = 8t5o&f:'d.e8t =
8t9#e%.Set$oc#
End Sub
Private Sub Cmd"ser_Click()
+im t"p # St%i&g t"p = #e%"pe
If %im(8t5%9#e%) = 3% %im(8te'9#e%) = he& M#go8 ll field# a%e compl#o%".; *bI&fo%matio&; 5ha&ge 9#e%
-
8/12/2019 98940815 Library Management System VB Project Documentation
43/69
8it Sb &d If
If #e%"pe = he& >WH 9SR IS +MI
>$I+ 9SR IS IS 3R 3 %#,#e%.Mo*e$i%#t %#,#e%.$i&d #%=> ? 8t5%9#e% ? >
If %#,#e%.3$ he& >9SR 3 IS M#go8 9#e% &ame doe# &ot e8i8t. ? *b5%Lf ? , &te% c%%e&t &ame agai&.; *b5%itical; 9#e% ditio& 8t5%9#e%.Set$oc# 8it Sb &d If
If 5mb9#e%"pe.e8t = +MI he& t"p = l#e t"p = L &d If
>WH 59RR 9SR IS 5HGIG 5539 If (8t5%9#e% = #e%m) &d (#e%"pe ? 8te'9#e% ? >;t"p=> ? , t"p ? > 'he%e #%=> ? 8t5%9#e% ? >
l#e
>WH 9SR IS LIMI+ If #e%m
-
8/12/2019 98940815 Library Management System VB Project Documentation
44/69
>5H54 $3R +9:LI5 R53R+ %#,#e%.Mo*e$i%#t %#,#e%.$i&d #%=> ? 8te'9#e% ? >
If (%#,#e%.3$ = $al#e) &d (#e%m
-
8/12/2019 98940815 Library Management System VB Project Documentation
45/69
$%emdit9#e%.&abled = %e 5md9#e%.+efalt = %e
>5mb9#e%"pe.e8t = 5mb9#e%"pe.Li#t(0) 8t5%9#e% =
8te'9#e% =
If #e%"pe = L he& 5mb9#e%"pe.&abled = $al#e 5mb9#e%"pe.e8t = LIMI+ l#e 5mb9#e%"pe.e8t = +MI &d If
l#e $%emdit:'d.&abled = %e
$%emdit9#e%.&abled = $al#e 5md:'d.+efalt = %e
8t9#e% = 6 8t5%:'d = 8te':'d = 6 8t5o&f:'d = &d If
End Sub
Private Sub !$tCon0P%d_&otFocus() 5all oo.#elect8t(8t5o&f:'d)End Sub
Private Sub !$tCon0P%d_'ePress('e#scii #s Integer) If 4e"#cii = AB 3% 4e"#cii = AF 3% 4e"#cii = A2 he& 4e"#cii = 0 &d If 4e"#cii = oo.ppe%(4e"#cii)End Sub
Private Sub !$tCurP%d_&otFocus()
5all oo.#elect8t(8t5%:'d)End Sub
Private Sub !$tCurP%d_'ePress('e#scii #s Integer) If 4e"#cii = AB 3% 4e"#cii = AF 3% 4e"#cii = A2 he& 4e"#cii = 0 &d If 4e"#cii = oo.ppe%(4e"#cii)End Sub
Private Sub !$tCur"ser_&otFocus()
-
8/12/2019 98940815 Library Management System VB Project Documentation
46/69
5all oo.#elect8t(8t5%9#e%)End Sub
Private Sub !$tCur"ser_'ePress('e#scii #s Integer) If 4e"#cii = AB 3% 4e"#cii = AF 3% 4e"#cii = A2 he&
4e"#cii = 0 &d If 4e"#cii = oo.ppe%(4e"#cii)End Sub
Private Sub !$te%P%d_&otFocus() 5all oo.#elect8t(8te':'d)End Sub
Private Sub !$te%P%d_'ePress('e#scii #s Integer) If 4e"#cii = AB 3% 4e"#cii = AF 3% 4e"#cii = A2 he&
4e"#cii = 0 &d If 4e"#cii = oo.ppe%(4e"#cii)End Sub
Private Sub !$te%"ser_&otFocus() 5all oo.#elect8t(8te'9#e%)End Sub
Private Sub !$te%"ser_'ePress('e#scii #s Integer) If 4e"#cii = AB 3% 4e"#cii = AF 3% 4e"#cii = A2 he& 4e"#cii = 0 &d If 4e"#cii = oo.ppe%(4e"#cii)End Sub
Private Sub !$t"ser_&otFocus() 5all oo.#elect8t(8t9#e%)End Sub
Private Sub !$t"ser_'ePress('e#scii #s Integer)
If 4e"#cii = AB 3% 4e"#cii = AF 3% 4e"#cii = A2 he& 4e"#cii = 0 &d If 4e"#cii = oo.ppe%(4e"#cii)End Sub
-
8/12/2019 98940815 Library Management System VB Project Documentation
47/69
!6RM / $ELETE 4SER '!rm4er$elete(
-
8/12/2019 98940815 Library Management System VB Project Documentation
48/69
-
8/12/2019 98940815 Library Management System VB Project Documentation
49/69
%6$E / $ELETE 4SER '!rm4er$elete(
+im %#,#e% # e' +3+.Reco%d#et
+im %#,tmp # e' +3+.Reco%d#et
Private Sub Cmdack_Click() 9&load Me $%m9#e%M&g.Sho' *bModalEnd Sub
Private Sub CmdCancel_Click() 9&load MeEnd Sub
Private Sub Cmd+elete_Click() +im Ke%" # St%i&g; c&t # I&tege%
>5H54 $3R R53R+S IS 3: 3R 5L3S+ If %#,tmp.State = 1 he& %#,tmp.5lo#e &d If
%#,tmp.3pe& #elect @ f%om Logi&,Ma#t 'he%e "p=>>; co&&; ad3pe&Static;adLoc:e##imi#tic
If (%#,tmp.Reco%d5o&t = 1) &d (Mid(L#t9#e%+elete.e8t;
Le&(L#t9#e%+elete.e8t) - 1; 1) = ) he&
M#go8 7o ca& &ot delete thi# dmi& #e%. ? *b5%Lf ? tli#t o&edmi& #e% i# %ePi%ed.; *b5%itical; 9#e% +eletio&
8it Sb &d If
If M#go8(7o 'a&t to delete #elected #e% Q; *bKe#tio& *b345a&cel;9#e% +eletio&) = *b34 he&
>$I+ SL5+ 9SR %#,#e%.Mo*e$i%#t %#,#e%.$i&d #%=> ? Mid(L#t9#e%+elete.e8t; 1; Le&(L#t9#e%+elete.e8t)
- F) ? >
%#,#e%.+elete >+L 9SR
5all fillLi#t >$ILL LIS 3 &d If
End Sub
-
8/12/2019 98940815 Library Management System VB Project Documentation
50/69
Private Sub Form_Load() M+I$%m.:ct1.Ci#ible = $al#e >3: R53R+S %#,#e%.3pe& #elect @ f%om Logi&,Ma#t; co&&; ad3pe&Static;
adLoc:e##imi#tic
5all fillLi#t >$ILL LIS 3End Sub
Private Sub Form_"nload(Cancel #s Integer) %#,#e%.5lo#eEnd Sub
Private Sub 0illList() >$ILL Li#to8
L#t9#e%+elete.5lea% If %#,#e%.Reco%d5o&t
-
8/12/2019 98940815 Library Management System VB Project Documentation
51/69
!6RM O / MEMBER 6#ERATI6N
'!rmMember(
-
8/12/2019 98940815 Library Management System VB Project Documentation
52/69
%6$E / MEMBER 6#ERATI6N '!rmMember(
3ptio& 8plicit
+im %#,mb% # e' +3+.Reco%d#et+im %#,temp # e' +3+.Reco%d#et+im %#,i# # e' +3+.Reco%d#et+im cmd # St%i&g
Private Sub CmbClass_Click() +im i # I&tege%
5la## = 5mb5la##.e8t5all fill7ea%(Me) >SL5 7R
5mb5la##7ea%.e8t = 5mb5la##7ea%.Li#t(0)End Sub
Private Sub CmbClass2ear_Click()
7e% = 5mb5la##7ea%.e8t
5all Membe%.co&t%ol&able(Me; $al#e)
If %#,mb%.State = 1 he& %#,mb%.5lo#e
%#,mb%.3pe& #elect @ f%om Mb%,Ma#t 'he%e c%#=> ? 5mb5la##.e8t ? , > a&d 7e%=> ? 5mb5la##7ea%.e8t ? > 3R+R 7 5ode; co&&;ad3pe&Static; adLoc:e##imi#tic
5all Membe%.clea%5o&t%ol(Me) >S +$9L 53R3LS
If %#,mb%.Reco%d5o&t L 53MM+ S 5all membe%+ata(Me; %#,mb%) >RRIC + l#e 5all oo.di#able5omma&d(Me) >+ISL 93S
5mddd.&abled = %e &d If
>5H54 9SR 7: If #e%"pe = L he& 5mddd.&abled = $al#e 5mddit.&abled = $al#e 5md+el.&abled = $al#e 5mdSa*e.&abled = $al#e 5md%afe%.&abled = $al#e &d If
-
8/12/2019 98940815 Library Management System VB Project Documentation
53/69
End Sub
Private Sub Cmb,ont3_Click() +im i # I&tege%
5mb+a".5lea% $o% i = 1 o da"#3fMo&th(Cal(5mbMo&th.e8t); Cal(5mb7ea%.e8t)) 5mb+a".ddItem i e8t i 5mb+a".e8t = +a"(+ate)End Sub
Private Sub CmbSearc3_Click() 5all fillMb%G%id(Me; 5mb5la##.e8t; 5mb5la##7ea%.e8t; 5mbSea%ch.e8t)End Sub
Private Sub Cmb2ear_Click() +im i # I&tege% 5mb+a".5lea% $o% i = 1 o da"#3fMo&th(Cal(5mbMo&th.e8t); Cal(5mb7ea%.e8t))
5mb+a".ddItem i e8t i 5mb+a".e8t = +a"(+ate)End Sub
Private Sub Cmd#dd_Click() +im %#,tmp # e' +3+.Reco%d#et Set %#,tmp = e' Reco%d#et
cmd = dd 5md8it.5aptio& = ?5a&cel
>L LL 53R3LS 5all Membe%.co&t%ol&able(Me; %e) 8t5ode.Loced = %e 5mdSa*e.&abled = %e >L SC 93
5mb5la##.&abled = $al#e >+ISL 5LSS 53M3 5mb5la##7ea%.&abled = $al#e >+ISL 7R 53M3 $%em5atego%".&abled = $al#e >+ISL SR5H $RM 5all oo.di#able5omma&d(Me) >+ISL 53MM+ S 5mdSa*e.&abled = %e
>S +$L9 53R3LS 5all Membe%.clea%5o&t%ol(Me)
>GR 53+ 8t5ode.e8t = oo.e8t,5ode(%#,mb%; M)
-
8/12/2019 98940815 Library Management System VB Project Documentation
54/69
8tS%&ame.Set$oc#
End Sub
Private Sub Cmd+el_Click()
Set %#,temp = e' Reco%d#et
%#,temp.3pe& SL5 @ $R3M I##e,Ma#t WHR 5%#=> ?5mb5la##.e8t ? > + 7e%=> ? 5mb5la##7ea%.e8t ? > +Mb%,o=> ? 8t5ode ? > + Sb,+t=>->; co&&;ad3pe&Static; adLocRead3&l"
If %#,temp.Reco%d5o&t 0 he&
M#go8 7o ca&>t delete thi# membe%. $i%#t I##e oo/5+.;*bI&fo%matio&; Membe% +eletio&
8it Sb
&d If
If M#go8(7o 'a&t to delete thi# %eco%dQ; *bI&fo%matio& *b7e#o;Membe% deletio&) = *b7e# he&
%#,mb%.+elete >+L R53R+ %#,mb%.9pdate >9:+ R53R+ %#,mb%.Mo*ee8t >M3C R53R+S 3 R53R+ 5all Membe%.fillMb%G%id(Me; 5la##; 7e%; 5mbSea%ch.e8t)
If %#,mb%.Reco%d5o&t = 0 he&
5all Membe%.clea%5o&t%ol(Me) >5LR 3S 5all oo.di#able5omma&d(Me) >+ISL 93S 5mddd.&abled = %e >L ++ 93S 8it Sb
l#e
If %#,mb%.3$ he& %#,mb%.Mo*e$i%#t
>RRIC R53R+ 5all Membe%.membe%+ata(Me; %#,mb%)8it Sb
l#e>RRIC R53R+
5all Membe%.membe%+ata(Me; %#,mb%)&d If
&d If &d If
End Sub
-
8/12/2019 98940815 Library Management System VB Project Documentation
55/69
Private Sub CmdEdit_Click() cmd = dit 5md8it.5aptio& = ?5a&cel
>L LL 53R3LS 5all Membe%.co&t%ol&able(Me; %e) $%em5atego%".&abled = $al#e >+ISL SR5H $RM 5all oo.di#able5omma&d(Me) 5mdSa*e.&abled = %e >L SC End Sub
Private Sub CmdE$it_Click() If 5md8it.5aptio& = ?5a&cel he& 5md8it.5aptio& = ?8it
>+ISL LL 53R3LS
5all Membe%.co&t%ol&able(Me; $al#e) $%em5atego%".&abled = %e >L SR5H $RM
5all Membe%.clea%5o&t%ol(Me) >5LR 53R3LS If %#,mb%.Reco%d5o&t L 93
>RRIC R53R+ 5all Membe%.membe%+ata(Me; %#,mb%)
l#e 5all oo.di#able5omma&d(Me) >+ISL S 5all Membe%.clea%5o&t%ol(Me) >5LR 53R3LS 5mddd.&abled = %e &d If
5all Membe%.co&t%ol&able(Me; $al#e) >L354 3S 5mdSa*e.&abled = $al#e 5mb5la##.&abled = %e >L 539R5 53M3 5mb5la##7ea%.&abled = %e >L 7R 53M3
l#eIf 5md8it.5aptio& = ?8it he&
9&load Me &d IfEnd Sub
Private Sub CmdFirst_Click() %#,mb%.Mo*e$i%#t >M3C R53R+ 3 $IRS
-
8/12/2019 98940815 Library Management System VB Project Documentation
56/69
>RRIC MMR + 5all Membe%.membe%+ata(Me; %#,mb%)End Sub
Private Sub CmdLast_Click() %#,mb%.Mo*eLa#t >M3C R53R+ 3 $IRS >RRIC MMR + 5all Membe%.membe%+ata(Me; %#,mb%)End Sub
Private Sub Cmde$t_Click() %#,mb%.Mo*e:%e*io# If %#,mb%.3$ he& %#,mb%.Mo*eLa#t &d If
5all Membe%.membe%+ata(Me; %#,mb%) >RRIC +End Sub
Private Sub CmdPrv_Click() %#,mb%.Mo*e:%e*io# If %#,mb%.3$ he& %#,mb%.Mo*eLa#t &d If 5all Membe%.membe%+ata(Me; %#,mb%) >RRIC +End Sub
Private Sub CmdSave_Click()
+im dt # St%i&g; #e8 # St%i&g; K%" # St%i&g
>CLI+I3S If 8t5ode = 3% 8tS%&ame = 3% 8t$i%#t = 3% 8tLa#t = 3% , 8tdd%e## = 3% 8t5it" = 3% 8t$ee = he& M#go8 &te% all compl#o%" i&fo%matio&.; *bI&fo%matio&; Membe%
&t%" 8it Sb
&d If
dt = 5mb+a".e8t ? / ? 5mbMo&th.e8t ? / ? 5mb7ea%.e8t If 3ptMale.Cale = %e he& #e8 = M l#e #e8 = $ &d If
>++ R53R+
-
8/12/2019 98940815 Library Management System VB Project Documentation
57/69
If cmd = dd he&
K%" = ie%t i&to Mb%,Ma#t *ale# (> ? 8t5ode ? >;> ? 8tS%&ame ?>;> ? ,
8t$i%#t ? >;> ? 8tLa#t ? >;> ? dt ? >;> ? 8tdd%e## ? >;> ? ,
8t5it" ? >;> ? 5mb5la##.e8t ? >;> ? 5mb5la##7ea%.e8t ? >;> ? , 8t5o&tact ? >;> ? #e8 ? >; ? 8t$ee ? ;0)
co&&.8ecte K%"
5all 5mb5la##7ea%,5lic >3 RRIC 9:++ + 5all 5md8it,5lic >3 RS 53R3LS
M#go8 Reco%d added #cce##fll".; *bI&fo%matio&; Membe% &t%"
l#eIf cmd = dit he& >+I R53R+
K%" = pdate Mb%,Ma#t #et #%&ame=> ? 8tS%&ame ? >; membe%=>
? , 8t$i%#t ? >; fathe%=> ? 8tLa#t ? >; Toi&,+t=> ? dt ? >; dd%e##=>
? , 8tdd%e## ? >;5it"=> ? 8t5it" ? >; 5&t,o=> ? , 8t5o&tact ? >;Ge&de%=> ? #e8 ? >;$ee= ? 8t$ee ? 'he%e
5ode=> ? , 8t5ode ? > ? a&d 5%#=> ? 5la## ? > a&d 7e%=> ? 7e% ? >
M#go8 K%"
co&&.8ecte K%"
5all 5md8it,5lic >3 RS 53R3LS
&d If
End Sub
Private Sub Cmd!rans0er_Click() 9&load Me $%m%afe%.Sho' *bModalEnd Sub
Private Sub Form_Load() +im i # I&tege%
>+7 53M3 $o% i = 1 o A1
-
8/12/2019 98940815 Library Management System VB Project Documentation
58/69
5mb+a".ddItem i e8t >M3H 53M3 $o% i = 1 o 12 5mbMo&th.ddItem i
e8t >7R 53M3 $o% i = 1BE0 o 20E0 5mb7ea%.ddItem i e8t
5mb5la##.e8t = 5la##
Me.M#fgSea%ch.$o%matSt%i&g = o. U5ode Uame UToi&+ate U5it" ? ,
U5o&tect o. UGe&de%U $i&e
End Sub
Private Sub Form_Resize()
If Me.Width !!A0 he& ShapLabel.Width = Me.ScaleWidth LblLabel.Left = ShapLabel.Width / 2 - LblLabel.Width / 2 &d If
End Sub
Private Sub Form_"nload(Cancel #s Integer) %#,mb%.5lo#e
If $o%m#.5o&t = 2 he& M+I$%m.:ct1.Ci#ible = %e &d IfEnd Sub
Private Sub ,s0gSearc3_Click()
%#,mb%.Mo*e$i%#t %#,mb%.$i&d 5ode = > ? M#fgSea%ch.e8tMat%i8(M#fgSea%ch.Ro'; 1) ? >
5all membe%+ata(Me; %#,mb%) >fill co&t%ol#End Sub
Private Sub ,s0gSearc3_Ro%ColC3ange() %#,mb%.Mo*e$i%#t %#,mb%.$i&d 5ode = > ? M#fgSea%ch.e8tMat%i8(M#fgSea%ch.Ro'; 1) ? >
5all membe%+ata(Me; %#,mb%) >fill co&t%ol#
-
8/12/2019 98940815 Library Management System VB Project Documentation
59/69
End Sub
Private Sub !$t#ddress_&otFocus() 5all oo.#elect8t(8tdd%e##)End Sub
Private Sub !$t#ddress_'ePress('e#scii #s Integer) If 4e"#cii = AB he& 4e"#cii = 0 8it Sb &d If 4e"#cii = oo.ppe%(4e"#cii)End Sub
Private Sub !$tCit_&otFocus() 5all oo.#elect8t(8t5it")
End Sub
Private Sub !$tCit_'ePress('e#scii #s Integer) 4e"#cii = alpha(4e"#cii)End Sub
Private Sub !$tCode_&otFocus() 5all oo.#elect8t(8t5ode)End Sub
Private Sub !$tCode_'ePress('e#scii #s Integer) If 4e"#cii < #c(0) 3% 4e"#cii #c(B) he& 4e"#cii = 0 &d IfEnd Sub
Private Sub !$tContact_&otFocus() 5all oo.#elect8t(8t5o&tact)End Sub
Private Sub !$tContact_'ePress('e#scii #s Integer)
If 4e"#cii = he& 4e"#cii = l#eIf (4e"#cii < #c(0) 3% 4e"#cii #c(B)) &d 4e"#cii
-
8/12/2019 98940815 Library Management System VB Project Documentation
60/69
Private Sub !$tFee_'ePress('e#scii #s Integer) If 4e"#cii = he& 4e"#cii = l#eIf 4e"#cii < #c(0) 3% 4e"#cii #c(B) he&
4e"#cii = 0 &d IfEnd Sub
Private Sub !$tFirst_&otFocus() 5all oo.#elect8t(8t$i%#t)End Sub
Private Sub !$tFirst_'ePress('e#scii #s Integer) 4e"#cii = alpha(4e"#cii)End Sub
Private Sub !$tLast_&otFocus() 5all oo.#elect8t(8tLa#t)End Sub
Private Sub !$tLast_'ePress('e#scii #s Integer) 4e"#cii = alpha(4e"#cii)End Sub
Private Sub !$tSearc3_C3ange() Set %#,temp = e' Reco%d#et
%#,temp.3pe& #elect @ f%om Mb%,Ma#t 'he%e 5%#=> ? 5mb5la##.e8t ? >a&d 7e%=> ? 5mb5la##7ea%.e8t ? > a&d ? 5mbSea%ch.e8t ? lie(>? 8tSea%ch ? >) o%de% b" ? 5mbSea%ch; co&&; ad3pe&Static;adLocRead3&l"
If %#,temp.Reco%d5o&t = 0 he&
M#fgSea%ch.&abled = $al#e l#e M#fgSea%ch.&abled = %e
&d If5all fillMb%G%id1(Me; %#,temp) >fill g%id
End Sub
Private Sub !$tSearc3_&otFocus() 8tSea%ch.Loced = $al#eEnd Sub
Private Sub !$tSearc3_'ePress('e#scii #s Integer)
-
8/12/2019 98940815 Library Management System VB Project Documentation
61/69
If 4e"#cii = AB he& 4e"#cii = 0 &d If 4e"#cii = ppe%(4e"#cii)End Sub
Private Sub !$tSurname_&otFocus() 5all oo.#elect8t(8tS%&ame)End Sub
Private Sub !$tSurname_'ePress('e#scii #s Integer) 4e"#cii = Membe%.alpha(4e"#cii)End Sub
>===================================================Private Sub 0ill,br&rid1(Frm #s Form4 rs #s Recordset)
+im % # I&tege% $%m.M#fgSea%ch.5ol# = $%m.M#fgSea%ch.Ro'# = %#.Reco%d5o&t 1
If %#.Reco%d5o&t 0 he& %#.Mo*e$i%#t $o% % = 1 o %#.Reco%d5o&t $%m.M#fgSea%ch.e8tMat%i8(%; 0) = % $%m.M#fgSea%ch.e8tMat%i8(%; 0) = % $%m.M#fgSea%ch.e8tMat%i8(%; 1) = %#.$ield#(0) $%m.M#fgSea%ch.e8tMat%i8(%; 2) = %#.$ield#(1) ? ? %#.$ield#(2) ?
? %#.$ield#(A) $%m.M#fgSea%ch.e8tMat%i8(%; A) = $o%mat(%#.$ield#(F); dd-mm-
"""") $%m.M#fgSea%ch.e8tMat%i8(%; F) = %#.$ield#(!) $%m.M#fgSea%ch.e8tMat%i8(%; E) = %#.$ield#(B) $%m.M#fgSea%ch.e8tMat%i8(%; !) = %#.$ield#(10) $%m.M#fgSea%ch.e8tMat%i8(%; V) = %#.$ield#(12) %#.Mo*ee8t e8t &d If
End Sub
!6RM P / MEMBER TRANS!ER
'!rmTranfer(
-
8/12/2019 98940815 Library Management System VB Project Documentation
62/69
!6RM P / MEMBER TRANS!ER
'!rmTranfer(
3ptio& 8plicit
+im %# # e' +3+.Reco%d#et+im %#1 # e' +3+.Reco%d#et
+im i # I&tege%; c&t # I&tege%+im K%" # St%i&g
Private Sub CmbClassFrom_Click() 5all fill7ea%(5mb5la##$%om; 5mb5la##7ea%$%om)
-
8/12/2019 98940815 Library Management System VB Project Documentation
63/69
5mb5la##7ea%$%om.e8t = 5mb5la##7ea%$%om.Li#t(0)End Sub
Private Sub CmbClass!o_Click() 5all fill7ea%(5mb5la##o; 5mb5la##7ea%o)
5mb5la##7ea%o.e8t = 5mb5la##7ea%o.Li#t(0)End Sub
Private Sub CmbClass2earFrom_Click()
Set %# = e' Reco%d#et %#.3pe& SL5 @ $R3M Mb%,Ma#t WHR 5%#=> ? 5mb5la##$%om ? , > + 7e%=> ? 5mb5la##7ea%$%om ? >; co&&; ad3pe&Static;
adLocRead3&l"
L#t$%om.5lea%
If %#.Reco%d5o&t 0 he&
+o While ot %#.3$ L#t$%om.ddItem %#.$ield#(0) ? ? , %#.$ield#(1) ? ? %#.$ield#(2) ? ? %#.$ield#(A)
%#.Mo*ee8t Loop
&d IfEnd Sub
Private Sub CmbClass2ear!o_Click() Set %#1 = e' Reco%d#et %#1.3pe& SL5 @ $R3M Mb%,Ma#t WHR 5%#=> ? 5mb5la##o.e8t
? , > + 7e%=> ? 5mb5la##7ea%o.e8t ? > 3R+R 7 5ode; co&&;
ad3pe&Static; adLocRead3&l"
L#to.5lea% If %#1.Reco%d5o&t 0 he&
+o While ot %#1.3$ L#to.ddItem %#1.$ield#(0) ? ? , %#1.$ield#(1) ? ? %#1.$ield#(2) ? ? %#1.$ield#(A)
%#1.Mo*ee8t Loop
&d IfEnd Sub
-
8/12/2019 98940815 Library Management System VB Project Documentation
64/69
-
8/12/2019 98940815 Library Management System VB Project Documentation
65/69
".ddItem $7 ".ddItem S7 ".ddItem 7
l#eIf c.e8t = :G+5 3% c.e8t = +5S he&
$o% i = 1 o 2 ".ddItem SM ? i e8t l#e $o% i = 1 o ! ".ddItem SM ? i e8t &d If
End Sub
-
8/12/2019 98940815 Library Management System VB Project Documentation
66/69
!6RM +* / B662 6#ERATI6NS
'!rmB>Entr0(
!6RM ++ / ISS4E B662Q%$ '!rmBoo>Iu(
-
8/12/2019 98940815 Library Management System VB Project Documentation
67/69
!6RM +) / S4BMIT B662Q%$ '!rmBoo>Iu(
!6RM +, / ISS4E $ETAIL '!rmIu$tl(
-
8/12/2019 98940815 Library Management System VB Project Documentation
68/69
!6RM +. / MEMBER 8 ISS4E RE#6RT
%REATI6N '!rmRpt(
!6RM + / AB64T A##LI%ATI6N
'!rmAbout(
-
8/12/2019 98940815 Library Management System VB Project Documentation
69/69