参考
Dim filter As String = "1=2"For Each c As Col In Tables("表A").Cols filter &= " or convert(" & c.name & ",'System.String') like '%" & 123 & "%'"Nextmsgbox(filter)