--
Dim s, s1, Filter As String
s = Forms("窗口1").Controls("textbox1").Value
For Each dr As DataRow In DataTables("表A").DataRows
s1 = dr("第一列")
If s1.Length - s1.Replace(s, "").Length > s.Length * 2 - 1 Then
If Filter.Contains(s1) = False Then
Filter = Filter & "|" & s1
End If
End If
Next
Filter = Filter.Trim("|")
Filter = "第一列 = \'" & Filter.Replace("|", "\' and 第一列 = \'") & "\'"
Tables("表A").Filter = Filter