dialog.frm
来自「学生管理系统虽然不是很完善」· FRM 代码 · 共 62 行
FRM
62 行
VERSION 5.00
Begin VB.Form Dialog
BorderStyle = 3 'Fixed Dialog
Caption = "查询"
ClientHeight = 3345
ClientLeft = 2760
ClientTop = 3750
ClientWidth = 6030
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 3345
ScaleWidth = 6030
ShowInTaskbar = 0 'False
Begin VB.TextBox Text1
Height = 375
Left = 120
TabIndex = 3
Top = 2640
Width = 5655
End
Begin VB.CommandButton CancelButton
Caption = "取消"
Height = 375
Left = 4680
TabIndex = 1
Top = 600
Width = 1215
End
Begin VB.CommandButton OKButton
Caption = "确定"
Height = 375
Left = 4680
TabIndex = 0
Top = 120
Width = 1215
End
Begin VB.Label Label1
Caption = "请输入学生编号"
Height = 255
Left = 240
TabIndex = 2
Top = 240
Width = 1335
End
End
Attribute VB_Name = "Dialog"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub OKButton_Click()
Dim msg
msg = "学生编号 like '" & msg & "'"
data1.Recordset.FindFirst msg
If data1.Recordset.NoMatch Then
MsgBox ("没有符合条件的记录")
End If
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?