Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

referencing previous record in calculation


This topic is 6840 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

Is there any way to reference the previous record in a calculation?

I need to compare the text in one field to the text in the same field in the previous record where the order of records changes with each new find and sort.

I've been doing it by running a script to bring the previous value forward and comparing that way, but I'm guessing there's a simpler solution.

Thanks for any help.

Posted

Hi

You can't find any alternative way with FMP7 !

A relation based on Get(RecordNumber) couldn't be indexed...

But you can do it with FMP8 and the powerful *NEW* GetNthRecord() function...

Simply this (unstored) calc:

GetNthRecord ( text ; Get ( RecordNumber ) - 1 )

So, what are you waiting for ?

This topic is 6840 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.