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

📄 frmupdateuser.frm

📁 软件工程实验报告 银行储蓄管理系统 1.可行性分析 2.总体设计 3.详细设计 4.实验报告模板
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmUpdateUser 
   BackColor       =   &H00404040&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "Form1"
   ClientHeight    =   4410
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   7785
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   4410
   ScaleWidth      =   7785
   Begin VB.CommandButton cmdUpdate 
      Caption         =   "修 改"
      Default         =   -1  'True
      Height          =   345
      Left            =   4080
      TabIndex        =   6
      Top             =   3720
      Width           =   975
   End
   Begin VB.CommandButton cmdClose 
      Cancel          =   -1  'True
      Caption         =   "关 闭"
      Height          =   345
      Left            =   5280
      TabIndex        =   5
      Top             =   3720
      Width           =   975
   End
   Begin VB.ComboBox cmb 
      Height          =   300
      Left            =   3600
      TabIndex        =   4
      Top             =   2160
      Width           =   3615
   End
   Begin VB.TextBox txt 
      Height          =   270
      Left            =   3600
      Locked          =   -1  'True
      TabIndex        =   3
      Top             =   1560
      Width           =   3615
   End
   Begin VB.ListBox lst 
      Height          =   3840
      Left            =   240
      TabIndex        =   0
      Top             =   240
      Width           =   1935
   End
   Begin VB.Label lbl 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "权限:"
      ForeColor       =   &H00FFFFFF&
      Height          =   180
      Index           =   0
      Left            =   3000
      TabIndex        =   2
      Top             =   2400
      Width           =   540
   End
   Begin VB.Label lbl 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "姓名:"
      ForeColor       =   &H00FFFFFF&
      Height          =   180
      Index           =   1
      Left            =   3000
      TabIndex        =   1
      Top             =   1680
      Width           =   540
   End
End
Attribute VB_Name = "frmUpdateUser"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rst As Recordset
Dim userName As String

'响应 "关闭" 铵钮
Private Sub cmdClose_Click()
    Unload Me
End Sub

'响应 "修改" 按钮
Private Sub cmdUpdate_Click()
    Call LinkDB(landWay, SName, "weboy", SUName, SUPw)
    con.Open
    con.Execute "update users set power='" & cmb.Text & "' where name='" & userName & "'"
    MsgBox "修改成功!"
    Unload Me
End Sub

'响就列表
Private Sub lst_Click()
    Set rst = New Recordset
    userName = lst.Text
    Call LinkDB(landWay, SName, "weboy", SUName, SUPw)
    con.Open
    rst.Open "select * from users where name='" & lst.Text & "'", con, adOpenDynamic, adLockOptimistic
    txt.Text = rst!name
    cmb.Text = rst!power
    rst.Close
    con.Close
End Sub

⌨️ 快捷键说明

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