Private Sub Command1_Click()
Dim msg As Integer
msg = Trim(InputBox("请输入职工编号", "查询"))
Data1.Recordset.FindFirst msg
If Data1.Recordset.NoMatch Then
MsgBox ("没有符合条件的记录")
End If
End Sub