?? form14.frm
字號:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form14
BorderStyle = 1 'Fixed Single
Caption = "Form14"
ClientHeight = 3045
ClientLeft = 45
ClientTop = 435
ClientWidth = 4125
LinkTopic = "Form14"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3045
ScaleWidth = 4125
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2160
TabIndex = 7
Top = 1680
Width = 735
End
Begin VB.CommandButton Command1
Caption = "登陸"
Height = 375
Left = 720
TabIndex = 6
Top = 1680
Width = 735
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 240
Top = 2520
Visible = 0 'False
Width = 2040
_ExtentX = 3598
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = $"Form14.frx":0000
OLEDBString = $"Form14.frx":00B6
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋體"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 1440
PasswordChar = "*"
TabIndex = 5
Top = 1080
Width = 1575
End
Begin VB.TextBox Text1
Height = 375
Left = 1440
TabIndex = 3
Top = 600
Width = 1575
End
Begin VB.ComboBox Combo1
Height = 300
ItemData = "Form14.frx":016C
Left = 1440
List = "Form14.frx":0176
TabIndex = 1
Top = 120
Width = 1095
End
Begin VB.Label Label3
Caption = "登陸密碼:"
Height = 255
Left = 360
TabIndex = 4
Top = 1200
Width = 975
End
Begin VB.Label Label2
Caption = "用戶名:"
Height = 255
Left = 360
TabIndex = 2
Top = 720
Width = 735
End
Begin VB.Label Label1
Caption = "用戶類型:"
Height = 375
Left = 360
TabIndex = 0
Top = 240
Width = 1095
End
End
Attribute VB_Name = "Form14"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox "請輸入你的帳號!", vbOKOnly + vbExclamation, "系統(tǒng)登陸"
Text1.SetFocus
Exit Sub
End If
If Text2.Text = "" Then
MsgBox "請輸入你的密碼!", vbOKOnly + vbExclamation, "系統(tǒng)登陸"
Text2.SetFocus
Exit Sub
End If
If Combo1.Text = "" Then
MsgBox "請選擇用戶類型!", vbOKOnly + vbExclamation, "系統(tǒng)登陸"
Text1.Enabled = True
Text2.Enabled = True
Combo1.SetFocus
Exit Sub
End If
Adodc1.RecordSource = "select * from 帳號密碼 where 帳號='" & Text1.Text & "' and 密碼='" & Text2.Text & "'"
Adodc1.Refresh
If Adodc1.Recordset.EOF Then
MsgBox ("沒有此用戶或密碼錯誤")
Else
If Combo1.Text = Adodc1.Recordset.Fields("用戶類型") Then
MsgBox ("用戶正確,請登陸系統(tǒng)")
Form15.Show
Else
MsgBox ("無此等級用戶!")
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -