jakester
Jul 27, 2009, 01:38 PM
Hello -
here's my problem. I'm trying to put together a crosstab query that groups admit dates to the hospital by month for a particular nursing home. Here's how I have set it up so far:
I have Admit date set as the column heading for the crosstab query. I have nursing home facility set as the row heading and I have admit date set as the value. What I am attempting to do is count the number of admissions to a nursing home for each month.
This is the way the crosstab appears when I run it:
Nursing Home 10/10/08 10/15/08 10/17/08 11/5/08 11/17/08
XYZ Home 1 1
Fountain of Life 1 1 1
Last Days 1 1 1
Can I group the months together so that I see the admit dates rolled up into 1 month? So, I'd like to see:
Nursing Home 10-08 11-08
XYZ Home --------- 2 ------
Fountain of Life----- 2 ------ 1
Last Days --------- 2 ------- 1
I've looked at countless ways in which people have attempted to group dates together in access but no one has attempted a similar problem so I'm stuck.
Can anyone help? Sorry, but I can't get the formatting in the body of this question to cooperate. The counts for each date don't line up accordingly but hopefully you get that there are 2 admits per nursing home in Oct and 1 admit for November for 2 out of the 3.
Thanks.
here's my problem. I'm trying to put together a crosstab query that groups admit dates to the hospital by month for a particular nursing home. Here's how I have set it up so far:
I have Admit date set as the column heading for the crosstab query. I have nursing home facility set as the row heading and I have admit date set as the value. What I am attempting to do is count the number of admissions to a nursing home for each month.
This is the way the crosstab appears when I run it:
Nursing Home 10/10/08 10/15/08 10/17/08 11/5/08 11/17/08
XYZ Home 1 1
Fountain of Life 1 1 1
Last Days 1 1 1
Can I group the months together so that I see the admit dates rolled up into 1 month? So, I'd like to see:
Nursing Home 10-08 11-08
XYZ Home --------- 2 ------
Fountain of Life----- 2 ------ 1
Last Days --------- 2 ------- 1
I've looked at countless ways in which people have attempted to group dates together in access but no one has attempted a similar problem so I'm stuck.
Can anyone help? Sorry, but I can't get the formatting in the body of this question to cooperate. The counts for each date don't line up accordingly but hopefully you get that there are 2 admits per nursing home in Oct and 1 admit for November for 2 out of the 3.
Thanks.