VBA rs.filter Mysql 之间的日期

VBA rs.filter Mysql date between

目前,我正在访问一个记录集

tmpQuery = SELECT * FROM someImportantTable 
WHERE(name like '% {Some Value}  %') 
AND date_field BETWEEN '{Some Value}' AND '{Some Value}';

然后做

set tmpRS = someDatabase.execute(tmpQuery)

我正在尝试减少打开此 table 的重复连接的数量,所以我想改为 rs.filter

然而,我似乎无法掌握语法

我假设它是这样的:

rs.filter = [name] LIKE '%%' AND [date_field] >= #01/04/2016# AND [date_field] <= #30/04/2016#

rs.filter = [name] LIKE '%%' AND [date_field] >= #2016-04-01# AND [date_field] <= #2016-04-30#

但是它在执行时一直给我一个错误我得到一个错误

尝试

rs.filter = "[date_field] >= #04/01/2016# AND [date_field] <= #04/30/2016#"