以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]动态表达式合成  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=38993)

--  作者:loongtai
--  发布时间:2013/8/13 10:05:00
--  [求助]动态表达式合成
想针对表1按两个条件筛选条件
dim f1 as string="[参数1] is not null"
dim f2 as string="[参数2] >=100"
如果直接写成tables("表1").Filter="[参数1] is not null and [参数2] >=100" 就没问题
可是写成这样的动态表达式就报错:
tables("表1").Filter=f1 and f2
请问正确的合成表达式该如何书写

--  作者:Bin
--  发布时间:2013/8/13 10:08:00
--  
tables("表1").Filter=f1 & " and " & f2


--  作者:loongtai
--  发布时间:2013/8/13 11:26:00
--  
真有速度,谢谢版主!