📄 form1.frm
字号:
VERSION 5.00
Begin VB.Form Form11
Caption = "登录"
ClientHeight = 1995
ClientLeft = 60
ClientTop = 345
ClientWidth = 4185
LinkTopic = "Form1"
ScaleHeight = 1995
ScaleWidth = 4185
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text3
DataField = "员工姓名"
DataSource = "Data1"
Height = 285
Left = 1080
Locked = -1 'True
TabIndex = 6
Top = 480
Width = 1695
End
Begin VB.TextBox Text2
DataField = "员工密码"
DataSource = "Data1"
Height = 285
Left = 2880
TabIndex = 5
Top = 960
Visible = 0 'False
Width = 735
End
Begin VB.TextBox Text1
DataSource = "Data1"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 285
IMEMode = 3 'DISABLE
Left = 1080
PasswordChar = "*"
TabIndex = 4
Top = 960
Width = 1695
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "E:\program\碟店相关\租碟管理\影片数据库实作.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 1080
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "说明选项"
Top = 120
Width = 1260
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Left = 2760
TabIndex = 3
Top = 1440
Width = 855
End
Begin VB.CommandButton Command1
Caption = "登录"
Height = 375
Left = 1080
TabIndex = 2
Top = 1440
Width = 855
End
Begin VB.Label Label3
Caption = "请滚动选取姓名"
ForeColor = &H000000FF&
Height = 255
Left = 2400
TabIndex = 7
Top = 240
Width = 1695
End
Begin VB.Label Label2
Caption = "密码"
Height = 255
Left = 480
TabIndex = 1
Top = 960
Width = 495
End
Begin VB.Label Label1
Caption = "姓名"
Height = 255
Left = 480
TabIndex = 0
Top = 480
Width = 495
End
End
Attribute VB_Name = "Form11"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim str1 As String
Dim str2 As String
Dim str3 As String
str1 = Text1.Text
str2 = Text2.Text
str3 = Text3.Text
oldmark = Data1.Recordset.Bookmark
Data1.Recordset.FindFirst "员工姓名='str3'"
If Data1.Recordset.NoMatch Then
Data1.Recordset.Bookmark = oldmark
End If
If str1 = str2 Then
Unload Me
Form22.Show
Load Form22
Form22.Text24.Locked = False
Form22.DBCombo1.Locked = False
Form22.DBCombo2.Locked = False
Form22.DBCombo3.Locked = False
Form22.DBCombo4.Locked = False
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -