源程序清单1、文件名 l o g i n(log i n、f r m)功能说明:整个系统得登陆界面,需要输入用户名与登陆密码才能进入到系统中,进行借阅等操作
源代码:Option Ex p l i citDim cn t As IntegerP rivate Sub man d 1_Cl i ck()Dim s ql A s St ringDim r s_l o g in As N ew ADO D B、Re co r d s e tIf Tr i m(b o 1、Text) = "" Then M s gB ox "没有这个用户", vbO K Only + vb E x c la m ation, "" b o1、Set F oc u sElse sq l = "se l ec t * fr om 系统管理 w he r e 用户名='" & bo1、Text & "'" rs_login、Op e n s q l, co nn, adOpenKeyset, a d Lock P essimi s t ic I f r s_lo g in、EO F = True T h en Msg B o x "没有这个用户", vb OKOnly + v bExclam ation, "" b o1、S etFocus El s e If Tri m(rs_l o gin、Fiel d s(1)) = Trim(t x tp w d、T ext) Then userID = bo 1、Tex t rs_login、C lo se Unl oad M e form1、Show Else M s gBox "密码不正确", vbOKOn l y + vbExcl a mation, "" txt pw d、SetFoc u s End If E nd IfE nd