Dim txt As String = Forms("到货物检").Controls("TextBox1").Text
Dim tbl As Table = Tables("到货物检_Table2")
Dim tbl1 As Table = Tables("到货物检_Table1")
If txt = "" Then
tbl.Filter = ""
Else
txt = "\'%" & txt & "%\'"
Dim str = tbl.DataTable.GetComboListString("到货物检单号", "适用款号 Like " & txt & " or convert(物供号, \'System.String\') Like " & txt & " or 采购单号 Like " & txt)
str = str.replace("|", "\',\'")
tbl.Filter = "到货物检单号 in (\'" & str & "\')"
End If
但在输入框输入任何内容都没反应