access中日期字段date_col查询格式为:
select * from t where date_col>=#2010-02#
pb中:
DWfilter="date_col>=2010-01#"
dw_1.SetFilter(DWfilter)
dw_1.Filter()
查询报错无效的表达式。
请问有用过access的朋友吗?
------解决方案--------------------
试试这个
DWfilter="date_col>='2010-01-01'"
setfilter语法和数据库的查询语法无关,它在DW中自有一套
------解决方案--------------------
DWfilter="string(date_col,'yyyy-mm-dd')>='2010-01-01'"