📄 修改密码.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form Form7
Caption = "修改密码"
ClientHeight = 3315
ClientLeft = 60
ClientTop = 450
ClientWidth = 4680
LinkTopic = "Form7"
ScaleHeight = 3315
ScaleWidth = 4680
StartUpPosition = 1 'CenterOwner
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 600
Top = 2520
Width = 1200
_ExtentX = 2117
_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=MSDASQL.1;Persist Security Info=False;Data Source=fsm"
OLEDBString = "Provider=MSDASQL.1;Persist Security Info=False;Data Source=fsm"
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
Caption = "取消"
Height = 495
Left = 2880
TabIndex = 7
Top = 2640
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 1920
TabIndex = 6
Top = 2640
Width = 975
End
Begin VB.TextBox confirmpwd
Height = 375
IMEMode = 3 'DISABLE
Left = 2040
PasswordChar = "*"
TabIndex = 5
Top = 1920
Width = 1935
End
Begin VB.TextBox newpwd
Height = 375
IMEMode = 3 'DISABLE
Left = 2040
PasswordChar = "*"
TabIndex = 4
Top = 1200
Width = 1935
End
Begin VB.TextBox oldpwd
Height = 405
IMEMode = 3 'DISABLE
Left = 2040
PasswordChar = "*"
TabIndex = 3
Top = 480
Width = 1935
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "请确认新密码"
Height = 375
Left = 480
TabIndex = 2
Top = 1920
Width = 1335
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "请输入新密码"
Height = 495
Left = 480
TabIndex = 1
Top = 1200
Width = 1455
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "请输入旧密码"
Height = 255
Left = 480
TabIndex = 0
Top = 480
Width = 1335
End
End
Attribute VB_Name = "Form7"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdok_Click()
End Sub
Private Sub Command1_Click()
Adodc1.RecordSource = "select * from mumbers"
If Trim(oldpwd.Text) = "" Then
MsgBox "请输入旧密码", vbOKOnly + vbExclamation, "提示"
oldpwd.SetFocus
ElseIf Trim(newpwd.Text) = "" Then
MsgBox "请输入新密码", vbOKOnly + vbExclamation, "提示"
newpwd.SetFocus
ElseIf Trim(newpwd.Text) <> Trim(confirmpwd.Text) Then
MsgBox "两次密码不同", vbOKOnly + vbExclamation, "警告"
newpwd.Text = ""
confirmpwd.Text = ""
newpwd.SetFocus
Else
Adodc1.RecordSource = "update mumbers set mcode='" & newpwd.Text & "'where mname ='" & Trim(Form1.Text1.Text) & "' "
MsgBox "密码已经修改", vbOKOnly + vbExclamation, "修改结果"
Unload Me
Exit Sub
End If
End Sub
Private Sub Command2_Click()
Unload Me
Exit Sub
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -