F
Freida
I am trying to make a query in access based on 2 different dates.
Date 1= In Patient Date - member x admitted to the hospital on 2/3/2007
Date 2= PcP visit Date PCP visits on 12/20/2006, 1/14/2007,1/31/2007 I
need to no how to get the 1/31/2007.
So I have patients that stayed in the hospital, who may have been to see
their PCP 5 time in the last 6 months before they were admitted to the
hospital. I need to find out which PCP visitation date is the closest date
to the hospital admission date. I tried using the max function, but I am
getting a mismatch data type error. Can someone please explain to me how to
do this.
Date 1= In Patient Date - member x admitted to the hospital on 2/3/2007
Date 2= PcP visit Date PCP visits on 12/20/2006, 1/14/2007,1/31/2007 I
need to no how to get the 1/31/2007.
So I have patients that stayed in the hospital, who may have been to see
their PCP 5 time in the last 6 months before they were admitted to the
hospital. I need to find out which PCP visitation date is the closest date
to the hospital admission date. I tried using the max function, but I am
getting a mismatch data type error. Can someone please explain to me how to
do this.