W
Windsorcat via AccessMonster.com
I am trying to get the # of days stayed in a particular month even if the
client is still open currently.
My expression is Expr: DateDiff("d",[Admission_Date],IIf(IsNull(
[Actual_Close_Date]),Date(),[Actual_Close_Date]))
My criteria for Admission_Date is >12/1/2006 and <12/31/06
criteria for Actual_Close_Date is <1/1/07 or is null
Example I have a client that was admitted 12/27/06 and is still open but the
datediff results are 29 days (4 days in December + 25 days in January) I
want my query to just show the 4 days in December.
The results I want are the days within the month of December the client has
stayed but only for December. I realize that using "Date" in my expression
uses the current date, but I don't know what to enter to get only December
info.?
Thanks in advance for any help!
client is still open currently.
My expression is Expr: DateDiff("d",[Admission_Date],IIf(IsNull(
[Actual_Close_Date]),Date(),[Actual_Close_Date]))
My criteria for Admission_Date is >12/1/2006 and <12/31/06
criteria for Actual_Close_Date is <1/1/07 or is null
Example I have a client that was admitted 12/27/06 and is still open but the
datediff results are 29 days (4 days in December + 25 days in January) I
want my query to just show the 4 days in December.
The results I want are the days within the month of December the client has
stayed but only for December. I realize that using "Date" in my expression
uses the current date, but I don't know what to enter to get only December
info.?
Thanks in advance for any help!