I have set a global variable in a formula, I have placed in the Page Header (I assume thats the place to put it, I tried the Report Header too). It is assigned as follows:
Global NumberVar Max_Period;
Max_Period := maximum(Period); // Period is a field from the returned data set. I want the max period from the record set returned. So I can use it later.
In the detail section I have placed another formula called Col1_Value this code is as follows
Global NumberVar Max_Period;
If Max_period = Period then
Amount_Value // this is a field from the data database
else
Amount_Value_2 // again from the database.
I have other Col#_Value in the detail section that need to do different tests on the Max_Period. The problem is Max_period is always 0 in the detail section.
I don't understand why its not the value I see if I display it in the Page Header. What Am I missing?
Thanks
Joe
I am using CR 8.5
Global NumberVar Max_Period;
Max_Period := maximum(Period); // Period is a field from the returned data set. I want the max period from the record set returned. So I can use it later.
In the detail section I have placed another formula called Col1_Value this code is as follows
Global NumberVar Max_Period;
If Max_period = Period then
Amount_Value // this is a field from the data database
else
Amount_Value_2 // again from the database.
I have other Col#_Value in the detail section that need to do different tests on the Max_Period. The problem is Max_period is always 0 in the detail section.
I don't understand why its not the value I see if I display it in the Page Header. What Am I missing?
Thanks
Joe
I am using CR 8.5