Functions Reference

Table Of Contents
134 FileMaker Functions Reference
Example
There are two tables, People and Company, in a database file containing the data shown
below.
People table
Company table
The People and Company tables are related using the number field CompanyID. The
calculation CompanyName = Lookup(Company::CompanyName;“Not found”)
defined in the People table will return Apple for the first record, FileMaker for the second
record and Not found for the third record.
LookupNext
Format
LookupNext(sourceField;lower/higherFlag)
Parameters
sourceField - the field from which the lookup value is taken.
lower/higherFlag - the keywords lower or higher denote whether the value from
the next lower/higher matching record
must be taken if the lookup fails.
Data type returned
text, number, date, time, timestamp, container
CompanyID Employee
100 John Smith
200 Peter Wong
300 Sally Anderson
CompanyID CompanyName Code
100 Apple 91234
100 Apple 82345
200 FileMaker 95054