📄 form6.frm
字号:
VERSION 5.00
Begin VB.Form Form6
BorderStyle = 3 'Fixed Dialog
Caption = "登陆系统"
ClientHeight = 3465
ClientLeft = 45
ClientTop = 375
ClientWidth = 4710
LinkTopic = "Form6"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3465
ScaleWidth = 4710
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2400
TabIndex = 7
Top = 2520
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Left = 1080
TabIndex = 6
Top = 2520
Width = 1095
End
Begin VB.TextBox Text2
Height = 375
Left = 1800
TabIndex = 2
Text = "123"
Top = 1800
Width = 1695
End
Begin VB.TextBox Text1
Height = 375
Left = 1800
TabIndex = 0
Text = "123"
Top = 1200
Width = 1695
End
Begin VB.Label Label5
Caption = "演示说明"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = -1 'True
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3720
TabIndex = 8
Top = 120
Width = 975
End
Begin VB.Label Label4
Caption = "欢迎进入!"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 720
TabIndex = 5
Top = 240
Width = 1935
End
Begin VB.Label Label3
Caption = "—教学管理系统"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1920
TabIndex = 4
Top = 600
Width = 2175
End
Begin VB.Label Label2
Caption = "密 码:"
Height = 255
Left = 1080
TabIndex = 3
Top = 1920
Width = 855
End
Begin VB.Label Label1
Caption = "用户ID:"
Height = 255
Left = 1080
TabIndex = 1
Top = 1320
Width = 855
End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim rs_test As New ADODB.Recordset
Dim sql As String
sql = "select * from users where u_id='" & Text1.Text & "'"
Call Conn
rs_test.Open sql, Module1.conn_mdb, 1, 1
If Asc(rs_test("u_mima")) = Asc(Text2.Text) Then
If Asc(rs_test("u_name")) = Asc("管理员") Then
Y = 1
ElseIf Asc(rs_test("u_name")) = Asc("教师") Then
Y = 2
ElseIf Asc(rs_test("u_name")) = Asc("学生") Then
Y = 3
End If
id = Text1.Text
MDIForm1.Show
Unload Me
Else
MsgBox "密码错误!", , "提示"
End If
Call conclose
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Label5_Click()
Form9.Show
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -