CARLEENHOP
MIS
- Mar 7, 2010
- 61
Hi
Using crystal v11.
I have a 3rd grouping where I display data. This shows if an order was received or delivered. Where delivered I have 3 columns to show if ontime, 1-2 days late or later. This is based on the date difference between the order date and the charge date. In the 3 columms I have it displaying a 1 if it is true. E.g out of 10 records I might have 2 showing a 1 in the one time, 6 showing a 1 in the 1-2 days late and 3 showing a one in the later column. I have done this using the suggested syntax from Ian on this website (see below)
whileprintingrecords;
global numbervar datediff;
global numbervar datediffgrp;
if {SORD.TYP} = 2 and {@Date Difference} =0 then
datediff:= datediff + 1 ;
if {SORD.TYP} = 2 and {@Date Difference} = 0 then
datediffgrp:= datediffgrp + 1 ;
As mentiond this is displaying in my 3rd Group Footer.
I need to total these values for my 2nd group footer and my 1st group footer. However I cannot for the life of me work it out.
Please help!
Thanks
Using crystal v11.
I have a 3rd grouping where I display data. This shows if an order was received or delivered. Where delivered I have 3 columns to show if ontime, 1-2 days late or later. This is based on the date difference between the order date and the charge date. In the 3 columms I have it displaying a 1 if it is true. E.g out of 10 records I might have 2 showing a 1 in the one time, 6 showing a 1 in the 1-2 days late and 3 showing a one in the later column. I have done this using the suggested syntax from Ian on this website (see below)
whileprintingrecords;
global numbervar datediff;
global numbervar datediffgrp;
if {SORD.TYP} = 2 and {@Date Difference} =0 then
datediff:= datediff + 1 ;
if {SORD.TYP} = 2 and {@Date Difference} = 0 then
datediffgrp:= datediffgrp + 1 ;
As mentiond this is displaying in my 3rd Group Footer.
I need to total these values for my 2nd group footer and my 1st group footer. However I cannot for the life of me work it out.
Please help!
Thanks