sql = "SELECT * FROM Statistics where stitle='"&action&"' and (DATEDIFF('d',stime, #"& startdate & "#) <=0 AND 
DATEDIFF('d', stime, #" & enddate & "#)>=0) order by sid desc"