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

📄 frmmodifyuserinfo.frm

📁 shujuku数据库用vb边的数据库是一个比较简单的数据可撒酒风开绿灯寄生蜂
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmModifyuserinfo 
   Caption         =   "修改密码"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   3000
      TabIndex        =   5
      Top             =   2520
      Width           =   975
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确认"
      Height          =   375
      Left            =   480
      TabIndex        =   4
      Top             =   2520
      Width           =   975
   End
   Begin VB.TextBox Text2 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2280
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   1560
      Width           =   1815
   End
   Begin VB.TextBox Text1 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2280
      PasswordChar    =   "*"
      TabIndex        =   1
      Top             =   480
      Width           =   1815
   End
   Begin VB.Label Label2 
      Caption         =   "请确认新密码"
      Height          =   375
      Left            =   720
      TabIndex        =   2
      Top             =   1680
      Width           =   1095
   End
   Begin VB.Label Label1 
      Caption         =   "请输入新密码"
      Height          =   255
      Left            =   720
      TabIndex        =   0
      Top             =   600
      Width           =   1215
   End
End
Attribute VB_Name = "frmModifyuserinfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit

Private Sub cmdOK_Click()
Dim txtSQl As String
Dim msgtext As String
Dim mrc As ADODB.Recordset

'判断是否为空
If Trim(Text1.Text) <> Trim(Text2.Text) Then
    MsgBox "密码输入不正确!", vbOKOnly + vbInformation, "系统信息!"
    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 + vbInformation, "系统信息!"
    Me.Hide
 End If


End Sub

⌨️ 快捷键说明

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