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

📄 addviptype.frm

📁 VB+ACCESS2000编写的VCD出租管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form AddViptype 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "添加会员类别"
   ClientHeight    =   3150
   ClientLeft      =   45
   ClientTop       =   435
   ClientWidth     =   3150
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   ScaleHeight     =   3150
   ScaleWidth      =   3150
   StartUpPosition =   2  '屏幕中心
   Begin VB.TextBox Text1 
      Appearance      =   0  'Flat
      Height          =   375
      Index           =   2
      Left            =   1200
      TabIndex        =   6
      Top             =   1920
      Width           =   1575
   End
   Begin VB.TextBox Text1 
      Appearance      =   0  'Flat
      Height          =   375
      Index           =   1
      Left            =   1200
      TabIndex        =   5
      Top             =   1200
      Width           =   1575
   End
   Begin VB.CommandButton Command2 
      Caption         =   "关闭(&C)"
      Height          =   375
      Left            =   1800
      TabIndex        =   2
      Top             =   2640
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "添加(&A)"
      Height          =   375
      Left            =   120
      TabIndex        =   1
      Top             =   2640
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      Caption         =   "分级信息"
      Height          =   2415
      Left            =   120
      TabIndex        =   0
      Top             =   0
      Width           =   2895
      Begin VB.TextBox Text1 
         Appearance      =   0  'Flat
         Height          =   375
         Index           =   0
         Left            =   1080
         TabIndex        =   4
         Top             =   360
         Width           =   1575
      End
      Begin VB.Label Label1 
         Caption         =   "可借碟数:"
         Height          =   255
         Index           =   2
         Left            =   120
         TabIndex        =   8
         Top             =   1920
         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           =   0
         Left            =   120
         TabIndex        =   3
         Top             =   480
         Width           =   1095
      End
   End
End
Attribute VB_Name = "AddViptype"
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 = 0 To 2
    If Text1(i).Text = "" Then
         MsgBox "对不起:" & Label1(i).Caption & "不能为空!", vbInformation + vbOKOnly, "警告"
         Text1(i).SetFocus
         Exit Sub
    End If
Next

SQL = "insert into viptype(会员级别,会员交费,可借碟片) values(""" _
                   & Text1(0).Text & """," _
                   & Text1(1).Text & "," _
                   & Text1(2).Text & ")"
OpenDBFile
gCon.Execute SQL
CloseDBFile

MsgBox "信息已经录入,请返回!", vbInformation + vbOKOnly, "提示"
VipType.Adodc1.Refresh
For i = 0 To 2
Text1(i).Text = ""
Next
End Sub


Private Sub Command2_Click()
Unload Me
End Sub


Private Sub Form_Load()

End Sub

⌨️ 快捷键说明

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