📄 frm_tjxu.frm
字号:
VERSION 5.00
Begin VB.Form Frm_tjxu
Caption = "按姓名查询"
ClientHeight = 1560
ClientLeft = 60
ClientTop = 450
ClientWidth = 6135
LinkTopic = "Form1"
ScaleHeight = 1560
ScaleWidth = 6135
StartUpPosition = 1 '所有者中心
Begin VB.TextBox Text1
Height = 435
Left = 1050
TabIndex = 2
Top = 735
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "查 找"
Height = 330
Left = 3255
TabIndex = 1
Top = 765
Width = 1065
End
Begin VB.Label Label1
Caption = "请输入您要查询的员工的姓名,单击确定按钮开始查找!"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 315
TabIndex = 0
Top = 210
Width = 5895
End
End
Attribute VB_Name = "Frm_tjxu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1.Text = "" Then
MsgBox "您没有输入任何信息!"
Text1.SetFocus
Else
Frm_zyinfocu.Adodc1.RecordSource = "select * from tab_职工 where 姓名 like '" & Frm_tjxu.Text1.Text & "' "
' If Frm_zyinfocu.Adodc1.Recordset.EOF = True Then
' MsgBox "没有找到你需要的员工信息"
'Frm_zyinfocu.Adodc1.RecordSource = "select * from tab_职工"
' Frm_tjxu.Hide
'End If
Frm_zyinfocu.Adodc1.Refresh
Unload Me
End If
End Sub
Private Sub Form_Load()
Frm_tjxu.Top = 550
Frm_tjxu.Left = 6755
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -