📄 查询班级或系部信息.frm
字号:
VERSION 5.00
Begin VB.Form 查询班级信息
Caption = "Form1"
ClientHeight = 5160
ClientLeft = 60
ClientTop = 345
ClientWidth = 4080
LinkTopic = "Form1"
ScaleHeight = 5160
ScaleWidth = 4080
StartUpPosition = 3 '窗口缺省
Begin VB.TextBox Text3
Height = 735
Left = 1920
TabIndex = 4
Text = " "
Top = 1800
Width = 1695
End
Begin VB.TextBox Text2
Height = 735
Left = 1920
TabIndex = 3
Text = " "
Top = 960
Width = 1695
End
Begin VB.TextBox Text1
Height = 615
Left = 1920
TabIndex = 2
Text = " "
Top = 240
Width = 1695
End
Begin VB.CommandButton Command2
Caption = " 取消"
Height = 495
Left = 1560
TabIndex = 1
Top = 3360
Width = 1095
End
Begin VB.CommandButton Command1
Caption = "查询"
Height = 495
Left = 120
TabIndex = 0
Top = 3360
Width = 1095
End
Begin VB.Label Label3
Caption = " 班级编号"
Height = 495
Left = 120
TabIndex = 7
Top = 2040
Width = 1575
End
Begin VB.Label Label2
Caption = " 班级名称"
Height = 615
Left = 240
TabIndex = 6
Top = 1080
Width = 1455
End
Begin VB.Label Label1
Caption = " 系部编号"
Height = 615
Left = 240
TabIndex = 5
Top = 240
Width = 1335
End
End
Attribute VB_Name = "查询班级信息"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs8 As New ADODB.Recordset
Private Sub Command2_Click()
Me.Hide
End Sub
Private Sub Command1_Click()
If rs8.State <> 0 Then rs8.Close
rs8.Open "select* from 班级表", cnn, 3, 1
rs8.Find "系部编号 like '" & Text1 & "'"
If rs8.EOF Then
MsgBox "没有此记录!"
Text1 = ""
Exit Sub
Else
Text3 = rs8("班级编号")
Text2 = rs8("班级名称")
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -