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

📄 update.frm

📁 企业客户管理信息系统 企业管理信息系统的对象是企业、企业化管理的事业单位。 客户管理系统为企事业单位提供保存信息、修改信息、信息咨询等服务。 传统的纸介材料的数据信息管理已经不适合当代企业公司的发
💻 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 + -