I'm using the Crystal 3 formula trick to get totals of times elapsed by day of week: @MonAccum, @TueAccum, etc.
I initialize each one to 0 in the Group Header. My total variable for each is:
whileprintingrecords;
numbervar FriAccum;
{@FriAccum}
I have also done it:
whileprintingrecords;
{@FriAccum}
Data:
Group A
Mon 30
Tue 30
Wed 25
Wed 25
Thur 40
Fri 25
Fri 20
Group B
Mon 25
Tue 50
Tue30
Wed 20
Wed 15
This works find except on the total for the last day of the week represented in the data:
I get:
Group A
Mon 30
Tue 30
Wed 50
Thur 40
Fri 65
Group B
Mon 25
Tue 80
Wed 50
So it is adding the last one again if the day I am calculating is the day of the last records.
HELP please. Anyway to avoid this?
Thanks,
Lu Ann
I initialize each one to 0 in the Group Header. My total variable for each is:
whileprintingrecords;
numbervar FriAccum;
{@FriAccum}
I have also done it:
whileprintingrecords;
{@FriAccum}
Data:
Group A
Mon 30
Tue 30
Wed 25
Wed 25
Thur 40
Fri 25
Fri 20
Group B
Mon 25
Tue 50
Tue30
Wed 20
Wed 15
This works find except on the total for the last day of the week represented in the data:
I get:
Group A
Mon 30
Tue 30
Wed 50
Thur 40
Fri 65
Group B
Mon 25
Tue 80
Wed 50
So it is adding the last one again if the day I am calculating is the day of the last records.
HELP please. Anyway to avoid this?
Thanks,
Lu Ann