CR 8.5
Hi Can any body tell me if there is anything wrong with this syntax
whileprintingrecords;
numbervar a;
if {@ccrsgrp} = 1 then
select a
case 1 : "Taught course part time"
case 2 : "Revision"
case 4 : "Revision"
case 20 : "Distance learning"
case 40 : "Distance learning"
case 100 : "Online Classroom"
case 200 : "Check in X3";
else if {@ccrsgrp} > 1 and a = 1 then "Taught course part time"
else if {@ccrsgrp} > 1 and a = 2 then "Revision"
else if {@ccrsgrp} > 1 and a = 20 then "Distance learning"
else if {@ccrsgrp} > 1 and a = 100 then "Online Classroom"
else if {@ccrsgrp} > 1 and (a>2 and a<10) then "Taught course and revision"
else if {@ccrsgrp} > 1 and (a>100 and a<200) then "Online Classroom"
else if {@ccrsgrp} > 1 and (a>20 and a<100) then "Distance learning and revision" ;
Hi Can any body tell me if there is anything wrong with this syntax
whileprintingrecords;
numbervar a;
if {@ccrsgrp} = 1 then
select a
case 1 : "Taught course part time"
case 2 : "Revision"
case 4 : "Revision"
case 20 : "Distance learning"
case 40 : "Distance learning"
case 100 : "Online Classroom"
case 200 : "Check in X3";
else if {@ccrsgrp} > 1 and a = 1 then "Taught course part time"
else if {@ccrsgrp} > 1 and a = 2 then "Revision"
else if {@ccrsgrp} > 1 and a = 20 then "Distance learning"
else if {@ccrsgrp} > 1 and a = 100 then "Online Classroom"
else if {@ccrsgrp} > 1 and (a>2 and a<10) then "Taught course and revision"
else if {@ccrsgrp} > 1 and (a>100 and a<200) then "Online Classroom"
else if {@ccrsgrp} > 1 and (a>20 and a<100) then "Distance learning and revision" ;