?? update.frm
字號:
VERSION 5.00
Begin VB.Form update
Caption = "Form1"
ClientHeight = 3855
ClientLeft = 60
ClientTop = 345
ClientWidth = 5460
LinkTopic = "Form1"
ScaleHeight = 3855
ScaleWidth = 5460
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton cmdCancel
Caption = "取消"
Height = 495
Left = 2760
TabIndex = 5
Top = 2760
Width = 1575
End
Begin VB.CommandButton cmdOK
Caption = "確定"
Height = 495
Left = 600
TabIndex = 4
Top = 2760
Width = 1455
End
Begin VB.TextBox Text2
Height = 615
IMEMode = 3 'DISABLE
Left = 2640
PasswordChar = "*"
TabIndex = 3
Top = 1320
Width = 1815
End
Begin VB.TextBox Text1
Height = 615
IMEMode = 3 'DISABLE
Left = 2640
PasswordChar = "*"
TabIndex = 1
Top = 240
Width = 1815
End
Begin VB.Label LABEL2
Caption = "請請輸入新密碼"
Height = 735
Left = 480
TabIndex = 2
Top = 1320
Width = 1455
End
Begin VB.Label Label1
Caption = "請請輸入新密碼"
Height = 615
Left = 480
TabIndex = 0
Top = 240
Width = 1455
End
End
Attribute VB_Name = "update"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
Dim txtSQL, MsgText As String
Dim mrc As ADODB.Recordset
If Trim(Text1.Text) <> Trim(Text2.Text) Then
MsgBox "密碼輸入不正確!", vbOKOnly + vbExclamation, "警告"
Text1.SetFocus
Text1.Text = ""
Else
txtSQL = "select * from user_Info where user_ID = '" & UserName & "'"
Set mrc = ExecuteSQL(txtSQL, MsgText)
mrc.Fields(1) = Text1.Text
mrc.update
mrc.Close
MsgBox "密碼修改成功!", vbOKOnly + vbExclamation, "修改密碼"
Me.Hide
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -