📄 v6bj11-12.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{0ECD9B60-23AA-11D0-B351-00A0C9055D8E}#6.0#0"; "MSHFLXGD.OCX"
Object = "{65E121D4-0C60-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCHRT20.OCX"
Begin VB.Form Form1
Caption = "VB6 例11-12 计算与作图"
ClientHeight = 3285
ClientLeft = 60
ClientTop = 345
ClientWidth = 8175
LinkTopic = "Form2"
ScaleHeight = 3285
ScaleWidth = 8175
StartUpPosition = 3 '窗口缺省
Begin MSChart20Lib.MSChart MSChart1
Bindings = "V6bj11-12.frx":0000
Height = 3135
Left = 60
OleObjectBlob = "V6bj11-12.frx":0015
TabIndex = 1
Top = 60
Width = 4635
End
Begin MSHierarchicalFlexGridLib.MSHFlexGrid MSHFlexGrid1
Bindings = "V6bj11-12.frx":2362
Height = 3015
Left = 4680
TabIndex = 0
Top = 120
Width = 3435
_ExtentX = 6059
_ExtentY = 5318
_Version = 393216
FixedCols = 0
_NumberOfBands = 1
_Band(0).Cols = 2
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 240
Top = 2520
Width = 3975
_ExtentX = 7011
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
Dim sql As String, mpath As String
mpath = App.Path
If Right(mpath, 1) <> "\" Then mpath = mpath + "\"
sql = "Select 基本情况.姓名,Avg(成绩) As 平均成绩,min(成绩) As 最低成绩"
sql = sql + " From 基本情况,学生成绩表 Where 基本情况.学号=学生成绩表.学号"
sql = sql + " group by 学生成绩表.学号,基本情况.姓名 order by Avg(成绩) desc;"
mlink = "Provider=Microsoft.Jet.OLEDB.3.51;"
' mlink = mlink + "Persist Security Info=False;"
mlink = mlink + "Data Source=" + mpath + "student.mdb"
Adodc1.ConnectionString = mlink
'命令类型
Adodc1.CommandType = adCmdUnknown
Adodc1.RecordSource = sql
Adodc1.Refresh
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -