?? 密碼修改.frm
字號(hào):
VERSION 5.00
Begin VB.Form Form13
BackColor = &H00FFC0C0&
Caption = "Form13"
ClientHeight = 4965
ClientLeft = 60
ClientTop = 450
ClientWidth = 7980
LinkTopic = "Form13"
Picture = "密碼修改.frx":0000
ScaleHeight = 4965
ScaleWidth = 7980
StartUpPosition = 3 '窗口缺省
Begin VB.Frame Frame1
BackColor = &H00FFC0C0&
Caption = "密碼修改界面"
Height = 3975
Left = 960
TabIndex = 0
Top = 360
Width = 5655
Begin VB.TextBox Text4
Height = 495
Left = 2880
TabIndex = 10
Top = 2520
Width = 2295
End
Begin VB.TextBox Text3
Height = 495
Left = 2880
TabIndex = 9
Top = 1800
Width = 2295
End
Begin VB.TextBox Text1
Height = 495
IMEMode = 3 'DISABLE
Left = 2880
PasswordChar = "*"
TabIndex = 8
Top = 360
Width = 2295
End
Begin VB.TextBox Text2
Height = 495
IMEMode = 3 'DISABLE
Left = 2880
PasswordChar = "*"
TabIndex = 7
Top = 1080
Width = 2295
End
Begin VB.CommandButton Command3
Caption = "修改密碼"
Height = 495
Left = 2880
Picture = "密碼修改.frx":A602
Style = 1 'Graphical
TabIndex = 6
Top = 3240
Width = 2295
End
Begin VB.CommandButton Command2
Caption = "返回"
Height = 495
Left = 600
Picture = "密碼修改.frx":12ED8
Style = 1 'Graphical
TabIndex = 5
Top = 3240
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "答案"
Height = 495
Index = 0
Left = 600
Picture = "密碼修改.frx":1B7AE
Style = 1 'Graphical
TabIndex = 4
Top = 2520
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "找回密碼提示"
Height = 495
Index = 2
Left = 600
Picture = "密碼修改.frx":24084
Style = 1 'Graphical
TabIndex = 3
Top = 1800
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "新密碼"
Height = 495
Index = 3
Left = 600
Picture = "密碼修改.frx":2C95A
Style = 1 'Graphical
TabIndex = 2
Top = 360
Width = 1575
End
Begin VB.CommandButton Command1
Caption = "確認(rèn)新密碼"
Height = 495
Index = 4
Left = 600
Picture = "密碼修改.frx":35230
Style = 1 'Graphical
TabIndex = 1
Top = 1080
Width = 1575
End
End
End
Attribute VB_Name = "Form13"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public yg13 As String
Public bz13 As Integer
Private Sub Command2_Click()
If bz13 = 1 Then
Unload Me
Form11.Show
Else
Unload Me
Form3.Show
End If
End Sub
Private Sub Command3_Click()
If Text1.Text = "" Then
MsgBox "新密碼不能為空"
Text1.SetFocus
Exit Sub
ElseIf Len(Text1.Text) <> 6 Then
MsgBox "密碼應(yīng)為6位"
Text1.SetFocus
Exit Sub
ElseIf Text2.Text <> Text1.Text Then
MsgBox "您輸入的密碼不一致,請(qǐng)重新輸入!"
Text1.SetFocus
Exit Sub
Else
Call openconn
rs.Open "select * from employee_xx053_06 where e_No='" & yg13 & "'", conn, adOpenDynamic, adLockOptimistic
If rs.BOF And rs.EOF Then
MsgBox "密碼修改不成功!"
rs.Close
Unload Me
Form16.Show
Else
rs.Fields(6) = Trim(Text1.Text)
rs.Fields(7) = Trim(Text3.Text)
rs.Fields(8) = Trim(Text4.Text)
rs.Update
MsgBox "修改成功,請(qǐng)妥善保管好您的新密碼!"
rs.Close
Unload Me
Form1.Show
End If
End If
End Sub
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -