J
Judy
Okay I have a query that can count the number of occupants
as any one given time:
SELECT Count(TblClientInfo.dtmLeaseStart) AS
CountofLeaseStart
FROM tblClientInfo
WHERE ((([Format([dtmLeaseStart], "mmyyyy")) <="052002")
AND ((Format([dtmLeaseEnd], "mmyyyy")) > "052002")) OR
(((Format([dtmLeaseStart], "mmyyyy"))<= "052002") AND
((Format([dtmLeaseEnd], "mmyyyy"))=""));
where of course the "052002" can come from a form or
parameter query if needed.
BUT--how can I allow for a range of months, calculating
the total for *each* month, based on the criteria above
where they're on or past lease start date but not yet past
lease end date?
thanks,
Judy
as any one given time:
SELECT Count(TblClientInfo.dtmLeaseStart) AS
CountofLeaseStart
FROM tblClientInfo
WHERE ((([Format([dtmLeaseStart], "mmyyyy")) <="052002")
AND ((Format([dtmLeaseEnd], "mmyyyy")) > "052002")) OR
(((Format([dtmLeaseStart], "mmyyyy"))<= "052002") AND
((Format([dtmLeaseEnd], "mmyyyy"))=""));
where of course the "052002" can come from a form or
parameter query if needed.
BUT--how can I allow for a range of months, calculating
the total for *each* month, based on the criteria above
where they're on or past lease start date but not yet past
lease end date?
thanks,
Judy