📄 teamorder.frm
字号:
VERSION 5.00
Object = "{00028C01-0000-0000-0000-000000000046}#1.0#0"; "DBGRID32.OCX"
Begin VB.Form TeamOrder
BorderStyle = 1 'Fixed Single
Caption = "球队排名"
ClientHeight = 8940
ClientLeft = 45
ClientTop = 435
ClientWidth = 8775
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 8940
ScaleWidth = 8775
StartUpPosition = 3 '窗口缺省
Begin VB.ComboBox Combo1
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 420
ItemData = "TeamOrder.frx":0000
Left = 2040
List = "TeamOrder.frx":0031
Style = 2 'Dropdown List
TabIndex = 1
Top = 240
Width = 1455
End
Begin VB.Data Data2
Caption = "Data2"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 7800
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 5760
Visible = 0 'False
Width = 1215
End
Begin MSDBGrid.DBGrid DBGrid1
Bindings = "TeamOrder.frx":009F
Height = 7935
Left = 120
OleObjectBlob = "TeamOrder.frx":00B3
TabIndex = 0
Top = 840
Width = 8535
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = ""
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 345
Left = 7800
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = ""
Top = 5040
Visible = 0 'False
Width = 1140
End
Begin VB.Label Label1
Caption = "请选择赛季:"
BeginProperty Font
Name = "宋体"
Size = 15
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 120
TabIndex = 2
Top = 240
Width = 1815
End
End
Attribute VB_Name = "TeamOrder"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_Click()
On Error GoTo orderr
Data1.RecordSource = "Select team.Cname,team_Statistic.season,team_Statistic.win,team_Statistic.lose,team_Statistic.rate from team,team_Statistic where season='" + Combo1 + "' and team.id= team_Statistic.id order by rate desc"
Data1.Refresh
Exit Sub
orderr:
Data1.RecordSource = "Select team.Cname,team_Statistic.season,team_Statistic.win,team_Statistic.lose,team_Statistic.rate from team,team_Statistic where season='03-04' and team.id= team_Statistic.id order by rate desc"
MsgBox ("排序属性选择有误!")
Data1.Refresh
End Sub
Private Sub Form_Load()
If dbpath = "" Then Unload Me
ad = False
md = False
Data1.DatabaseName = dbpath
Data2.DatabaseName = dbpath
Data2.RecordSource = team
Data1.RecordSource = "Select team.Cname,team_Statistic.season,team_Statistic.win,team_Statistic.lose,team_Statistic.rate from team,team_Statistic where season='03-04' and team.id= team_Statistic.id order by rate desc"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -