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

📄 sqlform.frm

📁 成绩管理
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form Form6 
   BackColor       =   &H00C0C0FF&
   BorderStyle     =   1  'Fixed Single
   Caption         =   "查询.打印窗口"
   ClientHeight    =   5220
   ClientLeft      =   45
   ClientTop       =   615
   ClientWidth     =   8835
   LinkTopic       =   "Form6"
   MaxButton       =   0   'False
   MDIChild        =   -1  'True
   NegotiateMenus  =   0   'False
   ScaleHeight     =   5220
   ScaleWidth      =   8835
   ShowInTaskbar   =   0   'False
   Begin VB.CommandButton Command2 
      Caption         =   "关闭"
      Height          =   375
      Left            =   7560
      TabIndex        =   16
      Top             =   4680
      Width           =   975
   End
   Begin VB.Frame Frame2 
      Appearance      =   0  'Flat
      BackColor       =   &H00C0C0FF&
      Caption         =   "成绩查询(单学期或总分表)"
      ForeColor       =   &H80000008&
      Height          =   4815
      Left            =   120
      TabIndex        =   3
      Top             =   120
      Width           =   2535
      Begin VB.ComboBox Combo4 
         BackColor       =   &H00FF80FF&
         BeginProperty Font 
            Name            =   "System"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   360
         Left            =   960
         TabIndex        =   18
         Text            =   "Combo4"
         ToolTipText     =   "只有对科目,总分,名次查询时,符号选择才起作用。"
         Top             =   720
         Width           =   1455
      End
      Begin VB.ListBox List1 
         BackColor       =   &H00C0FFC0&
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   2370
         Left            =   960
         MultiSelect     =   1  'Simple
         TabIndex        =   14
         Top             =   2280
         Width           =   1455
      End
      Begin VB.ComboBox Combo3 
         BackColor       =   &H00FF80FF&
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   960
         TabIndex        =   8
         Text            =   "Combo3"
         Top             =   1800
         Width           =   1455
      End
      Begin VB.ComboBox Combo2 
         BackColor       =   &H00FF80FF&
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   960
         TabIndex        =   7
         Text            =   "Combo2"
         Top             =   1440
         Width           =   1455
      End
      Begin VB.TextBox Text1 
         BeginProperty Font 
            Name            =   "System"
            Size            =   12
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   315
         Left            =   960
         TabIndex        =   6
         Text            =   "60"
         ToolTipText     =   "按姓名,学号查询时,可输入通配符“?”,“*”。"
         Top             =   1080
         Width           =   1455
      End
      Begin VB.ComboBox Combo1 
         BackColor       =   &H00FF80FF&
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   10.5
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   330
         Left            =   960
         TabIndex        =   5
         Text            =   "Combo1"
         Top             =   360
         Width           =   1455
      End
      Begin VB.CommandButton Command1 
         Caption         =   "执行查询"
         Height          =   615
         Left            =   120
         TabIndex        =   4
         Top             =   3960
         Width           =   615
      End
      Begin VB.Label Label5 
         BackColor       =   &H00C0C0FF&
         Caption         =   "符号选择"
         Height          =   255
         Left            =   120
         TabIndex        =   17
         Top             =   720
         Width           =   735
      End
      Begin VB.Label Label14 
         BackColor       =   &H00C0C0FF&
         Caption         =   "选择要显示和打印的内容(姓名自动选取)"
         Height          =   1095
         Left            =   120
         TabIndex        =   15
         Top             =   2520
         Width           =   735
      End
      Begin VB.Label Label4 
         BackColor       =   &H00C0C0FF&
         Caption         =   "排序方式"
         Height          =   255
         Left            =   120
         TabIndex        =   12
         Top             =   1800
         Width           =   855
      End
      Begin VB.Label Label3 
         BackColor       =   &H00C0C0FF&
         Caption         =   "排序项目"
         Height          =   255
         Left            =   120
         TabIndex        =   11
         Top             =   1440
         Width           =   735
      End
      Begin VB.Label Label6 
         BackColor       =   &H00C0C0FF&
         Caption         =   "查询的值"
         Height          =   255
         Left            =   120
         TabIndex        =   10
         Top             =   1080
         Width           =   735
      End
      Begin VB.Label Label1 
         BackColor       =   &H00C0C0FF&
         Caption         =   "查询方式"
         Height          =   255
         Left            =   120
         TabIndex        =   9
         Top             =   360
         Width           =   735
      End
   End
   Begin MSFlexGridLib.MSFlexGrid dbGrid1 
      Bindings        =   "sqlform.frx":0000
      Height          =   4335
      Left            =   2880
      TabIndex        =   2
      Top             =   240
      Width           =   5775
      _ExtentX        =   10186
      _ExtentY        =   7646
      _Version        =   327680
      Rows            =   200
      Cols            =   1
      ForeColor       =   16711680
      BackColorFixed  =   255
      ForeColorFixed  =   16777215
      BackColorSel    =   16711935
      ForeColorSel    =   16777215
      WordWrap        =   -1  'True
      FillStyle       =   1
      GridLines       =   2
      AllowUserResizing=   3
      Appearance      =   0
   End
   Begin VB.Data Data1 
      Caption         =   "Data1"
      Connect         =   "Access"
      DatabaseName    =   ""
      DefaultCursorType=   0  'DefaultCursor
      DefaultType     =   2  'UseODBC
      Exclusive       =   0   'False
      Height          =   345
      Left            =   2160
      Options         =   0
      ReadOnly        =   0   'False
      RecordsetType   =   1  'Dynaset
      RecordSource    =   ""
      Top             =   120
      Visible         =   0   'False
      Width           =   1140
   End
   Begin VB.Label Label13 
      BackColor       =   &H00C0C0FF&
      Caption         =   "Label13"
      Height          =   255
      Left            =   5040
      TabIndex        =   13
      Top             =   4800
      Width           =   1815
   End
   Begin VB.Label Label7 
      BackColor       =   &H00C0C0FF&
      Caption         =   "0"
      Height          =   255
      Left            =   3960
      TabIndex        =   1
      Top             =   4800
      Width           =   615
   End
   Begin VB.Label Label2 
      BackColor       =   &H00C0C0FF&
      Caption         =   "记录总数:"
      Height          =   255
      Left            =   3000
      TabIndex        =   0
      Top             =   4800
      Width           =   855
   End
   Begin VB.Menu qq 
      Caption         =   "查询[&Q]"
      Begin VB.Menu qqoper 
         Caption         =   "执行查询[&O]"
         Shortcut        =   {F2}
      End
      Begin VB.Menu qsp0 
         Caption         =   "-"
      End
      Begin VB.Menu qexit 
         Caption         =   "关闭[&E]"
         Shortcut        =   {F4}
      End
   End
   Begin VB.Menu qprint 
      Caption         =   "打印[&P]"
      Begin VB.Menu qptr 
         Caption         =   "打印机[&P]"
         Index           =   0
         Shortcut        =   ^P
      End
      Begin VB.Menu qptr 
         Caption         =   "Excel8.0[&E]"
         Index           =   1
         Shortcut        =   ^E
      End
   End
   Begin VB.Menu qhelp 
      Caption         =   "帮助[&H]"
      Begin VB.Menu qusage 
         Caption         =   "使用说明[&U]"
         Shortcut        =   ^U
      End
      Begin VB.Menu calc 
         Caption         =   "计算器[&C]"
      End
      Begin VB.Menu qsp1 
         Caption         =   "-"
      End
      Begin VB.Menu qabout 
         Caption         =   "关于版本[&A]"
         Shortcut        =   ^A
      End
   End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False

Dim wsql As String
Dim wpc As Integer
Dim fldd(18) As String
Dim ddd As Integer '''''''''''

Private Sub calc_Click()
Dim i As Double
   i = Shell("c:\windows\calc.exe", 1)
End Sub
Private Sub Combo1_Click()
Select Case Combo1.ListIndex
       Case 0
            Combo4.Enabled = False
            Text1.Enabled = False
       Case 1, 2
            Combo4.Enabled = False
            Text1.Enabled = True
       Case Else
            Combo4.Enabled = True
            Text1.Enabled = True
End Select
End Sub

Private Sub Command1_Click()
qqoper_Click
End Sub

⌨️ 快捷键说明

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