I have a report that lists the number of orders for many hundred of vendors. I am grouping by the vendor and then want to display the count of the orders, with just the total counts displayed for each vendor, for 2001, 2002, 2003nad then sum total for the three years. I wrote a formula to assign variables as counters for the year, but how do I display them as they are inside one formula. Here is the formula:
numbervar orders2001;
numbervar orders2002;
numbervar orders2003;
if ({orders.RecDate} >= Date (2000,01,01) and {orders.RecDate} <= Date (2000,12,31) )
then orders2001 = orders2001
else
if ({orders.RecDate} >= Date (2001,01,01) and {orders.RecDate} <= Date (2001,12,31) )
then orders2001 = orders2001 + 1
else
if ({orders.RecDate} >= Date (2002,01,01) and {orders.RecDate} <= Date (2002,12,31) )
then orders2002 = orders2002 + 1
else orders2003 = orders2003+1
Any help is appreciated, thanks!
Brian
numbervar orders2001;
numbervar orders2002;
numbervar orders2003;
if ({orders.RecDate} >= Date (2000,01,01) and {orders.RecDate} <= Date (2000,12,31) )
then orders2001 = orders2001
else
if ({orders.RecDate} >= Date (2001,01,01) and {orders.RecDate} <= Date (2001,12,31) )
then orders2001 = orders2001 + 1
else
if ({orders.RecDate} >= Date (2002,01,01) and {orders.RecDate} <= Date (2002,12,31) )
then orders2002 = orders2002 + 1
else orders2003 = orders2003+1
Any help is appreciated, thanks!
Brian