以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- [求助]日期时间型的数据字段如何筛选或统计 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=113533) |
-- 作者:ymjr2011 -- 发布时间:2018/1/17 16:51:00 -- [求助]日期时间型的数据字段如何筛选或统计 dt.Compute("count(id)","bm=\'101\' and checktime=\'" & Date.Today & "\'") 如果 checktime保存的数据为日期时间型,无法返回数据 |
-- 作者:有点甜 -- 发布时间:2018/1/17 17:41:00 -- 改成 dt.Compute("count(id)","bm=\'101\' and checktime>=#" & Date.Today & "# and checktime<#" & Date.Today.AddDays(1) & "#") |