G
Gamefewel
I asked this yesterday and see all kinds of questions around me being
answered and suppose i just did not word this correctly.
I have a table of lab results. It is related to my patient table. It is a
one-to-many relationship. I have a date field, which is the date of last
labs. I am trying to build a query that will pull only the most previous lab
from each patient, with the criteria of it having been more than 6 months
ago. I do not want to pull lab dates from 10 months ago, if there is one
within the last 6 months. This is for a Dr and it is a priority that I get
it done.
a table migh look like this
MRN LDL HDL Systolic Diastolic Weight Date
11111 2 37 95 152 301 01/31/2008
11111 3 32 87 144 275 08/29/2009
22222 7 25 99 210 195 06/03/2008
22222 9 22 75 180 190 03/02/2009
If I ran my query with the criteria of Between [12/01/2006] And [07/01/2009]
I would not want anything from the person with the Medical Record of 11111
to show up, but would want the date of 03/02/2009 to show on the person with
the Medical Record of 22222.
I appreciate any help on this.
Thanks
answered and suppose i just did not word this correctly.
I have a table of lab results. It is related to my patient table. It is a
one-to-many relationship. I have a date field, which is the date of last
labs. I am trying to build a query that will pull only the most previous lab
from each patient, with the criteria of it having been more than 6 months
ago. I do not want to pull lab dates from 10 months ago, if there is one
within the last 6 months. This is for a Dr and it is a priority that I get
it done.
a table migh look like this
MRN LDL HDL Systolic Diastolic Weight Date
11111 2 37 95 152 301 01/31/2008
11111 3 32 87 144 275 08/29/2009
22222 7 25 99 210 195 06/03/2008
22222 9 22 75 180 190 03/02/2009
If I ran my query with the criteria of Between [12/01/2006] And [07/01/2009]
I would not want anything from the person with the Medical Record of 11111
to show up, but would want the date of 03/02/2009 to show on the person with
the Medical Record of 22222.
I appreciate any help on this.
Thanks