ASP+AssESS 指定日期查询问题
各位大哥,小弟急需将ASSESS数据库Cowa表CoDate数列中得到所有时间上月26日到本月25的信息
我用如下方式是可以查询出来:
Sqlco = "Select * From cowa where CoDate > #2006-11-25# and CoDate <= #2006-12-25# "
但我将日期换成
ConutTime=#2006-11-25#
CountTime1=#2006-12-25#
Sqlco = "Select * From cowa where CoDate > #CountTime# and CoDate <= #CountTime1# "
之后就不行了。
请高手指导一下,应该怎么写?
谢谢!
------解决方案--------------------Sqlco = "Select * From cowa where CoDate > # "&CountTime& "# and CoDate <= # "&CountTime1& "# "
试一下看看