?? modifypwd.frm
字號:
VERSION 5.00
Begin VB.Form Form4
Caption = "修改密碼"
ClientHeight = 3195
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form4"
MaxButton = 0 'False
ScaleHeight = 3195
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 2520
TabIndex = 5
Top = 2160
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "確定"
Height = 495
Left = 720
TabIndex = 4
Top = 2160
Width = 1095
End
Begin VB.TextBox Text2
Height = 375
Left = 1800
TabIndex = 3
Top = 1200
Width = 1575
End
Begin VB.TextBox Text1
Height = 375
Left = 1800
TabIndex = 2
Top = 600
Width = 1575
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "確認密碼"
Height = 180
Left = 840
TabIndex = 1
Top = 1200
Width = 720
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "輸入新密碼"
Height = 180
Left = 720
TabIndex = 0
Top = 600
Width = 900
End
End
Attribute VB_Name = "Form4"
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 + -