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

📄 顾客密码.frm

📁 C/S模块
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form21 
   BackColor       =   &H00FFC0C0&
   Caption         =   "Form21"
   ClientHeight    =   4695
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   7455
   LinkTopic       =   "Form21"
   Picture         =   "顾客密码.frx":0000
   ScaleHeight     =   4695
   ScaleWidth      =   7455
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      BackColor       =   &H00FFC0C0&
      Caption         =   "密码修改界面"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   10.5
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF00FF&
      Height          =   2295
      Left            =   240
      TabIndex        =   0
      Top             =   1680
      Width           =   5175
      Begin VB.CommandButton Command1 
         Caption         =   "确认新密码"
         Height          =   495
         Index           =   4
         Left            =   360
         Picture         =   "顾客密码.frx":10474
         Style           =   1  'Graphical
         TabIndex        =   5
         Top             =   960
         Width           =   1575
      End
      Begin VB.CommandButton Command1 
         Caption         =   "新密码"
         Height          =   495
         Index           =   3
         Left            =   360
         Picture         =   "顾客密码.frx":18D4A
         Style           =   1  'Graphical
         TabIndex        =   4
         Top             =   360
         Width           =   1575
      End
      Begin VB.CommandButton Command3 
         Caption         =   "修改密码"
         Height          =   495
         Left            =   1800
         Picture         =   "顾客密码.frx":21620
         Style           =   1  'Graphical
         TabIndex        =   3
         Top             =   1680
         Width           =   1695
      End
      Begin VB.TextBox Text2 
         Height          =   495
         IMEMode         =   3  'DISABLE
         Left            =   2520
         PasswordChar    =   "*"
         TabIndex        =   2
         Top             =   960
         Width           =   2295
      End
      Begin VB.TextBox Text1 
         Height          =   495
         IMEMode         =   3  'DISABLE
         Left            =   2520
         PasswordChar    =   "*"
         TabIndex        =   1
         Top             =   360
         Width           =   2295
      End
   End
End
Attribute VB_Name = "Form21"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public no21 As String
Public bz21 As Integer
Private Sub Command3_Click()
If Not IsNumeric(Text1.Text) Then
     MsgBox "密码为数字!", vbRetryCancel + vbExclamation, "错误提示"
     Exit Sub
  ElseIf Len(Text1.Text) <> 6 Then
       MsgBox "密码为6位!", vbRetryCancel + vbExclamation, "错误提示"
        Text1.SetFocus
        Exit Sub
  ElseIf Trim(Text1.Text) <> Trim(Text2.Text) Then
    MsgBox "密码输入不一致!", vbRetryCancel + vbExclamation, "错误提示"
    Text1.SetFocus
     Exit Sub
ElseIf bz21 = 1 Then
  Call openconn
       rs.Open "select * from card_xx053_06 where c_No='" & no21 & "'", conn, adOpenDynamic, adLockOptimistic
       If rs.BOF And rs.EOF Then
          MsgBox "密码修改不成功!"
          rs.Close
           Unload Me
           Form19.Show
      Else
            rs.Fields(1) = Trim(Text1.Text)
             rs.Update
             rs.Close
             MsgBox "密码修改成功!"
             Unload Me
             Form3.Show
      End If
Else
Call openconn
       rs.Open "select * from account_xx053_06 where b_No='" & no21 & "'", conn, adOpenDynamic, adLockOptimistic
       If rs.BOF And rs.EOF Then
          MsgBox "密码修改不成功!"
          rs.Close
           Unload Me
           Form19.Show
      Else
            rs.Fields(1) = Trim(Text1.Text)
             rs.Update
             rs.Close
             MsgBox "密码修改成功!"
             Unload Me
             Form3.Show
      End If
End If
End Sub

⌨️ 快捷键说明

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