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

📄 frmxiugaimima.frm

📁 校园导游管理系统!!这个应该对很多人都比较有用
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmxiugaimima 
   Caption         =   "修改密码"
   ClientHeight    =   3090
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3090
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Cmdcancel 
      Caption         =   "取消"
      Height          =   495
      Left            =   2760
      TabIndex        =   7
      Top             =   2520
      Width           =   1215
   End
   Begin VB.CommandButton Comok 
      Caption         =   "确认"
      Height          =   495
      Left            =   720
      TabIndex        =   6
      Top             =   2520
      Width           =   1095
   End
   Begin VB.TextBox txtpassword2 
      Height          =   495
      Left            =   2160
      TabIndex        =   5
      Top             =   1800
      Width           =   2295
   End
   Begin VB.TextBox txtpassword1 
      Height          =   495
      Left            =   2160
      TabIndex        =   4
      Top             =   960
      Width           =   2295
   End
   Begin VB.TextBox oldpassword 
      Height          =   495
      Left            =   2160
      TabIndex        =   3
      Top             =   120
      Width           =   2295
   End
   Begin VB.Label Label3 
      Caption         =   "请确认你的新密码"
      Height          =   495
      Left            =   120
      TabIndex        =   2
      Top             =   1800
      Width           =   1695
   End
   Begin VB.Label Label2 
      Caption         =   "请输入你的新密码"
      Height          =   495
      Left            =   120
      TabIndex        =   1
      Top             =   960
      Width           =   1575
   End
   Begin VB.Label Label1 
      Caption         =   "请输入你的旧密码"
      Height          =   375
      Left            =   120
      TabIndex        =   0
      Top             =   240
      Width           =   1455
   End
End
Attribute VB_Name = "frmxiugaimima"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Private Sub Command2_Click()
txtusername.Text = ""
txtpassword1 = ""
txtpassword2 = ""
End Sub

Private Sub Comok_Click()
Dim txtsql As String, mrc As ADODB.Recordset, msgtext As String
If Trim(oldpassword.Text) = "" Then
frmmain.StatusBarmy.Panels.Item(1) = "旧密码不能为空"
oldpassword.SetFocus
Exit Sub
Else
 If Trim(txtpassword1.Text) <> Trim(txtpassword2.Text) Then
 frmmain.StatusBarmy.Panels.Item(1).Text = "2次密码不一致"
 txtpassword1.SetFocus
 txtpassword1.Text = ""
 txtpassword2.Text = ""
 Exit Sub
 
 Else
 
 txtsql = "select * from user_info where user_id='" & username & "'"
Set mrc = executesql(txtsql, msgtext)
mrc.Fields(1) = Trim(txtpassword1.Text)

mrc.Update
  End If
  End If
  
Unload Me

End Sub

⌨️ 快捷键说明

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