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

📄 frmxg.frm

📁 增加,浏览,修改,学生的信息,输入条件查询
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Frmxg 
   Caption         =   "修改密码"
   ClientHeight    =   3960
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4830
   LinkTopic       =   "Form1"
   ScaleHeight     =   3960
   ScaleWidth      =   4830
   StartUpPosition =   2  '屏幕中心
   Begin VB.Frame Frame1 
      Caption         =   "修改密码"
      Height          =   3375
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   4335
      Begin VB.CommandButton Command2 
         Caption         =   "退  出"
         Height          =   495
         Left            =   2400
         TabIndex        =   10
         Top             =   2640
         Width           =   975
      End
      Begin VB.CommandButton Command1 
         Caption         =   "确  定"
         Height          =   495
         Left            =   600
         TabIndex        =   9
         Top             =   2640
         Width           =   975
      End
      Begin VB.TextBox Text4 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   1680
         PasswordChar    =   "*"
         TabIndex        =   8
         Top             =   2160
         Width           =   2175
      End
      Begin VB.TextBox Text3 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   1680
         PasswordChar    =   "*"
         TabIndex        =   7
         Top             =   1560
         Width           =   2175
      End
      Begin VB.TextBox Text2 
         Height          =   375
         IMEMode         =   3  'DISABLE
         Left            =   1680
         PasswordChar    =   "*"
         TabIndex        =   6
         Top             =   960
         Width           =   2175
      End
      Begin VB.TextBox Text1 
         Height          =   375
         Left            =   1680
         TabIndex        =   5
         Top             =   360
         Width           =   2175
      End
      Begin VB.Label Label1 
         Caption         =   "原密码:"
         Height          =   375
         Index           =   3
         Left            =   360
         TabIndex        =   4
         Top             =   960
         Width           =   1095
      End
      Begin VB.Label Label1 
         Caption         =   "新密码"
         Height          =   375
         Index           =   2
         Left            =   360
         TabIndex        =   3
         Top             =   1560
         Width           =   1095
      End
      Begin VB.Label Label1 
         Caption         =   "确认密码:"
         Height          =   375
         Index           =   1
         Left            =   360
         TabIndex        =   2
         Top             =   2160
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "用户名:"
         Height          =   375
         Index           =   0
         Left            =   360
         TabIndex        =   1
         Top             =   360
         Width           =   1095
      End
   End
   Begin VB.Line Line1 
      BorderColor     =   &H00FF0000&
      X1              =   120
      X2              =   4920
      Y1              =   120
      Y2              =   120
   End
End
Attribute VB_Name = "Frmxg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
    Set cn = New ADODB.Connection
    Set rs = New ADODB.Recordset
    cn.Open Frmuse.Adodc1.ConnectionString
    rs.Open "select * from 用户名表  where 用户名='" & Text1.Text & "'", cn, 1, 3
    If Text2.Text <> ma Then
       MsgBox "请确认原始密码!", 16, "提示"
       Text2.Text = ""
       Text2.SetFocus
    Else
        If Text3.Text <> "" And Text3.Text = Text4.Text Then
           rs.Update "密码", Text3.Text
           MsgBox "修改成功!", 0, "提示信息"
           Text2.Text = ""
           Text3.Text = ""
           Text4.Text = ""
         Else
           MsgBox "你输入的两次密码不一致或没有输入密码!", 16, "提示"
           Text3.Text = ""
           Text4.Text = ""
           Text3.SetFocus
         End If
   End If
End Sub

Private Sub Command2_Click()
      Me.Hide
End Sub

Private Sub Form_Load()
   Text1.Text = yhm
End Sub

⌨️ 快捷键说明

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