This example assumes that ...
a) CaseClosed and CaseOpened are date/time fields. CaseClosed is left Null
until the case is closed, when the closing date is entered.
b) You want the count of all cases that i) are still open and ii) have been
open for 11 months or more.
SELECT Count(*) AS TheCount
FROM tblTest
WHERE (((tblTest.CaseClosed) Is Null) AND
((DateDiff("m",[CaseOpened],Date()))>=11));
--
Brendan Reynolds (MVP)
Jessica said:
I need to calculate how many cases have been open for 11 months. How can i
do
that in a querie.