以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  我的代码错在哪里?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=61035)

--  作者:affixed
--  发布时间:2014/12/5 17:04:00
--  我的代码错在哪里?
Dim d As Date
With DataTables("orderList")
    .LoadFilter = CDate("orderDhTime") < d.today.AddDays(3)
    .load()
End With

痛苦的不能运行。

--  作者:有点甜
--  发布时间:2014/12/5 17:06:00
--  
Dim d As Date
With DataTables("orderList")
    .LoadFilter = "orderDhTime < #" & d.today.AddDays(3) & "#"
    .load()
End With