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

📄 form1.frm

📁 上海股市若干问题分析.doc上海股市若干问题分析.doc上海股市若干问题分析.doc上海股市若干问题分析.doc
💻 FRM
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   6675
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   11070
   LinkTopic       =   "Form1"
   Picture         =   "Form1.frx":0000
   ScaleHeight     =   6675
   ScaleWidth      =   11070
   StartUpPosition =   3  '窗口缺省
   Begin VB.CommandButton Command8 
      Caption         =   "按专业排列高数平均成绩"
      Height          =   615
      Left            =   7920
      TabIndex        =   18
      Top             =   4560
      Width           =   2055
   End
   Begin VB.CommandButton Command7 
      Caption         =   "恢复原表内容"
      Height          =   615
      Left            =   5520
      TabIndex        =   17
      Top             =   4560
      Width           =   2055
   End
   Begin VB.CommandButton Command6 
      Caption         =   "按平均成绩统计前8名"
      Height          =   615
      Left            =   3240
      TabIndex        =   16
      Top             =   4560
      Width           =   2055
   End
   Begin VB.CommandButton Command5 
      Caption         =   "按专业统计人数"
      Height          =   615
      Left            =   960
      TabIndex        =   15
      Top             =   4560
      Width           =   2055
   End
   Begin MSDataGridLib.DataGrid DataGrid1 
      Bindings        =   "Form1.frx":18E13
      Height          =   2175
      Left            =   720
      TabIndex        =   14
      Top             =   2160
      Width           =   9255
      _ExtentX        =   16325
      _ExtentY        =   3836
      _Version        =   393216
      HeadLines       =   1
      RowHeight       =   15
      BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   9
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ColumnCount     =   2
      BeginProperty Column00 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      BeginProperty Column01 
         DataField       =   ""
         Caption         =   ""
         BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED} 
            Type            =   0
            Format          =   ""
            HaveTrueFalseNull=   0
            FirstDayOfWeek  =   0
            FirstWeekOfYear =   0
            LCID            =   2052
            SubFormatType   =   0
         EndProperty
      EndProperty
      SplitCount      =   1
      BeginProperty Split0 
         BeginProperty Column00 
         EndProperty
         BeginProperty Column01 
         EndProperty
      EndProperty
   End
   Begin VB.CommandButton Command4 
      Caption         =   "末记录"
      Height          =   375
      Left            =   7200
      TabIndex        =   13
      Top             =   1680
      Width           =   1215
   End
   Begin VB.CommandButton Command3 
      Caption         =   "下一条"
      Height          =   375
      Left            =   8760
      TabIndex        =   12
      Top             =   1680
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "上一条"
      Height          =   375
      Left            =   8760
      TabIndex        =   11
      Top             =   960
      Width           =   1215
   End
   Begin VB.CommandButton Command1 
      Caption         =   "首记录"
      Height          =   375
      Left            =   7200
      TabIndex        =   10
      Top             =   960
      Width           =   1215
   End
   Begin VB.TextBox Text5 
      DataField       =   "成绩"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   5520
      TabIndex        =   9
      Text            =   "Text5"
      Top             =   1200
      Width           =   1095
   End
   Begin VB.TextBox Text4 
      DataField       =   "课程"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   2880
      TabIndex        =   8
      Text            =   "Text4"
      Top             =   1200
      Width           =   1095
   End
   Begin VB.TextBox Text3 
      DataField       =   "专业"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   4320
      TabIndex        =   5
      Text            =   "Text3"
      Top             =   600
      Width           =   1095
   End
   Begin VB.TextBox Text2 
      DataField       =   "姓名"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   2640
      TabIndex        =   4
      Text            =   "Text2"
      Top             =   600
      Width           =   1095
   End
   Begin VB.TextBox Text1 
      DataField       =   "学号"
      DataSource      =   "Adodc1"
      Height          =   375
      Left            =   960
      TabIndex        =   3
      Text            =   "Text1"
      Top             =   600
      Width           =   1095
   End
   Begin MSAdodcLib.Adodc Adodc1 
      Height          =   375
      Left            =   2880
      Top             =   6480
      Visible         =   0   'False
      Width           =   6015
      _ExtentX        =   10610
      _ExtentY        =   661
      ConnectMode     =   0
      CursorLocation  =   3
      IsolationLevel  =   -1
      ConnectionTimeout=   15
      CommandTimeout  =   30
      CursorType      =   3
      LockType        =   3
      CommandType     =   1
      CursorOptions   =   0
      CacheSize       =   50
      MaxRecords      =   0
      BOFAction       =   0
      EOFAction       =   0
      ConnectStringType=   1
      Appearance      =   1
      BackColor       =   -2147483643
      ForeColor       =   -2147483640
      Orientation     =   0
      Enabled         =   -1
      Connect         =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=G:\计算机实验\作业\IE7\学生数据库1.mdb;Persist Security Info=False"
      OLEDBString     =   "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=G:\计算机实验\作业\IE7\学生数据库1.mdb;Persist Security Info=False"
      OLEDBFile       =   ""
      DataSourceName  =   ""
      OtherAttributes =   ""
      UserName        =   ""
      Password        =   ""
      RecordSource    =   "SELECT 学生成绩表.学号, 姓名, 专业, 课程, 成绩 from 学生基本情况, 学生成绩表 where 学生成绩表.学号 = 学生基本情况.学号 "
      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
   Begin VB.Label Label5 
      Caption         =   "成绩"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   4440
      TabIndex        =   7
      Top             =   1200
      Width           =   735
   End
   Begin VB.Label Label4 
      Caption         =   "课程"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   1680
      TabIndex        =   6
      Top             =   1200
      Width           =   735
   End
   Begin VB.Label Label3 
      Caption         =   "专业"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   3840
      TabIndex        =   2
      Top             =   120
      Width           =   735
   End
   Begin VB.Label Label2 
      Caption         =   "姓名"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   2280
      TabIndex        =   1
      Top             =   120
      Width           =   735
   End
   Begin VB.Label Label1 
      Caption         =   "学号"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15.75
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   375
      Left            =   360
      TabIndex        =   0
      Top             =   120
      Width           =   735
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Adodc1.Recordset.MoveFirst
End Sub

Private Sub Command2_Click()
Adodc1.Recordset.MovePrevious
End Sub

Private Sub Command3_Click()
Adodc1.Recordset.MoveNext
End Sub

Private Sub Command4_Click()
Adodc1.Recordset.MoveLast
End Sub
Private Sub Picture1_DblClick()
Picture1.Picture = Clipboard.GetData
End Sub

Private Sub Command5_Click()
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select 专业, Count(*) As 人数 From 学生基本情况 Group By 专业 "
Adodc1.Refresh
End Sub

Private Sub Command6_Click()
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select Top 8 学号, avg(成绩) as 平均成绩 FROM 学生成绩表 group by 学号 ORDER BY AVG(成绩) DESC "
Adodc1.Refresh
End Sub

Private Sub Command7_Click()
Adodc1.CommandType = adCmdTable
Adodc1.RecordSource = "学生基本情况"
Adodc1.Refresh
End Sub

Private Sub Command8_Click()
Adodc1.CommandType = adCmdText
Adodc1.RecordSource = "select 专业,avg(成绩) as 高数平均成绩  FROM 学生成绩表, 学生基本情况 WHERE  学生成绩表.学号 = 学生基本情况.学号 and 课程='高等数学' GROUP BY 专业 ORDER BY 2 DESC"
Adodc1.Refresh
End Sub

⌨️ 快捷键说明

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