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

📄 修改密码.frm

📁 以上所有操作应用程序及数据库均要对其进行合法性有效性验证及相关约束条件检查
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 修改密码 
   Caption         =   "修改密码"
   ClientHeight    =   3525
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   5055
   LinkTopic       =   "Form2"
   ScaleHeight     =   3525
   ScaleWidth      =   5055
   StartUpPosition =   3  '窗口缺省
   Begin VB.TextBox Text2 
      Height          =   735
      IMEMode         =   3  'DISABLE
      Left            =   1440
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   1560
      Width           =   2535
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退出"
      Height          =   735
      Left            =   2400
      TabIndex        =   2
      Top             =   2400
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   735
      Left            =   840
      TabIndex        =   1
      Top             =   2400
      Width           =   975
   End
   Begin VB.TextBox Text1 
      Height          =   855
      IMEMode         =   3  'DISABLE
      Left            =   1440
      PasswordChar    =   "*"
      TabIndex        =   0
      Top             =   120
      Width           =   2535
   End
   Begin VB.Label Label2 
      Caption         =   "确认密码:"
      Height          =   615
      Left            =   120
      TabIndex        =   5
      Top             =   1680
      Width           =   1215
   End
   Begin VB.Label Label1 
      Caption         =   "修改密码:"
      Height          =   735
      Left            =   120
      TabIndex        =   4
      Top             =   240
      Width           =   1215
   End
End
Attribute VB_Name = "修改密码"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim STR1 As String
If Trim(Text1.Text) <> Trim(Text2.Text) Then
    MsgBox "密码输入不一致"
    Exit Sub
End If

If staoPtion = 0 Then
    STR1 = "SELECT * FROM " + "stuloading" + " where door_no='" + Trim(登入.Text1.Text) + "'"
ElseIf staoPtion = 1 Then
    STR1 = "SELECT * FROM " + "biruloading" + " where door_no='" + Trim(登入.Text1.Text) + "'"
Else
    STR1 = "SELECT * FROM " + "libloading" + " where door_no='" + Trim(登入.Text1.Text) + "'"
End If

ExecSql (STR1)

adoRs.Fields("door_password").Value = Trim(Text1.Text)
    adoRs.Update
MsgBox "密码修改成功"
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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