tbl.Filter = ("编码 Like " & txt & " Or 名称 Like " & txt & " Or 描述 Like " & txt & " Or 规格 Like " & txt) & "and (classID = '001'and len(代码) > 4)"
过滤出来的类别不止001,AND (classID = '001'and len(代码) > 4) 这句不起作用
过滤出来的全部都是符合"编码 Like " & txt & " Or 名称 Like " & txt & " Or 描述 Like " & txt & " Or 规格 Like " & txt)
tbl.Filter = "(编码 Like " & txt & " Or 名称 Like " & txt & " Or 描述 Like " & txt & " Or 规格 Like " & txt & ") and (classID = '001'and len(代码) > 4)"msgbox(tbl.Filter) 自己对比一下和原来的条件有什么区别