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

📄 frmmodifyuserinfo.frm

📁 具体的飞机售票系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmModifyuserinfo 
   Caption         =   "修改密码"
   ClientHeight    =   3195
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3195
   ScaleWidth      =   4680
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox txtPassword 
      Height          =   375
      Left            =   2280
      TabIndex        =   1
      Top             =   600
      Width           =   1575
   End
   Begin VB.TextBox txtUserName 
      Height          =   375
      Left            =   2280
      TabIndex        =   0
      Top             =   120
      Width           =   1575
   End
   Begin VB.CommandButton cmdCancel 
      Caption         =   "取   消"
      Height          =   375
      Left            =   2640
      TabIndex        =   6
      Top             =   2280
      Width           =   1095
   End
   Begin VB.CommandButton cmdOK 
      Caption         =   "确   定"
      Height          =   375
      Left            =   720
      TabIndex        =   5
      Top             =   2280
      Width           =   1095
   End
   Begin VB.TextBox txtPassword2 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2280
      PasswordChar    =   "*"
      TabIndex        =   4
      Top             =   1560
      Width           =   1575
   End
   Begin VB.TextBox txtPassword1 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   2280
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   1080
      Width           =   1575
   End
   Begin VB.Label Label4 
      Caption         =   "请输入旧密码:"
      Height          =   375
      Left            =   840
      TabIndex        =   9
      Top             =   720
      Width           =   1335
   End
   Begin VB.Label Label3 
      Caption         =   "请输入用户名:"
      Height          =   375
      Left            =   840
      TabIndex        =   8
      Top             =   240
      Width           =   1335
   End
   Begin VB.Label Label2 
      Caption         =   "请确认新密码:"
      Height          =   255
      Left            =   840
      TabIndex        =   7
      Top             =   1680
      Width           =   1455
   End
   Begin VB.Label Label1 
      Caption         =   "请输入新密码:"
      Height          =   255
      Left            =   840
      TabIndex        =   2
      Top             =   1200
      Width           =   1455
   End
End
Attribute VB_Name = "frmModifyuserinfo"
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 As String
Dim mrc As ADODB.Recordset
Dim msgtext As String

If Trim(txtUserName.Text = "") Then
   MsgBox "没有这个用户,请重新输入用户名!", vbOKOnly + vbExclamation, "警告"
   txtUserName.SetFocus
   Else
   txtsql = "select*from userinfo where userID='" & txtUserName.Text & "'"
   Set mrc = ExecuteSQL(txtsql, msgtext)
If mrc.EOF = True Then
MsgBox "没有这个用户,请重新输入用户名!", vbOKOnly + vbExclamation, "警告"
txtUserName.SetFocus
Else
If Trim(mrc.Fields(1)) = Trim(txtPassword.Text) Then

End If
End If
End If

If Trim(txtPassword1.Text) <> Trim(txtPassword2.Text) Then
MsgBox "两次密码输入不一致,请重新输入!", vbOKOnly + vbExclamation, "警告"
txtPassword1.SetFocus
txtPassword1.Text = ""
Else
txtsql = "select*from userinfo where userID='" & txtUserName.Text & "'"
Set mrc = ExecuteSQL(txtsql, msgtext)

mrc.Fields(1) = Trim(txtPassword1.Text)
mrc.Update
mrc.Close
MsgBox "密码修改成功!", vbOKOnly + vbExclamation, "修改密码"
Me.Hide
End If

End Sub

⌨️ 快捷键说明

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