I have a payroll report with a subreport. They are linked on the Employee Id. The subreport pulls from a table with check summary information. There is one entry for each check writen to an employee. I need the subreport to return only the last check written. As it is now it returns a detail section for each check in the table.
I have a summary function named lastcheckdate that correctly returns the date of the last check. I have tried the selection expert and had it return based on:
That works for the most part but if the last paycheck for an employee was more than a week ago then no data is returned. Basically I need to do a:
But crystal reports that the maximum summary needs to be calculated later (or something to that effect).
Ideas?
Please and Thank you.
Tim
Tim Roop
"If you can do something about it, why waste time getting upset? If you can't do anything about it, why bother getting upset on top of it? -Shantideva
I have a summary function named lastcheckdate that correctly returns the date of the last check. I have tried the selection expert and had it return based on:
Code:
{UPR30100.EMPLOYID} = {?Pm-UPR00100.EMPLOYID} and
{UPR30100.CHEKDATE} in Last7Days
That works for the most part but if the last paycheck for an employee was more than a week ago then no data is returned. Basically I need to do a:
Code:
{UPR30100.EMPLOYID} = {?Pm-UPR00100.EMPLOYID} and
{UPR30100.CHEKDATE} = maximum(upr30100.checkdate)
But crystal reports that the maximum summary needs to be calculated later (or something to that effect).
Ideas?
Please and Thank you.
Tim
Tim Roop
"If you can do something about it, why waste time getting upset? If you can't do anything about it, why bother getting upset on top of it? -Shantideva