Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate a report for days off

Status
Not open for further replies.

alley211

Instructor
Aug 10, 2001
61
US
I have version 8.5 of crystal.

I need to do the following:

I need to calculate when someone has time off.

For example:

Someone worked 2/1 for the time frame of 2/1-2/14.

I need one column that shows they did not work 2/2-2/7 and
I need to show it like this:

Sa, Su, M, Tu, W, Th

And another column for 2/8-2/14 showing:

F,Sa,Su,M,Tu,W,Th

I can put on the report the days that they work but I'm having trouble figuring out when they didn't.

I've created some variables but they aren't behaving.

Any thoughts or ideas would be greatly appreciated.

alley
 
I used a similar appraach with a string variable to create a call line (list all the duties a person has over a period of time).

Build a string of 1 char for each day.
stringvar days:= "xxxxxxxxxxxxxxx"
then change the "x" to " " or a duty code for the day's that have data. (A bit of maths needed here).

Then another formula in the Employee/Group footer to examine the string var and build up a string for the day of the week for the day still with an "x"

A bit of work, but possible. Editor and Publisher of Crystal Clear
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top