I am writing a report pulling customers who need to complete 3 month service surveys. I need to find out which customers have a 3 month survey coming up. For example, if I input the month of June, the report should pull all customers who received a service in March, regardless of the year. Or if I input the month of March, the report should pull all customers who received a service in December.
The date of service is equal to the last date that the customer came in a for services. This is the formula that I am using to calculate that:
WHILEPRINTINGRECORDS;
SHARED DATEVAR LAD := LAD ;
IF NOT (ISNULL ({movement_history.admission_date})) THEN LAD := {movement_history.admission_date} ELSE
LAD := LAD
where LAD is Last Admission Date
I need to be able to pull the information at least 1 month in advancse so that the managers will have enough time to get the surveys out. I tried using a date range parameter but it did not work. It pulled like it says, a range. Also went to Ken Hamady website and pulled this formula
DateAdd('m',3,{movement_history.admission_date}),
but wasn't sure how to incorporate it into the report.
Please help!
Using CR Version 8.5
Unix platform
SQL tables
-T
The date of service is equal to the last date that the customer came in a for services. This is the formula that I am using to calculate that:
WHILEPRINTINGRECORDS;
SHARED DATEVAR LAD := LAD ;
IF NOT (ISNULL ({movement_history.admission_date})) THEN LAD := {movement_history.admission_date} ELSE
LAD := LAD
where LAD is Last Admission Date
I need to be able to pull the information at least 1 month in advancse so that the managers will have enough time to get the surveys out. I tried using a date range parameter but it did not work. It pulled like it says, a range. Also went to Ken Hamady website and pulled this formula
DateAdd('m',3,{movement_history.admission_date}),
but wasn't sure how to incorporate it into the report.
Please help!
Using CR Version 8.5
Unix platform
SQL tables
-T