simonfisher
Programmer
Hi,
I am using CR10 with an Oracle database. I am trying to retrieve rows based on the maximum value contained in a column as I only want some of the rows.
This is what I am trying to do but I keep getting an error in the formula. Could someone please help.
WhileReadingRecords;
numberVar maxPeriod;
maxPeriod := Maximum ({ACNT_HIST.PERIOD});
maxPeriod := maxPeriod - 99;
The error message relates to the Maximum function:
'This function cannot be used because it must be evaluated later'.
Is there another way of doing this?
Thanx
Simon Fisher
Perth, Western Australia
I am using CR10 with an Oracle database. I am trying to retrieve rows based on the maximum value contained in a column as I only want some of the rows.
This is what I am trying to do but I keep getting an error in the formula. Could someone please help.
WhileReadingRecords;
numberVar maxPeriod;
maxPeriod := Maximum ({ACNT_HIST.PERIOD});
maxPeriod := maxPeriod - 99;
The error message relates to the Maximum function:
'This function cannot be used because it must be evaluated later'.
Is there another way of doing this?
Thanx
Simon Fisher
Perth, Western Australia