Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

Posted

Hi everyone,

I'm trying to understand lookupnext function and just can't fugure it out...

My database contains 2 tables.

One is a list of tasks with each task having an id number. The other table is named task, where I have 2 fields; the first being an id number field and the second the "supposed" lookupnext value field calculation.

My goal: I would like when I enter a task number to see in the other field what will be the next task.

ex:

table1

1 = wake-up

2 = breakfast

3 = work

etc...

table2

when I enter the number 2, i would like to get the description "work".

1 = breakfast

2 = work

Can anyone help me. I have attached the file.

Thanks,

Fred.

lookupnext_test.zip

Posted

LookupNext() looks up the next lower/higher ONLY when there's NO MATCH. If you'd enter 1.5, LookupNext( ... ; higher) would return the value matching 2. A good use for LookupNext() is when you need to lookup within a range.

In your example, you could add a calculation field = TaskNumber + 1 and base the relationship on that.

This topic is 6658 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.