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

📄 form12.frm

📁 运动会成绩统计系统。运动员的添加
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form12 
   Caption         =   "总排名"
   ClientHeight    =   4725
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   5670
   LinkTopic       =   "Form12"
   ScaleHeight     =   4725
   ScaleWidth      =   5670
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Caption         =   "运动队、运动员部分总排名"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   3855
      Left            =   120
      TabIndex        =   0
      Top             =   120
      Width           =   4935
      Begin VB.ListBox List2 
         Height          =   2400
         Left            =   2880
         TabIndex        =   4
         Top             =   840
         Width           =   1695
      End
      Begin VB.ListBox List1 
         Height          =   2400
         Left            =   240
         TabIndex        =   3
         Top             =   840
         Width           =   1695
      End
      Begin VB.Label Label2 
         Caption         =   "运动员总成绩前八"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   3000
         TabIndex        =   2
         Top             =   480
         Width           =   1695
      End
      Begin VB.Label Label1 
         Caption         =   "运动队总成绩前三"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   9
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   255
         Left            =   240
         TabIndex        =   1
         Top             =   480
         Width           =   1575
      End
   End
End
Attribute VB_Name = "Form12"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
On Error GoTo ErrMsg
Set adors = adocon.Execute("select t_results4119 from 运动队成绩表4119")
If adors.EOF Then
   List1.Clear
   'MsgBox "成绩记录为零!", vbOKOnly + vbExclamation, "系统提示"
   'Exit Sub
'End If
Else
    Set adors = adocon.Execute("select top 3 * from 运动队成绩表4119 order by t_results4119 desc")
'Set adors = adocon.Execute("select top 3 * from 运动队成绩表4119 order by t_results4119 desc")
'If adors(1) = 0 Then
   'List1.AddItem ""
   'MsgBox "成绩记录为零!", vbOKOnly + vbExclamation, "系统提示"
   'Exit Sub
'End If
'Dim sql As String
'sql = "select i_name4119 from 运动项目表4119"
'Set adors = adocon.Execute(sql)
'Else
    Do While adors.EOF = False
    List1.AddItem adors(0) & " " & adors(1)
    adors.MoveNext
    Loop
End If
Set adors = adocon.Execute("select top 8 * from 运动员成绩表4119 order by a_results4119 desc")

Do While adors.EOF = False
List2.AddItem adors(0) & " " & adors(1)
adors.MoveNext
Loop
ErrMsg:
  If Err.Number <> 0 Then
      MsgBox Err.Number & Err.Description, vbOKOnly + vbCritical, "出错提示"
     Exit Sub
  End If

End Sub

⌨️ 快捷键说明

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