N
NotGood@All
I'm trying to write some queries that count the number of events for the past
14 days, 10 weeks, 5 months, 3 qrts, and 2 years. I used this code to start
counting the days thinking all I have to do is get it to work then change the
'd' to 'ww' to 'q'. but I can't get the days to work. I posted this
question sometime this month but I got sick and I've been away and I can't
find my post to see if anyone helped me.
SELECT (DateCreated) AS Expr1, Count(*) AS [Output]
FROM qryForStatsPageOnly
WHERE ((((qryForStatsPageOnly.DateCreated)<=DateAdd("d",0,Date()))) and
(((qryForStatsPageOnly.DateCreated)>=DateAdd("d",-13,Date()))))
GROUP BY (DateCreated)
ORDER BY (DateCreated) DESC;
Thanks
NotGood@All
14 days, 10 weeks, 5 months, 3 qrts, and 2 years. I used this code to start
counting the days thinking all I have to do is get it to work then change the
'd' to 'ww' to 'q'. but I can't get the days to work. I posted this
question sometime this month but I got sick and I've been away and I can't
find my post to see if anyone helped me.
SELECT (DateCreated) AS Expr1, Count(*) AS [Output]
FROM qryForStatsPageOnly
WHERE ((((qryForStatsPageOnly.DateCreated)<=DateAdd("d",0,Date()))) and
(((qryForStatsPageOnly.DateCreated)>=DateAdd("d",-13,Date()))))
GROUP BY (DateCreated)
ORDER BY (DateCreated) DESC;
Thanks
NotGood@All