Hi everyone,
I'm fairly new to using Crystal Reports, version I'm using is 8.5.
I have a report that I have done tracking all the sick days taken by employees between dates specified by a parameter field.
The report is grouped by Region then Month and Year then Department then employee.
The report is working fine except for two problems;
1) The report is ignoring weekends, so for example if an employee is off sick from a Thursday and goes back to work on a Tuesday the report is showing him as sick for 5 days instead of three. This is the formula I currently have;
if {ABSENCE.UNTILDATE}={ABSENCE.FROMDATE}then 1 else round({ABSENCE.UNTILDATE}-{ABSENCE.FROMDATE})+1
2) IF the absense date crosses over two months i.e. runs from end of Jan to beginning of Feb, the whole period is shown in the Jan section. I would like it to split at the month end and show the last part in Feb.
Hope sombody can help.
Thanks,
Gethyn.
I'm fairly new to using Crystal Reports, version I'm using is 8.5.
I have a report that I have done tracking all the sick days taken by employees between dates specified by a parameter field.
The report is grouped by Region then Month and Year then Department then employee.
The report is working fine except for two problems;
1) The report is ignoring weekends, so for example if an employee is off sick from a Thursday and goes back to work on a Tuesday the report is showing him as sick for 5 days instead of three. This is the formula I currently have;
if {ABSENCE.UNTILDATE}={ABSENCE.FROMDATE}then 1 else round({ABSENCE.UNTILDATE}-{ABSENCE.FROMDATE})+1
2) IF the absense date crosses over two months i.e. runs from end of Jan to beginning of Feb, the whole period is shown in the Jan section. I would like it to split at the month end and show the last part in Feb.
Hope sombody can help.
Thanks,
Gethyn.