📄 form15.frm
字号:
VERSION 5.00
Begin VB.Form Form15
Caption = "各运动项目所有参赛运动员"
ClientHeight = 4725
ClientLeft = 60
ClientTop = 450
ClientWidth = 5940
LinkTopic = "Form15"
ScaleHeight = 4725
ScaleWidth = 5940
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 = 3615
Left = 120
TabIndex = 0
Top = 120
Width = 4695
Begin VB.ListBox List2
Height = 2400
Left = 1440
TabIndex = 2
Top = 840
Width = 3135
End
Begin VB.ListBox List1
Height = 2400
Left = 240
TabIndex = 1
Top = 840
Width = 975
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 = 375
Left = 1440
TabIndex = 4
Top = 360
Width = 1095
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 = 375
Left = 240
TabIndex = 3
Top = 360
Width = 1095
End
End
End
Attribute VB_Name = "Form15"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
On Error GoTo ErrMsg
Dim sql As String
sql = "select i_name4119 from 运动项目表4119"
Set adors = adocon.Execute(sql)
Do While adors.EOF = False
List1.AddItem adors(0)
adors.MoveNext
Loop
ErrMsg:
If Err.Number <> 0 Then
MsgBox Err.Number & Err.Description, vbOKOnly + vbCritical, "出错提示"
Exit Sub
End If
End Sub
Private Sub List1_Click()
On Error GoTo ErrMsg
List2.Clear
Dim sql1 As String
sql1 = "select 运动员4119.a_no4119,运动员4119.a_name4119,运动员4119.a_noteam4119 from 运动员4119,运动项目及参赛表m4119 where 运动项目及参赛表m4119." & List1.Text & "=1 and 运动员4119.a_no4119=运动项目及参赛表m4119.a_no4119"
Set adors = adocon.Execute(sql1)
Do While adors.EOF = False
List2.AddItem "编号:" & adors(0) & " " & "姓名:" & adors(1) & " " & "队号" & " " & adors(2)
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 + -