📄 form12.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form frmlogin
Caption = "欢迎使用"
ClientHeight = 3900
ClientLeft = 60
ClientTop = 345
ClientWidth = 4815
LinkTopic = "Form12"
Picture = "Form12.frx":0000
ScaleHeight = 3900
ScaleWidth = 4815
Begin MSAdodcLib.Adodc Adodc1
Height = 495
Left = 600
Top = 3720
Visible = 0 'False
Width = 1575
_ExtentX = 2778
_ExtentY = 873
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 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=RSGL.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=RSGL.mdb;Persist Security Info=False"
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.CommandButton Command2
BackColor = &H00FFFF80&
Caption = "取 消"
Height = 495
Left = 2640
MaskColor = &H8000000F&
Style = 1 'Graphical
TabIndex = 5
Top = 2880
Width = 1215
End
Begin VB.CommandButton Command1
BackColor = &H00FFFF80&
Caption = " 确 定 "
Height = 495
Left = 600
MaskColor = &H80000012&
Style = 1 'Graphical
TabIndex = 4
Top = 2880
Width = 1170
End
Begin VB.TextBox Text2
Height = 495
IMEMode = 3 'DISABLE
Left = 2640
PasswordChar = "*"
TabIndex = 3
Top = 2040
Width = 1455
End
Begin VB.TextBox Text1
Height = 495
Left = 2640
TabIndex = 1
Top = 1320
Width = 1455
End
Begin VB.Label Label3
BackColor = &H80000005&
Caption = "人事管理系统"
BeginProperty Font
Name = "幼圆"
Size = 24
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000080&
Height = 495
Left = 840
TabIndex = 6
Top = 360
Width = 2895
End
Begin VB.Label Label2
BackColor = &H00FFFFFF&
Caption = "用户密码"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 480
TabIndex = 2
Top = 2160
Width = 1095
End
Begin VB.Label Label1
BackColor = &H00FFFFFF&
Caption = "用户姓名"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 480
TabIndex = 0
Top = 1440
Width = 1095
End
End
Attribute VB_Name = "frmlogin"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Adodc1.RecordSource = "select * from 用户管理 where 用户姓名='" & Text1.Text & "'"
Adodc1.Refresh
If Text1.Text = "" Or Text2.Text = "" Then
a = MsgBox("用户姓名或密码不能为空!", , "错误!")
Else
If Adodc1.Recordset.EOF Then
a = MsgBox("不存在此用户!", , "错误!")
Else
If Adodc1.Recordset.Fields("用户密码") = Text2.Text Then
quanxian = Adodc1.Recordset.Fields("用户权限")
Form1.Show
xingming = Text1.Text
Unload Me
Else
a = MsgBox("用户密码不正确!", , "错误!")
End If
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Form_Load()
frmlogin.Left = 3300
frmlogin.Top = 1800
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -