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

📄 editvip.frm

📁 VB+ACCESS2000编写的VCD出租管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form EditVip 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "会员信息修改"
   ClientHeight    =   3000
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   6315
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   3000
   ScaleWidth      =   6315
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox TxtInfo 
      Appearance      =   0  'Flat
      Height          =   375
      Index           =   1
      Left            =   4200
      TabIndex        =   4
      Top             =   360
      Width           =   1575
   End
   Begin VB.TextBox TxtInfo 
      Appearance      =   0  'Flat
      Height          =   375
      Index           =   2
      Left            =   1320
      TabIndex        =   3
      Top             =   1080
      Width           =   1575
   End
   Begin VB.TextBox TxtInfo 
      Appearance      =   0  'Flat
      BackColor       =   &H0080FFFF&
      Enabled         =   0   'False
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Index           =   3
      Left            =   1320
      TabIndex        =   2
      Top             =   1680
      Width           =   1575
   End
   Begin VB.CommandButton Command1 
      Caption         =   "修改(&E)"
      Height          =   375
      Left            =   3480
      TabIndex        =   1
      Top             =   2520
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "关闭(&C)"
      Height          =   375
      Left            =   4920
      TabIndex        =   0
      Top             =   2520
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      Caption         =   "会员信息"
      Height          =   2175
      Left            =   120
      TabIndex        =   5
      Top             =   120
      Width           =   6015
      Begin VB.TextBox TxtInfo 
         Appearance      =   0  'Flat
         BackColor       =   &H0080FFFF&
         Enabled         =   0   'False
         Height          =   375
         Index           =   0
         Left            =   1200
         TabIndex        =   7
         Top             =   240
         Width           =   1575
      End
      Begin VB.ComboBox Combo1 
         Appearance      =   0  'Flat
         BackColor       =   &H0080FFFF&
         Enabled         =   0   'False
         Height          =   300
         Left            =   4080
         TabIndex        =   6
         Top             =   960
         Width           =   1575
      End
      Begin VB.Label Label1 
         Caption         =   "会 员 ID:"
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   12
         Top             =   360
         Width           =   1095
      End
      Begin VB.Label Label1 
         Caption         =   "会员姓名:"
         Height          =   375
         Index           =   1
         Left            =   3120
         TabIndex        =   11
         Top             =   360
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "会员电话:"
         Height          =   375
         Index           =   2
         Left            =   240
         TabIndex        =   10
         Top             =   1080
         Width           =   1095
      End
      Begin VB.Label Label1 
         Caption         =   "会员级别:"
         Height          =   375
         Index           =   3
         Left            =   3120
         TabIndex        =   9
         Top             =   1080
         Width           =   975
      End
      Begin VB.Label Label1 
         Caption         =   "办理日期:"
         Height          =   255
         Index           =   4
         Left            =   240
         TabIndex        =   8
         Top             =   1680
         Width           =   975
      End
   End
End
Attribute VB_Name = "EditVip"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit



Private Sub Command1_Click()
Dim SQL As String
Dim i As Integer
For i = 1 To 2
    If TxtInfo(i).Text = "" Then
      MsgBox "对不起:" & Label1(i).Caption & "不能为空", vbInformation + vbOKOnly, "警告"
      TxtInfo(i).SetFocus
    End If
Next
SQL = "update vipinfo set 会员姓名=""" & TxtInfo(1).Text & """,会员电话=""" & TxtInfo(2).Text & """ where 会员ID=""" & TxtInfo(0).Text & """"
OpenDBFile
gCon.Execute SQL
CloseDBFile
FindVip.Adodc1.Refresh
MsgBox "会员编号为“" & TxtInfo(0).Text & "”的信息修改成功!", vbInformation + vbOKOnly, "提示"
Unload Me
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
Dim i As Integer
For i = 0 To 2
FindVip.DataGrid1.Col = i
TxtInfo(i).Text = FindVip.DataGrid1.Text
Next
FindVip.DataGrid1.Col = 3
Combo1.Text = FindVip.DataGrid1.Text
FindVip.DataGrid1.Col = 4
TxtInfo(3).Text = FindVip.DataGrid1.Text
End Sub

⌨️ 快捷键说明

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