📄 getdept.frm
字号:
VERSION 5.00
Begin VB.Form getDept
BorderStyle = 1 'Fixed Single
Caption = "选择系别名称"
ClientHeight = 1845
ClientLeft = 45
ClientTop = 330
ClientWidth = 4050
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 1845
ScaleWidth = 4050
Begin VB.CommandButton Command4
Caption = "确定(&O)"
Height = 495
Left = 480
TabIndex = 5
Top = 1200
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "确定(&O)"
Height = 495
Left = 480
TabIndex = 4
Top = 1200
Width = 1215
End
Begin VB.ComboBox Combo1
Height = 300
Left = 720
Style = 2 'Dropdown List
TabIndex = 3
Top = 480
Width = 2655
End
Begin VB.CommandButton Command2
Caption = "返回(&B)"
Height = 495
Left = 2280
TabIndex = 2
Top = 1200
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确定(&O)"
Height = 375
Left = 480
TabIndex = 1
Top = 1320
Width = 1215
End
Begin VB.Frame Frame1
Height = 975
Left = 240
TabIndex = 0
Top = 120
Width = 3615
End
End
Attribute VB_Name = "getDept"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Not Testtxt(Combo1) Then
MsgBox "请选择所在系名称!", vbOKOnly + vbExclamation, "成绩管理系统"
Exit Sub
Else
addTeacher.Show
Me.Hide
End If
End Sub
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub Command3_Click()
If Not Testtxt(Combo1) Then
MsgBox "请选择所在系名称!", vbOKOnly + vbExclamation, "成绩管理系统"
Exit Sub
Else
modMajor.Show
Me.Hide
End If
End Sub
Private Sub Command4_Click()
If Not Testtxt(Combo1) Then
MsgBox "请选择所在系名称!", vbOKOnly + vbExclamation, "成绩管理系统"
Exit Sub
Else
modTeacher.Show
Me.Hide
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, Combo1)
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -