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

📄 密码修改.frm

📁 C/S模块
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form13 
   BackColor       =   &H00FFC0C0&
   Caption         =   "Form13"
   ClientHeight    =   4965
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7980
   LinkTopic       =   "Form13"
   Picture         =   "密码修改.frx":0000
   ScaleHeight     =   4965
   ScaleWidth      =   7980
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      BackColor       =   &H00FFC0C0&
      Caption         =   "密码修改界面"
      Height          =   3975
      Left            =   960
      TabIndex        =   0
      Top             =   360
      Width           =   5655
      Begin VB.TextBox Text4 
         Height          =   495
         Left            =   2880
         TabIndex        =   10
         Top             =   2520
         Width           =   2295
      End
      Begin VB.TextBox Text3 
         Height          =   495
         Left            =   2880
         TabIndex        =   9
         Top             =   1800
         Width           =   2295
      End
      Begin VB.TextBox Text1 
         Height          =   495
         IMEMode         =   3  'DISABLE
         Left            =   2880
         PasswordChar    =   "*"
         TabIndex        =   8
         Top             =   360
         Width           =   2295
      End
      Begin VB.TextBox Text2 
         Height          =   495
         IMEMode         =   3  'DISABLE
         Left            =   2880
         PasswordChar    =   "*"
         TabIndex        =   7
         Top             =   1080
         Width           =   2295
      End
      Begin VB.CommandButton Command3 
         Caption         =   "修改密码"
         Height          =   495
         Left            =   2880
         Picture         =   "密码修改.frx":A602
         Style           =   1  'Graphical
         TabIndex        =   6
         Top             =   3240
         Width           =   2295
      End
      Begin VB.CommandButton Command2 
         Caption         =   "返回"
         Height          =   495
         Left            =   600
         Picture         =   "密码修改.frx":12ED8
         Style           =   1  'Graphical
         TabIndex        =   5
         Top             =   3240
         Width           =   1575
      End
      Begin VB.CommandButton Command1 
         Caption         =   "答案"
         Height          =   495
         Index           =   0
         Left            =   600
         Picture         =   "密码修改.frx":1B7AE
         Style           =   1  'Graphical
         TabIndex        =   4
         Top             =   2520
         Width           =   1575
      End
      Begin VB.CommandButton Command1 
         Caption         =   "找回密码提示"
         Height          =   495
         Index           =   2
         Left            =   600
         Picture         =   "密码修改.frx":24084
         Style           =   1  'Graphical
         TabIndex        =   3
         Top             =   1800
         Width           =   1575
      End
      Begin VB.CommandButton Command1 
         Caption         =   "新密码"
         Height          =   495
         Index           =   3
         Left            =   600
         Picture         =   "密码修改.frx":2C95A
         Style           =   1  'Graphical
         TabIndex        =   2
         Top             =   360
         Width           =   1575
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确认新密码"
         Height          =   495
         Index           =   4
         Left            =   600
         Picture         =   "密码修改.frx":35230
         Style           =   1  'Graphical
         TabIndex        =   1
         Top             =   1080
         Width           =   1575
      End
   End
End
Attribute VB_Name = "Form13"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public yg13 As String
Public bz13 As Integer
Private Sub Command2_Click()
If bz13 = 1 Then
Unload Me
Form11.Show
Else
Unload Me
Form3.Show
End If
End Sub

Private Sub Command3_Click()
If Text1.Text = "" Then
        MsgBox "新密码不能为空"
        Text1.SetFocus
         Exit Sub
    ElseIf Len(Text1.Text) <> 6 Then
        MsgBox "密码应为6位"
        Text1.SetFocus
         Exit Sub
    ElseIf Text2.Text <> Text1.Text Then
        MsgBox "您输入的密码不一致,请重新输入!"
        Text1.SetFocus
         Exit Sub
 Else
        Call openconn
        rs.Open "select * from employee_xx053_06 where e_No='" & yg13 & "'", conn, adOpenDynamic, adLockOptimistic
         If rs.BOF And rs.EOF Then
          MsgBox "密码修改不成功!"
          rs.Close
           Unload Me
           Form16.Show
           Else
        rs.Fields(6) = Trim(Text1.Text)
        rs.Fields(7) = Trim(Text3.Text)
        rs.Fields(8) = Trim(Text4.Text)
        rs.Update
         MsgBox "修改成功,请妥善保管好您的新密码!"
         rs.Close
          Unload Me
         Form1.Show
       End If
       End If
End Sub

⌨️ 快捷键说明

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