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

📄 frmchangpwd.frm

📁 很经典的图书管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmchangepwd 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "修改密码"
   ClientHeight    =   1620
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   3480
   Icon            =   "frmchangpwd.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   1620
   ScaleWidth      =   3480
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   300
      Left            =   2100
      TabIndex        =   5
      Top             =   1200
      Width           =   600
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   300
      Left            =   675
      TabIndex        =   4
      Top             =   1200
      Width           =   600
   End
   Begin VB.TextBox Text2 
      Height          =   300
      IMEMode         =   3  'DISABLE
      Left            =   1275
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   750
      Width           =   1725
   End
   Begin VB.TextBox Text1 
      Height          =   300
      IMEMode         =   3  'DISABLE
      Left            =   1275
      PasswordChar    =   "*"
      TabIndex        =   2
      Top             =   150
      Width           =   1725
   End
   Begin VB.Label Label2 
      AutoSize        =   -1  'True
      Caption         =   "确认新密码"
      Height          =   195
      Left            =   150
      TabIndex        =   1
      Top             =   750
      Width           =   900
   End
   Begin VB.Label Label1 
      AutoSize        =   -1  'True
      Caption         =   "输入新密码"
      Height          =   195
      Left            =   150
      TabIndex        =   0
      Top             =   225
      Width           =   900
   End
End
Attribute VB_Name = "frmchangepwd"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim rs_chang As New ADODB.Recordset
Dim sql As String
If Trim(Text1.Text) <> Trim(Text2.Text) Then
   MsgBox "密码不一致!", vbOKOnly + vbExclamation, ""
   Text1.SetFocus
   Text1.Text = ""
   Text2.Text = ""
Else
   sql = "select * from 系统管理 where 用户名='" & userID & "'"
   rs_chang.Open sql, conn, adOpenKeyset, adLockPessimistic
   rs_chang.Fields(1) = Text1.Text
   rs_chang.Update
   rs_chang.Close
   MsgBox "密码修改成功", vbOKOnly + vbExclamation, ""
   Unload Me
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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