?? frmchangepwd.frm
字號:
VERSION 5.00
Begin VB.Form frmchangepwd
Caption = "修改密碼"
ClientHeight = 4980
ClientLeft = 60
ClientTop = 450
ClientWidth = 6780
LinkTopic = "Form1"
ScaleHeight = 4980
ScaleWidth = 6780
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 855
Left = 3960
TabIndex = 5
Top = 3360
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "確認"
Height = 735
Left = 840
TabIndex = 4
Top = 3480
Width = 1095
End
Begin VB.TextBox Text2
Height = 855
IMEMode = 3 'DISABLE
Left = 1920
PasswordChar = "*"
TabIndex = 3
Top = 1920
Width = 3015
End
Begin VB.TextBox Text1
Height = 735
IMEMode = 3 'DISABLE
Left = 1920
PasswordChar = "*"
TabIndex = 1
Top = 840
Width = 2895
End
Begin VB.Label Label2
Caption = "確認密碼"
Height = 615
Left = 1080
TabIndex = 2
Top = 2040
Width = 1455
End
Begin VB.Label Label1
Caption = "新密碼"
Height = 855
Left = 1080
TabIndex = 0
Top = 960
Width = 855
End
End
Attribute VB_Name = "frmchangepwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim rs_chang As New ADODB.Recordset
Dim sql As String
If Trim(Text1.Text) <> Trim(Text2.Text) Then
MsgBox "密碼不一致!", vbOKOnly + vbExclamation, ""
Text1.SetFocus
Text1.Text = ""
Text2.Text = ""
Else
sql = "select * from 系統管理 where 用戶名='" & userID & "'"
rs_chang.Open sql, conn, adOpenKeyset, adLockPessimistic
rs_chang.Fields(1) = Text1.Text
rs_chang.Update
rs_chang.Close
MsgBox "密碼修改成功", vbOKOnly + vbExclamation, ""
Unload Me
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -