📄 mimahuifu.frm
字号:
VERSION 5.00
Begin VB.Form mimahuifu
Caption = "密码恢复"
ClientHeight = 3570
ClientLeft = 60
ClientTop = 450
ClientWidth = 5220
LinkTopic = "Form2"
ScaleHeight = 3570
ScaleWidth = 5220
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 2880
TabIndex = 3
Top = 2280
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "确认"
Height = 495
Left = 960
TabIndex = 2
Top = 2280
Width = 1095
End
Begin VB.TextBox Text1
Height = 375
Left = 2160
TabIndex = 1
Top = 960
Width = 2175
End
Begin VB.Label Label2
Caption = "(初始密码为6个8)"
Height = 375
Left = 2160
TabIndex = 4
Top = 1560
Width = 2175
End
Begin VB.Label Label1
Caption = "请输入你要恢复密码的账号:"
Height = 375
Left = 240
TabIndex = 0
Top = 480
Width = 2535
End
End
Attribute VB_Name = "mimahuifu"
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 id_05_10 where name='" & Trim(Text1.Text) & "'"
rss.Open strsql, cn, adOpenKeyset, adLockOptimistic
Do While Not rss.EOF
rss("password") = "888888"
rss.Update
MsgBox "密码恢复成功!"
Text1.Text = ""
Exit Sub
rss.MoveNext
Loop
MsgBox "您输入的帐号不存在,请重新输入!", vbOKOnly + vbExclamation, "银行系统提示"
Text1.SetFocus
End Sub
Private Sub Command2_Click()
guanli.Show
Unload Me
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -