main_mmxg.frm

来自「客户管理系统 基于vb开发环境」· FRM 代码 · 共 178 行

FRM
178
字号
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Begin VB.Form main_mmxg 
   BackColor       =   &H00C0C0C0&
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "系统设置-〖密码设置〗"
   ClientHeight    =   2670
   ClientLeft      =   2715
   ClientTop       =   3690
   ClientWidth     =   5370
   Icon            =   "main_mmxg.frx":0000
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2670
   ScaleWidth      =   5370
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  'CenterOwner
   Begin VB.CommandButton Command2 
      BackColor       =   &H00FF8080&
      Caption         =   "退出"
      Height          =   405
      Left            =   2760
      TabIndex        =   4
      Top             =   2160
      Width           =   975
   End
   Begin VB.TextBox Text3 
      BackColor       =   &H00FFC0C0&
      DataSource      =   "Adodc1"
      Height          =   300
      IMEMode         =   3  'DISABLE
      Left            =   2040
      PasswordChar    =   "*"
      TabIndex        =   3
      Top             =   1665
      Width           =   2340
   End
   Begin VB.TextBox Text2 
      BackColor       =   &H00FFC0C0&
      Height          =   300
      IMEMode         =   3  'DISABLE
      Left            =   2040
      PasswordChar    =   "*"
      TabIndex        =   2
      Top             =   1260
      Width           =   2340
   End
   Begin VB.TextBox Text1 
      BackColor       =   &H00FFC0C0&
      Height          =   300
      IMEMode         =   3  'DISABLE
      Left            =   2040
      TabIndex        =   1
      Top             =   840
      Width           =   2340
   End
   Begin VB.CommandButton Command1 
      BackColor       =   &H00FF8080&
      Caption         =   "确定"
      Height          =   405
      Left            =   1560
      TabIndex        =   0
      Top             =   2160
      Width           =   1095
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   -360
      Top             =   1800
      Visible         =   0   'False
      Width           =   1200
      _ExtentX        =   2117
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   8
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=khgl.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=khgl.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "select * from ma"
      Caption         =   "Adodc1"
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      _Version        =   393216
   End
   Begin VB.Label Label4 
      BackStyle       =   0  'Transparent
      Caption         =   "新密码"
      Height          =   255
      Left            =   1200
      TabIndex        =   8
      Top             =   1750
      Width           =   735
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "原密码"
      Height          =   255
      Left            =   1200
      TabIndex        =   7
      Top             =   1320
      Width           =   735
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "操作员"
      Height          =   255
      Left            =   1200
      TabIndex        =   6
      Top             =   900
      Width           =   645
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "请输入操作员代号、原密码和新密码"
      Height          =   360
      Left            =   1335
      TabIndex        =   5
      Top             =   330
      Width           =   2985
   End
End
Attribute VB_Name = "main_mmxg"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
  Adodc1.RecordSource = "select * from ma where (ma.操作员='" + Text1.Text + "' and ma.密码='" + Text2.Text + "')"
  Adodc1.Refresh
   If Adodc1.Recordset.RecordCount > 0 Then
   Adodc1.Recordset.Fields("操作员") = Text1.Text
   Adodc1.Recordset.Fields("密码") = Text3.Text
   Adodc1.Recordset.Update
   Adodc1.Refresh
      MsgBox "密码修改成功!", , "信息提示"
   Else
      MsgBox "没有要修改的相关信息!", , "信息提示"
   End If
   Text1.Text = ""
   Text2.Text = ""
    Text3.Text = ""
    Text1.SetFocus
End Sub
Private Sub Command2_Click()
  Frm_main.Enabled = True
  Unload Me
End Sub

⌨️ 快捷键说明

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