?? login_f.frm
字號:
VERSION 5.00
Begin VB.Form login_f
BorderStyle = 1 'Fixed Single
Caption = "計算中心上機收費系統(tǒng)"
ClientHeight = 1785
ClientLeft = 45
ClientTop = 330
ClientWidth = 4650
Icon = "login_f.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 1785
ScaleWidth = 4650
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "退出"
Height = 375
Left = 2520
TabIndex = 6
Top = 1320
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "進入"
Default = -1 'True
Height = 375
Left = 840
TabIndex = 5
Top = 1320
Width = 1095
End
Begin VB.Frame Frame1
Height = 1215
Left = 120
TabIndex = 0
Top = 0
Width = 4335
Begin VB.TextBox Text2
Appearance = 0 'Flat
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 375
IMEMode = 3 'DISABLE
Left = 1920
PasswordChar = "*"
TabIndex = 4
Top = 720
Width = 2175
End
Begin VB.TextBox text1
Appearance = 0 'Flat
BeginProperty Font
Name = "宋體"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 375
Left = 1920
TabIndex = 3
Top = 240
Width = 2175
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "管理員名稱:"
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Index = 1
Left = 240
TabIndex = 2
Top = 240
Width = 1680
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "管理員口令:"
BeginProperty Font
Name = "宋體"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
Index = 0
Left = 240
TabIndex = 1
Top = 720
Width = 1680
End
End
End
Attribute VB_Name = "login_f"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim conn As New ADODB.Connection
Dim rs As New ADODB.Recordset
Private Sub Command1_Click()
Text1.Text = Replace(Text1.Text, "'", "")
Text1.Text = Replace(Text1.Text, Chr(34), "")
Text2.Text = Replace(Text2.Text, "'", "")
Text2.Text = Replace(Text2.Text, Chr(34), "")
sql = "select * from 管理員信息表 where 管理員='" & Text1.Text & "' and 口令= '" & Text2.Text & "'"
Set rs = conn.Execute(sql)
If rs.EOF Or rs.BOF Then
MsgBox "帳號口令錯誤,請檢查后從新進入!"
Else
glymc = rs("管理員")
quanxian = rs("權限")
Unload Me
MDIForm1.Show
End If
End Sub
Private Sub Command2_Click()
Unload Me
'Print Chr(34)
End Sub
Private Sub Form_Load()
conn.Open connstr
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set conn = Nothing
Set rs = Nothing
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -