求助!还是关于时间的搜索问题?
sqlStr = "select * from imgbook where 1=1 "
sqlStr = sqlStr & " and cc_title like '%"&title&"%' "
sqlStr = sqlStr & " and cc_author like '%"&author&"%' "
sqlStr = sqlStr & " and cc_content like '%"&keyword&"%' "
sqlStr = sqlStr & " and classname like '%"&aclass&"%' "
我想在上面的代码中再加入按时间的搜索。我用了
sqlStr = sqlStr & " and cc_createtime between '"&stime&"' and '"&etime&"' "可是不行。哪位能给点帮助!谢谢了!