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

📄 frmdazhcx.frm

📁 毕业设计的学生成绩管理
💻 FRM
📖 第 1 页 / 共 2 页
字号:
VERSION 5.00
Object = "{DD44C0E7-B2CF-11D1-8DD3-444553540000}#1.0#0"; "CELL32.OCX"
Begin VB.Form frmDazhcx 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "档案组合查询"
   ClientHeight    =   6765
   ClientLeft      =   120
   ClientTop       =   1530
   ClientWidth     =   11700
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   6765
   ScaleWidth      =   11700
   Begin VB.Frame Frame1 
      Caption         =   "查询表达式生成"
      Height          =   2655
      Left            =   120
      TabIndex        =   9
      Top             =   120
      Width           =   11415
      Begin VB.CommandButton Command5 
         Caption         =   "清除查询表达式"
         Height          =   375
         Left            =   7920
         TabIndex        =   5
         Top             =   320
         Width           =   1455
      End
      Begin VB.ComboBox Combo4 
         Height          =   300
         ItemData        =   "frmDazhcx.frx":0000
         Left            =   240
         List            =   "frmDazhcx.frx":000A
         Style           =   2  'Dropdown List
         TabIndex        =   10
         Top             =   360
         Width           =   855
      End
      Begin VB.ComboBox Combo3 
         Height          =   300
         Left            =   3960
         Style           =   2  'Dropdown List
         TabIndex        =   3
         Top             =   360
         Visible         =   0   'False
         Width           =   2175
      End
      Begin VB.CommandButton Command4 
         Caption         =   "更新查询表达式"
         Height          =   375
         Left            =   6360
         TabIndex        =   4
         Top             =   320
         Width           =   1455
      End
      Begin VB.TextBox Text3 
         Height          =   735
         Left            =   1440
         Locked          =   -1  'True
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   15
         TabStop         =   0   'False
         Top             =   1800
         Width           =   9855
      End
      Begin VB.TextBox Text2 
         Height          =   735
         Left            =   1440
         Locked          =   -1  'True
         MultiLine       =   -1  'True
         ScrollBars      =   2  'Vertical
         TabIndex        =   14
         TabStop         =   0   'False
         Top             =   960
         Width           =   9855
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   1200
         Style           =   2  'Dropdown List
         TabIndex        =   1
         Top             =   360
         Width           =   1815
      End
      Begin VB.ComboBox Combo2 
         Height          =   300
         ItemData        =   "frmDazhcx.frx":0016
         Left            =   3120
         List            =   "frmDazhcx.frx":002C
         Style           =   2  'Dropdown List
         TabIndex        =   2
         Top             =   360
         Width           =   735
      End
      Begin VB.TextBox Text1 
         Height          =   300
         Left            =   3960
         TabIndex        =   11
         Top             =   360
         Width           =   2175
      End
      Begin VB.Label Label2 
         Caption         =   "查询  语句:"
         Height          =   255
         Left            =   240
         TabIndex        =   13
         Top             =   1845
         Width           =   1095
      End
      Begin VB.Label Label1 
         Caption         =   "查询表达式:"
         Height          =   255
         Left            =   240
         TabIndex        =   12
         Top             =   1000
         Width           =   1095
      End
      Begin VB.Line Line2 
         BorderColor     =   &H80000005&
         X1              =   20
         X2              =   11520
         Y1              =   855
         Y2              =   855
      End
      Begin VB.Line Line1 
         BorderColor     =   &H80000001&
         X1              =   20
         X2              =   11520
         Y1              =   840
         Y2              =   840
      End
   End
   Begin VB.CommandButton Command1 
      Caption         =   "查询(&Q)"
      Height          =   375
      Left            =   3960
      TabIndex        =   6
      Top             =   6240
      Width           =   1215
   End
   Begin VB.CommandButton Command2 
      Caption         =   "打印(&P)"
      Enabled         =   0   'False
      Height          =   375
      Left            =   5280
      TabIndex        =   7
      Top             =   6240
      Width           =   1215
   End
   Begin VB.CommandButton Command3 
      Caption         =   "返回(X)"
      Height          =   375
      Left            =   6600
      TabIndex        =   8
      Top             =   6240
      Width           =   1215
   End
   Begin CELLLib.Cell Cell1 
      Height          =   3255
      Left            =   120
      TabIndex        =   0
      TabStop         =   0   'False
      Top             =   2880
      Width           =   11415
      _Version        =   65536
      _ExtentX        =   20135
      _ExtentY        =   5741
      _StockProps     =   0
      PageLabelVisible=   0   'False
      EnablePopMenu   =   0   'False
   End
End
Attribute VB_Name = "frmDazhcx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public bRe_enter As Boolean                 '查询条件为第一个(false)还是其它(true)

Private Sub Combo1_Click()
    If Combo1.Text = "学号" Or Combo1.Text = "姓名" Or Combo1.Text = "出生年月" Or Combo1.Text = "年级" Or Combo1.Text = "班级" Then
        Text1.Visible = True
        Combo3.Visible = False
    Else
        Combo3.Visible = True
        Text1.Visible = False
        Text1.Text = ""
        Combo3.Clear
        Select Case Combo1.Text
            Case "性别"
                Combo3.AddItem ("男")
                Combo3.AddItem ("女")
            Case "民族"
                Set objRs = objCon.Execute("Select Distinct mz As tmp From XSDAB")
                Do While Not objRs.EOF
                    Combo3.AddItem (objRs("tmp"))
                    objRs.MoveNext
                Loop
                objRs.Close
            Case "政治面貌"
                Set objRs = objCon.Execute("Select Distinct zzmm As tmp From XSDAB")
                Do While Not objRs.EOF
                    Combo3.AddItem (objRs("tmp"))
                    objRs.MoveNext
                Loop
                objRs.Close
            Case "系别"
                Set objRs = objCon.Execute("Select Distinct xbmc As tmp From XBMCB")
                Do While Not objRs.EOF
                    Combo3.AddItem (objRs("tmp"))
                    objRs.MoveNext
                Loop
                objRs.Close
            Case "专业"
                Set objRs = objCon.Execute("Select Distinct zymc As tmp From ZYMCB")
                Do While Not objRs.EOF
                    Combo3.AddItem (objRs("tmp"))
                    objRs.MoveNext
                Loop
                objRs.Close
        End Select

⌨️ 快捷键说明

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