⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 密码修改.frm

📁 数据库银行管理系统数据库银行管理系统数据库银行管理系统
💻 FRM
字号:
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         =   "确认"
      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         =   "请在此输入新密码:"
      Height          =   495
      Left            =   600
      TabIndex        =   3
      Top             =   1200
      Width           =   2295
   End
   Begin VB.Label Label1 
      Caption         =   "请输入新密码:"
      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 卡号='" & strr & "'"
rss.Open strsql, cn, adOpenKeyset, adLockOptimistic

  Do While Not rss.EOF
   If Text1.Text <> Text2.Text Then
MsgBox "你两次的密码输入不一致请重新输入!", vbOKOnly + vbInformation, "银行系统提示"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
    Else
    rss("密码") = Trim(Text1.Text)
    rss.Update
    MsgBox "您修改密码,请返回界面!", vbOKOnly + vbInformation, "银行系统提示"
    Text1.Text = ""
    Text2.Text = ""
    End If
   rss.MoveNext
 Loop

End Sub

Private Sub Command2_Click()
Frmmain.Show
Unload Me
End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -