Private Sub Text1_Change()
Dim strWhere As String
strWhere = Trim$(Me.Text1.Text)
If Len(strWhere) > 0 Then
strWhere = " [序号] & [产品名称] & [采购处理结果] Like '*" & strWhere & "*'"
End If
'设置子窗体的筛选器条件
Me.物料查询_子窗体.Form.Filter = strWhere
'应用筛选
Me.物料查询_子窗体.Form.FilterOn = True
End Sub