📄 form16.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form16
BackColor = &H00FFC0C0&
Caption = "口令修改"
ClientHeight = 3015
ClientLeft = 4365
ClientTop = 735
ClientWidth = 4350
LinkTopic = "Form16"
ScaleHeight = 3015
ScaleWidth = 4350
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 3120
Top = 7560
Visible = 0 'False
Width = 1815
_ExtentX = 3201
_ExtentY = 661
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.3.51;Persist Security Info=False;Data Source=db1.mdb"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=db1.mdb"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from user"
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 Text4
DataField = "studentid"
DataSource = "Adodc1"
Height = 270
Left = 1440
TabIndex = 6
Top = 7560
Visible = 0 'False
Width = 735
End
Begin VB.TextBox Text3
DataField = "userpassword"
DataSource = "Adodc1"
Height = 270
Left = 0
TabIndex = 5
Top = 7560
Visible = 0 'False
Width = 735
End
Begin VB.CommandButton Command1
BackColor = &H00E0E0E0&
Caption = "提交"
Height = 375
Left = 1080
Style = 1 'Graphical
TabIndex = 4
Top = 2040
Width = 1575
End
Begin VB.TextBox Text2
Height = 375
IMEMode = 3 'DISABLE
Left = 2040
PasswordChar = "*"
TabIndex = 3
Top = 1200
Width = 1695
End
Begin VB.TextBox Text1
Height = 375
IMEMode = 3 'DISABLE
Left = 2040
PasswordChar = "*"
TabIndex = 2
Top = 600
Width = 1695
End
Begin VB.Label Label2
BackColor = &H00FFC0C0&
Caption = "再次输入密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 360
TabIndex = 1
Top = 1320
Width = 1455
End
Begin VB.Label Label1
BackColor = &H00FFC0C0&
Caption = "请输入新密码:"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 360
TabIndex = 0
Top = 720
Width = 1455
End
End
Attribute VB_Name = "Form16"
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 "请输入密码"
Exit Sub
End If
If Text2.Text = "" Then
MsgBox "再次输入密码"
Exit Sub
End If
If Text1.Text = Text2.Text Then
Adodc1.Recordset.MoveFirst
Do
If Text4.Text = Form1.Text1.Text Then
Text3.Text = Text2.Text
Adodc1.Recordset.UpdateBatch
MsgBox "修改成功"
Exit Do
End If
If Adodc1.Recordset.EOF Then
MsgBox "没有这个记录"
Exit Do
Else
Adodc1.Recordset.MoveNext
End If
Loop
Else
MsgBox "输入的密码不一致"
End If
Adodc1.Recordset.MoveFirst
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -