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

📄 getmajor.frm

📁 学籍管理系统 建立学生学籍管理系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form getMajor 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "选择班级"
   ClientHeight    =   3105
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   4680
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   MinButton       =   0   'False
   ScaleHeight     =   3105
   ScaleWidth      =   4680
   Begin VB.CommandButton Command3 
      Caption         =   "确定(&O)"
      Height          =   495
      Left            =   360
      TabIndex        =   6
      Top             =   2400
      Width           =   1335
   End
   Begin VB.CommandButton Command2 
      Caption         =   "返回(&B)"
      Height          =   495
      Left            =   2640
      TabIndex        =   5
      Top             =   2400
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Caption         =   "确定(&O)"
      Height          =   495
      Left            =   360
      TabIndex        =   4
      Top             =   2400
      Width           =   1335
   End
   Begin VB.Frame Frame2 
      Caption         =   "选择所在系"
      Height          =   975
      Left            =   240
      TabIndex        =   2
      Top             =   1200
      Width           =   4095
      Begin VB.ComboBox Combo2 
         Height          =   300
         Left            =   480
         Style           =   2  'Dropdown List
         TabIndex        =   3
         Top             =   360
         Width           =   3015
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "选择专业名称"
      Height          =   975
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   4095
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   480
         Style           =   2  'Dropdown List
         TabIndex        =   1
         Top             =   360
         Width           =   3015
      End
   End
End
Attribute VB_Name = "getMajor"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo2_Click()
Dim txtSQL As String
txtSQL = "SELECT MAJOR.Majorname FROM DEPARTMENT,MAJOR WHERE DEPARTMENT.DeptID=MAJOR.DeptID AND DEPARTMENT.DeptName='" & Combo2.Text & "'"
Call Module1.DataList(txtSQL, Combo1)
End Sub

Private Sub Command1_Click()
If Not (Testtxt(Combo1) And Testtxt(Combo2)) Then
MsgBox "请选择系别和班级!", vbOKOnly + vbExclamation, "学籍管理系统"
Exit Sub
Else
Me.Hide
addStuinfo.Show
End If
End Sub

Private Sub Command2_Click()
Unload Me
End Sub

Private Sub Command3_Click()
If Not (Testtxt(Combo1) And Testtxt(Combo2)) Then
MsgBox "请选择系别和班级!", vbOKOnly + vbExclamation, "学籍管理系统"
Exit Sub
Else
Me.Hide
modStudent.Show
End If
End Sub

Private Sub Form_Load()
Dim txtSQL As String
Me.Move (frmMain.ScaleWidth - Me.Width) / 2, (frmMain.ScaleHeight - Me.Height) / 2
txtSQL = "SELECT DeptName FROM Department WHERE DeptID>0"
Call Module1.DataList(txtSQL, Combo2)
End Sub

⌨️ 快捷键说明

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