M
MS Access Scheduler Database
I have a table X that contains person's blood pressure reading dates and
sys/dia results. Many may have more than 5 BP readings. I want to return
only the 3 most recent dates based on PersonID.
PersonID BPDate sys dia
1 4/3/2009 130 70
1 5/24/2009 145 80
2 4/22/2009 136 90
2 6/10/2009 136 90
2 9/23/2009 136 90
2 11/01/2009 136 90
Also to group the data by PersonID to show the BP reading as BPdate1,
BPDate2, BPdate3 and BP readings in a row. For example - result as:
Person ID BPDate1 sys1 dia1 DPdate2 sys2 dia2 so
on.....
1 4/3/2009 130 70 5/24/2009 145 80
I've been researching this for weeks - Please help!
sys/dia results. Many may have more than 5 BP readings. I want to return
only the 3 most recent dates based on PersonID.
PersonID BPDate sys dia
1 4/3/2009 130 70
1 5/24/2009 145 80
2 4/22/2009 136 90
2 6/10/2009 136 90
2 9/23/2009 136 90
2 11/01/2009 136 90
Also to group the data by PersonID to show the BP reading as BPdate1,
BPDate2, BPdate3 and BP readings in a row. For example - result as:
Person ID BPDate1 sys1 dia1 DPdate2 sys2 dia2 so
on.....
1 4/3/2009 130 70 5/24/2009 145 80
I've been researching this for weeks - Please help!