I have the following formula:
Whileprintingrecords;
Numbervar extra;
If {Trips.Trip Date} = {?TripDate} and {TRIP_MAIN_OPS.SCHTYP_SCHEDTYPE_NO} = "EXTRA" then
extra := Count ({TRIP_MAIN_OPS.SCHTYP_SCHEDTYPE_NO})
else
0
This is in the detail section with all other working formulas.
The field {TRIP_MAIN_OPS.SCHTYP_SCHEDTYPE_NO} consist of different schedule types and one of them is EXTRA. I need to find all the schedule types EXTRA for every train everyday and if EXTRA exist, i want to count the number of EXTRA trains there are in a day.
My display formula is:
//{Display}
whileprintingrecords;
numbervar extra;
this is in the report footer
What am i doing wrong?
Whileprintingrecords;
Numbervar extra;
If {Trips.Trip Date} = {?TripDate} and {TRIP_MAIN_OPS.SCHTYP_SCHEDTYPE_NO} = "EXTRA" then
extra := Count ({TRIP_MAIN_OPS.SCHTYP_SCHEDTYPE_NO})
else
0
This is in the detail section with all other working formulas.
The field {TRIP_MAIN_OPS.SCHTYP_SCHEDTYPE_NO} consist of different schedule types and one of them is EXTRA. I need to find all the schedule types EXTRA for every train everyday and if EXTRA exist, i want to count the number of EXTRA trains there are in a day.
My display formula is:
//{Display}
whileprintingrecords;
numbervar extra;
this is in the report footer
What am i doing wrong?