📄 kshmm.frm
字号:
VERSION 5.00
Begin VB.Form kshmm
BackColor = &H00800000&
Caption = "密码输入"
ClientHeight = 1155
ClientLeft = 60
ClientTop = 345
ClientWidth = 5070
LinkTopic = "Form1"
ScaleHeight = 1155
ScaleWidth = 5070
StartUpPosition = 2 'CenterScreen
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "F:\毕业设计\高岩\vb\学生档案管理系统.MDB"
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 345
Left = 120
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "密码表"
Top = 120
Visible = 0 'False
Width = 1140
End
Begin VB.TextBox Text1
Height = 375
Left = 2160
TabIndex = 1
Top = 360
Width = 2535
End
Begin VB.Label Label1
AutoSize = -1 'True
BackColor = &H00800000&
Caption = "请输入您的密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFC0C0&
Height = 240
Left = 240
TabIndex = 0
Top = 480
Width = 1920
End
End
Attribute VB_Name = "kshmm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then
Data1.Recordset.FindFirst "口令='" & Text1.Text & "'"
If Data1.Recordset.NoMatch Then
Label1.Caption = "您输入的密码不正确请重新输入"
Text1.Text = ""
Else
If Data1.Recordset.Fields("权限").Value = "管理" Then
danb.AddCommand.Visible = True
danb.DeleteCommand.Visible = True
danb.Command1.Visible = True
jsjchj.Command5.Visible = True
jsjchj.Command4.Visible = True
jsjchj.DeleteCommand.Visible = True
kjchj.Command2.Visible = True
kjchj.Command4.Visible = True
kjchj.Command5.Visible = True
zhucht.Show
chjchx.Hide
Unload Me
Else
danb.AddCommand.Visible = False
danb.DeleteCommand.Visible = False
danb.Command1.Visible = False
jsjchj.Command5.Visible = False
jsjchj.Command4.Visible = False
jsjchj.DeleteCommand.Visible = False
kjchj.Command2.Visible = False
kjchj.Command4.Visible = False
kjchj.Command5.Visible = False
zhucht.Show
chjchx.Hide
Unload Me
End If
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -