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

📄 mod_pass.frm

📁 商品管理系统 商品管理系统 商品管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form gengxinmima 
   Caption         =   "更新密码"
   ClientHeight    =   2610
   ClientLeft      =   60
   ClientTop       =   645
   ClientWidth     =   5625
   LinkTopic       =   "Form1"
   ScaleHeight     =   2610
   ScaleWidth      =   5625
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   375
      Left            =   4320
      TabIndex        =   6
      Top             =   1800
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Default         =   -1  'True
      Height          =   375
      Left            =   4320
      TabIndex        =   5
      Top             =   480
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "请输入新密码"
      Height          =   2055
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   3975
      Begin VB.TextBox Text2 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   1680
         PasswordChar    =   "*"
         TabIndex        =   2
         Top             =   1200
         Width           =   1575
      End
      Begin VB.TextBox Text1 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   1680
         PasswordChar    =   "*"
         TabIndex        =   1
         Top             =   480
         Width           =   1575
      End
      Begin VB.Label Label2 
         AutoSize        =   -1  'True
         Caption         =   "确认新密码"
         Height          =   195
         Left            =   720
         TabIndex        =   4
         Top             =   1320
         Width           =   900
      End
      Begin VB.Label Label1 
         AutoSize        =   -1  'True
         Caption         =   "输入新密码"
         Height          =   195
         Left            =   720
         TabIndex        =   3
         Top             =   600
         Width           =   900
      End
   End
   Begin VB.Menu mima 
      Caption         =   "更新密码"
   End
   Begin VB.Menu tianjiaming 
      Caption         =   "添加用户名"
   End
   Begin VB.Menu tuichu 
      Caption         =   "退出"
   End
End
Attribute VB_Name = "gengxinmima"
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) Or Text1.Text = "" Or 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, ""
   Text1.SetFocus
   Text1.Text = ""
   Text2.Text = ""
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub mima_Click()
gengxinmima.Show

End Sub

Private Sub tianjiaming_Click()
tianjiayonghuming.Show
Unload Me
End Sub

Private Sub tuichu_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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