首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > ASP >

关于ACCESS里时间段的查询

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

求助 关于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)& "# "
特别注意:要加#

热点排行