日期:2014-05-17  浏览次数:20978 次

求助 关于ACCESS里时间段的查询
要查询     dateS     到     dateE     之间的时间段(dateS与dateE为文本输入)

regtime(ACCESS里面的日期/时间格式   2007-5-2   21:47:38)

现在比如要查询   regtime     2007-5-1     到     2007-5-30   日之间的记录

现在要怎么查

------解决方案--------------------
"select * from tablename where regtime between # "&cdate(dateS)&# and # "&cdate(dateE)& "# "
特别注意:要加#