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

📄 form4.frm

📁 VB编写的企业管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form4 
   Caption         =   " 修改密码"
   ClientHeight    =   4665
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   5925
   LinkTopic       =   "Form4"
   ScaleHeight     =   4665
   ScaleWidth      =   5925
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   495
      Left            =   3360
      TabIndex        =   7
      Top             =   3480
      Width           =   1575
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   495
      Left            =   840
      TabIndex        =   6
      Top             =   3480
      Width           =   1335
   End
   Begin VB.TextBox Text3 
      Height          =   495
      IMEMode         =   3  'DISABLE
      Left            =   3000
      MaxLength       =   8
      PasswordChar    =   "*"
      TabIndex        =   5
      Text            =   "Text3"
      Top             =   2160
      Width           =   2415
   End
   Begin VB.TextBox Text2 
      Height          =   495
      IMEMode         =   3  'DISABLE
      Left            =   3000
      MaxLength       =   8
      PasswordChar    =   "*"
      TabIndex        =   4
      Text            =   "Text2"
      Top             =   1200
      Width           =   2415
   End
   Begin VB.TextBox Text1 
      Height          =   495
      IMEMode         =   3  'DISABLE
      Left            =   2880
      PasswordChar    =   "*"
      TabIndex        =   3
      Text            =   "Text1"
      Top             =   360
      Width           =   2535
   End
   Begin VB.Label Label3 
      Caption         =   "请确认密码"
      Height          =   615
      Left            =   240
      TabIndex        =   2
      Top             =   2280
      Width           =   2655
   End
   Begin VB.Label Label2 
      Caption         =   "请输入新密码"
      Height          =   615
      Left            =   240
      TabIndex        =   1
      Top             =   1200
      Width           =   2535
   End
   Begin VB.Label Label1 
      Caption         =   "请输入旧密码"
      Height          =   495
      Left            =   240
      TabIndex        =   0
      Top             =   360
      Width           =   2295
   End
End
Attribute VB_Name = "Form4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim sql As String
Dim rs As adodb.Recordset
If Trim(Text1.Text = "") Then
MsgBox " 没有输入旧密码,请重新输入! ", vbOKOnly + vbExclamation, " 警告"
Text1.SetFocus
Exit Sub
Else

If Trim(Text2.Text) = "" Then
MsgBox ",请输入新密码!", vbOKOnly + vbExclamation, ""
Text2.SetFocus
Exit Sub
Else
If Trim(Text2.Text) <> Trim(Text3.Text) Then
MsgBox " 两次密码不同,请重新输入! ", vbOKOnly + vbExclamation, " 警告"
Text2.Text = ""
Text3.Text = ""
Text2.SetFocus
Else
sql = "update user set userpwd=" & Text2 & "where userid="
sql = sql & gusername & ""
transactsql (sql)
MsgBox "密码已修改", vbOKOnly + vbExclamation, "修改结果"
Unload Me
End If
End If
End Sub

Private Sub Command2_Click()
End
End Sub

Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
End Sub

Private Sub Label3_Click()

End Sub

⌨️ 快捷键说明

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