Crystal Reports 10
MS SQL 2000
I have a field which is a numeric representation of a date PAT_ENC_DATE_REAL which is in the table PAT_ENC_CURR_MEDS. (The integer portion of the number specifies the date of the encounter. The digits after the decimal point indicate multiple visits on one day.)
If a patient has a visit, this table {PAT_ENC_CURR_MEDS} may or may not be updated. Also, a patient may have multiple visits on the same day, and there is a posibility that the table may be updated during both visits.
Is there a way to pull only the most recent record into my record selection using a formula? I want the most recent PAT_ENC_CURR_MEDS information, even if it is not associated with the specific visit date that I am pulling into my report.
Thanks for your help.
MS SQL 2000
I have a field which is a numeric representation of a date PAT_ENC_DATE_REAL which is in the table PAT_ENC_CURR_MEDS. (The integer portion of the number specifies the date of the encounter. The digits after the decimal point indicate multiple visits on one day.)
If a patient has a visit, this table {PAT_ENC_CURR_MEDS} may or may not be updated. Also, a patient may have multiple visits on the same day, and there is a posibility that the table may be updated during both visits.
Is there a way to pull only the most recent record into my record selection using a formula? I want the most recent PAT_ENC_CURR_MEDS information, even if it is not associated with the specific visit date that I am pulling into my report.
Thanks for your help.