Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Crystal equivalnet next and previous

Status
Not open for further replies.

xtreemnet

Programmer
Aug 9, 2003
88
NZ
Hi

Is there a equivalent function in RS for Next(field) or previous(field) for accessing data from next or previous row?

Thanks.
 
are you trying to do this in a matrix or where?
 
There is no built in "Next" or "Previous" functions but you can create a "Running count" variable which you could use to refer to RunningCount + 1 or RunningCount - 1

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
There is a previous function (at least in RS 2005) in the Expression Editor/Common functions/Miscellaneous section.
It works in the details section of a table: "Returns the value of the expression for the previous row of data." Not sure about in a matrix.
 
Dammit - really need to get my company to upgrade to 2005! 2000 doesn't even have a functions list that you can see what is available from!

Rgds, Geoff

We could learn a lot from crayons. Some are sharp, some are pretty and some are dull. Some have weird names and all are different colours but they all live in the same box.

Please read FAQ222-2244 before you ask a question
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top