Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How do i find the maximum value in a found set ?

Featured Replies

Hi,

I want to find the Maximum Record ID in my found set so that I can alert my user that there have been new records added to the database by showing the records through a self-join that have a larger Record ID.

Max( ) seems to work on the entire database, and not just the found set.

Can someone make a recommendation?

Take the Tailrecursion CF from here:

http://www.filemakerpros.com/GetNthRecordTAIL.zip

...and this CF:

http://www.briandunning.com/cf/757

...and make a combination in the vicinity of what the template here shows!

--sd

theMaxedout.zip

A summary field can do that. If you need the result as a calculation, in order to base a relationship upon it, you can use the GetSummary() function.

"I want to find the Maximum Record ID"

If the Record ID is auto-entered, and they are sequential, then the "maximum" record ID will be the last record when the found set is unsorted.

Or am I missing something?

  • Author

Thanks for the help!!!

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.