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

📄 editvipt.frm

📁 VB+ACCESS2000编写的VCD出租管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form EditVipt 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "分级修改"
   ClientHeight    =   3285
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   3180
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   3285
   ScaleWidth      =   3180
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command1 
      Caption         =   "修改(&E)"
      Height          =   375
      Left            =   120
      TabIndex        =   3
      Top             =   2760
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "关闭(&C)"
      Height          =   375
      Left            =   1800
      TabIndex        =   2
      Top             =   2760
      Width           =   1215
   End
   Begin VB.TextBox Text1 
      Appearance      =   0  'Flat
      Height          =   375
      Index           =   1
      Left            =   1200
      TabIndex        =   1
      Top             =   1080
      Width           =   1575
   End
   Begin VB.TextBox Text1 
      Appearance      =   0  'Flat
      Height          =   375
      Index           =   2
      Left            =   1200
      TabIndex        =   0
      Top             =   1800
      Width           =   1575
   End
   Begin VB.Frame Frame1 
      Caption         =   "分级信息"
      Height          =   2535
      Left            =   120
      TabIndex        =   4
      Top             =   0
      Width           =   2895
      Begin VB.TextBox Text1 
         Appearance      =   0  'Flat
         Height          =   375
         Index           =   0
         Left            =   1080
         TabIndex        =   5
         Top             =   360
         Width           =   1575
      End
      Begin VB.Label Label1 
         Caption         =   "会员级别:"
         Height          =   255
         Index           =   0
         Left            =   120
         TabIndex        =   8
         Top             =   480
         Width           =   1095
      End
      Begin VB.Label Label1 
         Caption         =   "会员费用:"
         Height          =   375
         Index           =   1
         Left            =   120
         TabIndex        =   7
         Top             =   1200
         Width           =   1095
      End
      Begin VB.Label Label1 
         Caption         =   "可借碟数:"
         Height          =   255
         Index           =   2
         Left            =   120
         TabIndex        =   6
         Top             =   1920
         Width           =   1095
      End
   End
End
Attribute VB_Name = "EditVipt"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim Tmpv As String
Private Sub Command1_Click()
Dim SQL As String
Dim i As Integer
For i = 0 To 2
    If Text1(i).Text = "" Then
         MsgBox "对不起:" & Label1(i).Caption & "不能为空!", vbInformation + vbOKOnly, "警告"
         Text1(i).SetFocus
         Exit Sub
    End If
Next

SQL = "update  viptype set 会员级别=""" & Text1(0).Text & """,会员交费=" & Text1(1).Text & ",可借碟片=" & Text1(2).Text & " where 自动ID= " & Tmpv & ""

OpenDBFile

gCon.Execute SQL

CloseDBFile
VipType.Adodc1.Refresh
MsgBox "信息修改成功,请返回!", vbInformation + vbOKOnly, "提示"
Unload Me
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
Dim i As Integer
For i = 1 To 3
    VipType.DataGrid1.Col = i
    Text1(i - 1).Text = VipType.DataGrid1.Text
Next
VipType.DataGrid1.Col = 0
Tmpv = VipType.DataGrid1.Text
End Sub

⌨️ 快捷键说明

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