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

📄 form12.frm

📁 数据库原理及设计 运动会成绩管理系统 大二自己做的课程设计
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 删除运动员 
   Caption         =   "Form12"
   ClientHeight    =   6300
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   7680
   LinkTopic       =   "Form12"
   Picture         =   "Form12.frx":0000
   ScaleHeight     =   6300
   ScaleWidth      =   7680
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command3 
      Caption         =   "返回"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   6360
      TabIndex        =   7
      Top             =   5040
      Width           =   975
   End
   Begin VB.CommandButton Command2 
      Caption         =   "删除"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   5040
      TabIndex        =   6
      Top             =   2400
      Width           =   1095
   End
   Begin VB.CommandButton Command1 
      Caption         =   "删除"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   5040
      TabIndex        =   5
      Top             =   1440
      Width           =   1095
   End
   Begin VB.TextBox Text2 
      Height          =   615
      Left            =   2400
      TabIndex        =   4
      Top             =   2280
      Width           =   2055
   End
   Begin VB.TextBox Text1 
      Height          =   615
      Left            =   2400
      TabIndex        =   3
      Top             =   1320
      Width           =   2055
   End
   Begin VB.Label Label3 
      BackStyle       =   0  'Transparent
      Caption         =   "输入姓名:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   600
      TabIndex        =   2
      Top             =   2400
      Width           =   2055
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      Caption         =   "输入编号:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   600
      TabIndex        =   1
      Top             =   1440
      Width           =   2055
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      Caption         =   "删除运动员"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   26.25
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   735
      Left            =   2400
      TabIndex        =   0
      Top             =   240
      Width           =   2775
   End
End
Attribute VB_Name = "删除运动员"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim str3 As String
Dim str As String
Dim cmdupdate As ADODB.Command
Call OpenDB
 str3 = "delete from 运动员信息表  where 编号 ='" & Text1 & "'"
     Set cmdupdate = New ADODB.Command
     Set cmdupdate.ActiveConnection = Conn
     cmdupdate.CommandText = str3
     cmdupdate.Execute
     Set cmdupdate = Nothing
    Conn.Close
   Set Conn = Nothing
 Call OpenDB
 str = "delete from 成绩表  where 编号 ='" & Text1 & "'"
     Set cmdupdate = New ADODB.Command
     Set cmdupdate.ActiveConnection = Conn
     cmdupdate.CommandText = str
     cmdupdate.Execute
     Set cmdupdate = Nothing
    MsgBox "删除成功!!!"
    Conn.Close
   Set Conn = Nothing
   
End Sub

Private Sub Command2_Click()
Dim str3 As String
Dim str As String
Dim a As String
Dim cmdupdate As ADODB.Command
Call OpenDB
 str3 = "delete from 运动员信息表  where 姓名 ='" & Text2 & "'"
     Set cmdupdate = New ADODB.Command
     Set cmdupdate.ActiveConnection = Conn
     cmdupdate.CommandText = str3
     cmdupdate.Execute
     Set cmdupdate = Nothing
      MsgBox "删除成功!!!"
    Conn.Close
   Set Conn = Nothing
   

End Sub

Private Sub Command3_Click()
登入界面.Show
Unload Me
End Sub

⌨️ 快捷键说明

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