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

📄 注销会员.frm

📁 这是一个书店售书管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form form11 
   Caption         =   "Form1"
   ClientHeight    =   3150
   ClientLeft      =   5895
   ClientTop       =   3090
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   3150
   ScaleWidth      =   4680
   Begin VB.CommandButton Command2 
      Caption         =   "取消"
      Height          =   495
      Left            =   3360
      TabIndex        =   4
      Top             =   2280
      Width           =   975
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定"
      Height          =   495
      Left            =   1800
      TabIndex        =   3
      Top             =   2280
      Width           =   1095
   End
   Begin VB.Frame Frame1 
      Caption         =   "注销会员"
      Height          =   1815
      Left            =   360
      TabIndex        =   0
      Top             =   240
      Width           =   3855
      Begin VB.TextBox Text1 
         Height          =   495
         Left            =   1200
         TabIndex        =   2
         Top             =   480
         Width           =   2175
      End
      Begin VB.Label Label1 
         Caption         =   "会员号"
         Height          =   495
         Left            =   120
         TabIndex        =   1
         Top             =   600
         Width           =   975
      End
   End
End
Attribute VB_Name = "form11"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim note As New ADODB.Recordset

Private Sub Command1_Click()
Dim sql As String
Dim answer As Integer
sql = "select * from 会员表 where 会员号='" & Trim(Text1.Text) & "'"
note.Open sql, cnn, 3, 2
If note.BOF And note.EOF Then
   MsgBox ("无此记录!")        '查找会员,若无记录则警告返回
   note.Close
   Text1.Text = ""
Else
    answer = MsgBox("你确定要删除这条记录吗?", vbYesNo, "提示")
If answer = vbYes Then
    note.Delete
    note.Close
    MsgBox "删除成功!"
    Text1.Text = ""
Else
    note.Close
    Text1.Text = ""
End If
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

⌨️ 快捷键说明

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