My report contains three tables: Claimant, Immunity and SurvTest. Each patient may have multiple immunity Surveillance shots (each shot represents a record). So in the SurvTest table, patient A might have the following record:
Protocol Type Vaccine Actual_Date Next F/U Date
Immune Vacc TB 01/01/2001 02/01/2001
2nd Shot Vacc TB 02/01/2001 03/ 01/2001
3rd Shot Vacc TB
At runtime, the user will enter a date range base on the Next F/U Date field to select the record. Let say that the user enters the Next F/U Date range of 02/28/2001 to 03/31/2001, I want to show the latest record, which is Third Shot Vacc TB base on the following conditions:
If the Actual_Date is empty(this means that the patient has not come in for the Third shot) and the Next F/U Date is fall within the date range then display:
Protocol Type Vaccine Next F/U Date
Third Shot Vacc TB 03/01/2001(how do I show this date since it is stored in the Second Shot record).
So basically, I want Crystal to check the Actual_Date field of the latest record (Third Shot), if the Actual_Date field is null, then look at the latest Next F/U Date, which is 03/01/2001(store in the Second Shot) and if this date is within the date range then display the latest record with this date 03/01/2001. This report was originally created in Visual Fox Pro and my user want to re-create this in Crystal. I’m using CR 8.5 and Oracle backend. Your help is greatly appreciated.
Bryan
Protocol Type Vaccine Actual_Date Next F/U Date
Immune Vacc TB 01/01/2001 02/01/2001
2nd Shot Vacc TB 02/01/2001 03/ 01/2001
3rd Shot Vacc TB
At runtime, the user will enter a date range base on the Next F/U Date field to select the record. Let say that the user enters the Next F/U Date range of 02/28/2001 to 03/31/2001, I want to show the latest record, which is Third Shot Vacc TB base on the following conditions:
If the Actual_Date is empty(this means that the patient has not come in for the Third shot) and the Next F/U Date is fall within the date range then display:
Protocol Type Vaccine Next F/U Date
Third Shot Vacc TB 03/01/2001(how do I show this date since it is stored in the Second Shot record).
So basically, I want Crystal to check the Actual_Date field of the latest record (Third Shot), if the Actual_Date field is null, then look at the latest Next F/U Date, which is 03/01/2001(store in the Second Shot) and if this date is within the date range then display the latest record with this date 03/01/2001. This report was originally created in Visual Fox Pro and my user want to re-create this in Crystal. I’m using CR 8.5 and Oracle backend. Your help is greatly appreciated.
Bryan