?? 密碼修改.frm
字號(hào):
VERSION 5.00
Begin VB.Form form1
Caption = "Form1"
ClientHeight = 3645
ClientLeft = 60
ClientTop = 450
ClientWidth = 7410
LinkTopic = "Form1"
ScaleHeight = 3645
ScaleWidth = 7410
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "返回"
Height = 735
Left = 3480
TabIndex = 5
Top = 2160
Width = 2055
End
Begin VB.CommandButton Command1
Caption = "確認(rèn)"
Height = 735
Left = 1200
TabIndex = 4
Top = 2160
Width = 1695
End
Begin VB.TextBox Text2
Height = 495
Left = 3240
TabIndex = 2
Top = 1200
Width = 3255
End
Begin VB.TextBox Text1
Height = 495
Left = 3240
TabIndex = 1
Top = 360
Width = 3255
End
Begin VB.Label Label2
Caption = "請(qǐng)?jiān)诖溯斎胄旅艽a:"
Height = 495
Left = 600
TabIndex = 3
Top = 1200
Width = 2295
End
Begin VB.Label Label1
Caption = "請(qǐng)輸入新密碼:"
Height = 495
Left = 600
TabIndex = 0
Top = 360
Width = 2295
End
End
Attribute VB_Name = "form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim cn As ADODB.Connection
Set cn = New ADODB.Connection
cn.Open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=bank;Data Source=B14"
Dim rss As ADODB.Recordset
Set rss = New ADODB.Recordset
strsql = "select * from zhanghu_05_10 where 卡號(hào)='" & strr & "'"
rss.Open strsql, cn, adOpenKeyset, adLockOptimistic
Do While Not rss.EOF
If Text1.Text <> Text2.Text Then
MsgBox "你兩次的密碼輸入不一致請(qǐng)重新輸入!", vbOKOnly + vbInformation, "銀行系統(tǒng)提示"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
Else
rss("密碼") = Trim(Text1.Text)
rss.Update
MsgBox "您修改密碼,請(qǐng)返回界面!", vbOKOnly + vbInformation, "銀行系統(tǒng)提示"
Text1.Text = ""
Text2.Text = ""
End If
rss.MoveNext
Loop
End Sub
Private Sub Command2_Click()
Frmmain.Show
Unload Me
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -