📄 frmser1.frm
字号:
VERSION 5.00
Begin VB.Form frmser1
BackColor = &H00FFC0C0&
Caption = "修改密码"
ClientHeight = 2235
ClientLeft = 60
ClientTop = 420
ClientWidth = 4440
Icon = "frmser1.frx":0000
LinkTopic = "Form1"
ScaleHeight = 2235
ScaleWidth = 4440
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
BackColor = &H00FFC0C0&
Caption = "取消"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 2640
Style = 1 'Graphical
TabIndex = 4
Top = 1560
Width = 975
End
Begin VB.CommandButton Command1
BackColor = &H00FFC0C0&
Caption = "确定"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1080
Style = 1 'Graphical
TabIndex = 3
Top = 1560
Width = 975
End
Begin VB.TextBox Txtser2
BackColor = &H00FFFFC0&
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 1200
PasswordChar = "*"
TabIndex = 2
Top = 1080
Width = 2895
End
Begin VB.TextBox Txtser1
BackColor = &H00FFFFC0&
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 1200
PasswordChar = "*"
TabIndex = 1
Top = 600
Width = 2895
End
Begin VB.TextBox Txtser
BackColor = &H00FFFFC0&
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
IMEMode = 3 'DISABLE
Left = 1200
PasswordChar = "*"
TabIndex = 0
Top = 120
Width = 2895
End
Begin VB.Label Label3
BackColor = &H00FFC0C0&
Caption = "重输新密码"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 375
Left = 120
TabIndex = 7
Top = 1080
Width = 1095
End
Begin VB.Label Label2
BackColor = &H00FFC0C0&
Caption = "新密码"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 375
Left = 120
TabIndex = 6
Top = 600
Width = 735
End
Begin VB.Label Label1
BackColor = &H00FFC0C0&
Caption = "旧密码"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 375
Left = 120
TabIndex = 5
Top = 120
Width = 735
End
End
Attribute VB_Name = "frmser1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click() '修改密码
Dim rs As New ADODB.Recordset
If Txtser.Text = "" Then
MsgBox "请输入旧密码"
Exit Sub
End If
If Txtser1.Text = "" Or Txtser2.Text = "" Then
MsgBox "请输入新密码"
Exit Sub
End If
If Txtser1.Text <> Txtser2.Text Then
MsgBox "两次输入的密码不一致"
Exit Sub
End If
rs.Open "select * from User_Info where Usr_ID='" & Trim(frmlog.txtnum.Text) & "'", DBCnn, adOpenStatic, adLockOptimistic
rs.Fields("Usr_Sernum") = Txtser1.Text
rs.Update
MsgBox "密码修改成功"
rs.Close
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -