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

📄 bjcx.frm

📁 学生管理系统 很不错的一个课程设计 适合大学生毕业设计用
💻 FRM
字号:
VERSION 5.00
Begin VB.Form 班级查询 
   Caption         =   "班级管理-班级查询"
   ClientHeight    =   4095
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4680
   LinkTopic       =   "Form9"
   ScaleHeight     =   4095
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
   Begin VB.Frame Frame1 
      Height          =   3975
      Left            =   60
      TabIndex        =   0
      Top             =   60
      Width           =   4575
      Begin VB.Frame Frame2 
         Caption         =   "查找信息"
         Height          =   1605
         Left            =   60
         TabIndex        =   8
         Top             =   2340
         Width           =   4485
         Begin VB.Label Label4 
            Caption         =   "Label4"
            Height          =   1365
            Left            =   60
            TabIndex        =   9
            Top             =   210
            Width           =   4365
         End
      End
      Begin VB.CommandButton Command2 
         Caption         =   "返回"
         Height          =   315
         Left            =   2580
         TabIndex        =   7
         Top             =   1980
         Width           =   795
      End
      Begin VB.CommandButton Command1 
         Caption         =   "查找"
         Height          =   315
         Left            =   900
         TabIndex        =   6
         Top             =   1980
         Width           =   795
      End
      Begin VB.TextBox Text1 
         Height          =   315
         Left            =   1620
         TabIndex        =   5
         Text            =   "Text1"
         Top             =   1410
         Width           =   2295
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   1620
         Style           =   2  'Dropdown List
         TabIndex        =   3
         Top             =   840
         Width           =   2295
      End
      Begin VB.Label Label3 
         Caption         =   "班级"
         Height          =   315
         Left            =   480
         TabIndex        =   4
         Top             =   1470
         Width           =   675
      End
      Begin VB.Label Label2 
         Caption         =   "院系"
         Height          =   255
         Left            =   480
         TabIndex        =   2
         Top             =   900
         Width           =   735
      End
      Begin VB.Label Label1 
         Alignment       =   2  'Center
         Caption         =   "班 级 查 询"
         BeginProperty Font 
            Name            =   "黑体"
            Size            =   15.75
            Charset         =   134
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Left            =   60
         TabIndex        =   1
         Top             =   180
         Width           =   4455
         WordWrap        =   -1  'True
      End
   End
End
Attribute VB_Name = "班级查询"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim yxdm As String
Dim mrc As ADODB.Recordset
txtsql = "select * from 院系 where 院系名称='" & Trim(Combo1.Text) & "'"
Set mrc = ExecuteSQL(txtsql)
yxdm = mrc.Fields(0)
mrc.Close
txtsql = "select * from 班级 where 班级名称='" & Trim(Text1.Text) & "' and 院系代码='" & Trim(yxdm) & "'"
Set mrc = ExecuteSQL(txtsql)
If mrc.EOF = False Then
Label4.Caption = "班级名称:" + Trim(Text1.Text) + Chr(13) + Chr(10) + "班级代码:" + Trim(mrc.Fields(0)) + Chr(13) + Chr(10) + "所属院系:" + Trim(Combo1.Text) + Chr(13) + Chr(10) + "院系代码:" + Trim(yxdm)
Else
Label4.Caption = "不存在该班级!"
End If
mrc.Close
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Form_Load()
Text1.Text = ""
Label4.Caption = ""
Dim mrc As ADODB.Recordset
txtsql = "select * from 院系"
Set mrc = ExecuteSQL(txtsql)
Do While Not mrc.EOF
Combo1.AddItem mrc.Fields(1)
mrc.MoveNext
Loop
mrc.Close
End Sub

⌨️ 快捷键说明

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