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

📄 frmmodifypwd.frm

📁 图书管理系统New08-05-28.rar(包含文档)
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmModifyPwd 
   BackColor       =   &H80000013&
   Caption         =   "修改密码"
   ClientHeight    =   3570
   ClientLeft      =   5370
   ClientTop       =   4995
   ClientWidth     =   3735
   LinkTopic       =   "Form1"
   ScaleHeight     =   3570
   ScaleWidth      =   3735
   Begin VB.CommandButton Command2 
      BackColor       =   &H80000013&
      Caption         =   "取 消"
      Height          =   375
      Left            =   2040
      TabIndex        =   8
      Top             =   2880
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确 定"
      Height          =   375
      Left            =   720
      TabIndex        =   7
      Top             =   2880
      Width           =   975
   End
   Begin VB.TextBox password2 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   1200
      PasswordChar    =   "*"
      TabIndex        =   6
      Top             =   2160
      Width           =   1455
   End
   Begin VB.TextBox password 
      Height          =   375
      IMEMode         =   3  'DISABLE
      Left            =   1200
      PasswordChar    =   "*"
      TabIndex        =   4
      Top             =   1560
      Width           =   1455
   End
   Begin VB.TextBox username 
      Height          =   375
      Left            =   1200
      TabIndex        =   2
      Top             =   960
      Width           =   1455
   End
   Begin VB.Label Label4 
      AutoSize        =   -1  'True
      BackColor       =   &H80000013&
      Caption         =   "确认密码:"
      Height          =   180
      Left            =   240
      TabIndex        =   5
      Top             =   2280
      Width           =   900
   End
   Begin VB.Label Label3 
      AutoSize        =   -1  'True
      BackColor       =   &H80000013&
      Caption         =   "新密码:"
      Height          =   180
      Left            =   480
      TabIndex        =   3
      Top             =   1680
      Width           =   720
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      BackColor       =   &H80000013&
      Caption         =   "用户名:"
      Height          =   180
      Left            =   480
      TabIndex        =   1
      Top             =   1080
      Width           =   720
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      BackColor       =   &H80000013&
      Caption         =   "修改密码"
      BeginProperty Font 
         Name            =   "隶书"
         Size            =   21.75
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H000000C0&
      Height          =   435
      Left            =   840
      TabIndex        =   0
      Top             =   240
      Width           =   1800
   End
End
Attribute VB_Name = "frmModifyPwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'****************************************************************************
'       作者:林永刚
'       名称:frm_main
'       功能:主窗口。
'****************************************************************************

Private Sub Command1_Click()
Dim rs14 As New ADODB.Recordset
Dim sql14 As String

If password.Text = "" Then
  MsgBox "请输入新密码"
  password.SetFocus
  Exit Sub
End If
If password.Text <> password2.Text Then
  MsgBox "确认密码不正确!"
  password2.Text = ""
  password2.SetFocus
  Exit Sub
End If

sql14 = "select yhmm from admins where yhmc='" & username.Text & "'"
Set rs14 = ADOSQL(sql14)
rs14.Fields("yhmm") = Trim(password.Text)
rs14.Update
MsgBox "修改密码成功!"
rs14.Close
Unload Me
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
username.Text = user
username.Enabled = False
End Sub

⌨️ 快捷键说明

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