where item='logonumber'and day(djrq)=day(now()-1) and month(djrq)=month(now()) and year(djrq)=year(now())"但是好像不行,是怎么回事啊?我想查询昨天的统计数字,我该如何定义这个日期呢?该怎么写?请各位大虾指教!谢谢!
[此贴子已经被作者于2007-9-9 9:43:48编辑过]
where item='logonumber' and djrq='"&CStr(DateAdd("d",-1,Now))&"'
谢谢版主!