I have been trying to debug this code and have finally give up. Please see if you can point me in the right direction.
I'm using Crystal 10.
I have a field in my report called emp_pre_cont and this field usually has a number most of the time, but there are occasions when there are no values whatsoever. If there is a number value in this field, I have a formula that will calculate a retirement bonus, but if it doesn't have a value, I would like it to say 0.00.
Here are my 3 formulas:
1. Value Check:
if isnull({BENEFIT.EMP_PRE_CONT}) then '0.00'
else ({@Retirement Pension})
2. Retirement Pension:
(({EMPLOYEE.PAY_RATE}*{EMPLOYEE.NBR_FTE}*{EMPLOYEE.ANNUAL_HOURS})*.0575)
3. 403b Sum Calculation:
whileprintingrecords;
shared numbervar CompPensionTotal:=sum ({@Retirement Pension });
My problem is that when there is a value, I can pull it alright, but when its 0.00, nothing appears.
Suggestions...
Thanks
I'm using Crystal 10.
I have a field in my report called emp_pre_cont and this field usually has a number most of the time, but there are occasions when there are no values whatsoever. If there is a number value in this field, I have a formula that will calculate a retirement bonus, but if it doesn't have a value, I would like it to say 0.00.
Here are my 3 formulas:
1. Value Check:
if isnull({BENEFIT.EMP_PRE_CONT}) then '0.00'
else ({@Retirement Pension})
2. Retirement Pension:
(({EMPLOYEE.PAY_RATE}*{EMPLOYEE.NBR_FTE}*{EMPLOYEE.ANNUAL_HOURS})*.0575)
3. 403b Sum Calculation:
whileprintingrecords;
shared numbervar CompPensionTotal:=sum ({@Retirement Pension });
My problem is that when there is a value, I can pull it alright, but when its 0.00, nothing appears.
Suggestions...
Thanks