cdennis321
MIS
I am running Crystal 8.5 on an SQL server.
I am creating a report that lists clients that are assigned to a specific provider. I want the report grouped by provider with the following setup:
GrpHdr Provider A 10 Clients
Client Last date # Days from
of Service Current date
Detail John Smith 5/23/2004 30
Bart Simpson 6/1/2004 23
Mary Brown 6/22/2004 2
The fields that I am using are {@Client}, {RECORDED_SERVICE.STARTTIME} and {@Aged} (THESE ARE LOCATED IN THE DETAILS SECTION OF THE REPORT)
{@Aged} = currentdate - {RECORDED_SERVICE.STARTTIME}
What my problem is is that in order to get the last date of service recorded, I need to sort the field {RECORDED_SERVICE.STARTTIME} in descending order, but I also need to sort all the clients based on the {@Aged} formula. If I take out the sort on {RECORDED_SERVICE.STARTTIME} then the dates are not correct which makes the formula {@Aged} incorrect also.
Could someone please tell me where I am going wrong in this set up?
Thanks
Connie D
I am creating a report that lists clients that are assigned to a specific provider. I want the report grouped by provider with the following setup:
GrpHdr Provider A 10 Clients
Client Last date # Days from
of Service Current date
Detail John Smith 5/23/2004 30
Bart Simpson 6/1/2004 23
Mary Brown 6/22/2004 2
The fields that I am using are {@Client}, {RECORDED_SERVICE.STARTTIME} and {@Aged} (THESE ARE LOCATED IN THE DETAILS SECTION OF THE REPORT)
{@Aged} = currentdate - {RECORDED_SERVICE.STARTTIME}
What my problem is is that in order to get the last date of service recorded, I need to sort the field {RECORDED_SERVICE.STARTTIME} in descending order, but I also need to sort all the clients based on the {@Aged} formula. If I take out the sort on {RECORDED_SERVICE.STARTTIME} then the dates are not correct which makes the formula {@Aged} incorrect also.
Could someone please tell me where I am going wrong in this set up?
Thanks
Connie D