请教excel VBA 嵌入的SQL 中如何写日期大于今天的条件
我的sql这么写的,但是在红色字体区域总报错。
Sql = "select distinct f6 , F7&F8&f9 from [tmp$] where F10 like '%D%' and F11 like '%Y%' and (f17 is null or to_date(trim(f17),'yyyy-mm-dd'>now()) and F12 like '%网点%' order by f6"
其中f17为固定文本格式,选取的值为' 2008-12-31'、' 2499-12-31',带有空格。
请教正确的选取f17文本的日期大于今天的条件如何写?