Greetings all again,
CR9, Informix procedure, Unix database, different report, same CR newbie
This report is supposed to total up trailers and give that total at the end of the report. These are the two formulas we have in the report counting trailers:
countTrailers:
whileprintingrecords;
shared numbervar trailers:=
if ({sp_yard.(expression):10})="HA" then
If Not IsNull({sp_yard.(expression):2}) and Not (Trim({sp_yard.(expression):2})="")then
trailers := trailers +1
else
trailers;
fldTrailerCount:
if shared numbervar trailers=0 then
(0)
else
shared numbervar trailers;
It is counting all of the duplicate trailers if there is different information associated with that trailer, like several shipments on the same trailer. I need it to count the trailer only once, but still display the trailer and info. All of the report info is in the details section, (amazingly enough there are only 5 groups, but everything is still in the details). Group 5 has the location expression in it and is the main sort for the report, the other groups are empty. My guess is that this repot has been worked over many times. I tried to run a distinctcount in both of the above formulas and it either stayed the same or came back with zero.
Thanks!
CR9, Informix procedure, Unix database, different report, same CR newbie
This report is supposed to total up trailers and give that total at the end of the report. These are the two formulas we have in the report counting trailers:
countTrailers:
whileprintingrecords;
shared numbervar trailers:=
if ({sp_yard.(expression):10})="HA" then
If Not IsNull({sp_yard.(expression):2}) and Not (Trim({sp_yard.(expression):2})="")then
trailers := trailers +1
else
trailers;
fldTrailerCount:
if shared numbervar trailers=0 then
(0)
else
shared numbervar trailers;
It is counting all of the duplicate trailers if there is different information associated with that trailer, like several shipments on the same trailer. I need it to count the trailer only once, but still display the trailer and info. All of the report info is in the details section, (amazingly enough there are only 5 groups, but everything is still in the details). Group 5 has the location expression in it and is the main sort for the report, the other groups are empty. My guess is that this repot has been worked over many times. I tried to run a distinctcount in both of the above formulas and it either stayed the same or came back with zero.
Thanks!