Hello, I'm reopening an OLD THREAD that I had not finished: How to get "Next Next" Value?
HISTORY:
_____________________________________________________________________________________________________________________
LWTri (Programmer) 30 Dec 08 14:59
Hey all, we're using Crystal XI. Does anyone know how to grab values from "future" records?
(1) We know how to grab the "next" value from next record:
Example Formula (@NextDate):
Next({table.date})
(2) But how do you grab values from future records (ex: 2 or 3 records later)? EX: We need the date from 2 records later.
(3) Tried using Next(Next({table.field})) and that doesn't work.
(4) Tried creating a formula that prints date where RecordCount + 2, but that doesn't work with regular EvaluationTime. Might work if we can use
WhilePrintingRecords or EvaluateAfter functions?
Any ideas would be greatly appreciated. Thanks!
_____________________________________________________________________________________________________________________
IdoMillet (Instructor) 30 Dec 08 22:56
afaik, can't be done.
- Ido
_____________________________________________________________________________________________________________________
lbass (TechnicalUser) 31 Dec 08 17:04
Try providing some sample data and explaining what you are trying to do. There might be an alternative method. You might be able to use
something like Nthlargest(3,{table.date}), for example.
-LB
_____________________________________________________________________________________________________________________
HISTORY:
_____________________________________________________________________________________________________________________
LWTri (Programmer) 30 Dec 08 14:59
Hey all, we're using Crystal XI. Does anyone know how to grab values from "future" records?
(1) We know how to grab the "next" value from next record:
Example Formula (@NextDate):
Next({table.date})
(2) But how do you grab values from future records (ex: 2 or 3 records later)? EX: We need the date from 2 records later.
(3) Tried using Next(Next({table.field})) and that doesn't work.
(4) Tried creating a formula that prints date where RecordCount + 2, but that doesn't work with regular EvaluationTime. Might work if we can use
WhilePrintingRecords or EvaluateAfter functions?
Any ideas would be greatly appreciated. Thanks!
_____________________________________________________________________________________________________________________
IdoMillet (Instructor) 30 Dec 08 22:56
afaik, can't be done.
- Ido
_____________________________________________________________________________________________________________________
lbass (TechnicalUser) 31 Dec 08 17:04
Try providing some sample data and explaining what you are trying to do. There might be an alternative method. You might be able to use
something like Nthlargest(3,{table.date}), for example.
-LB
_____________________________________________________________________________________________________________________