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.

Help finding last record

Featured Replies

I have the following.

Category......StartPage#

Jazz..........1

Jazz..........1

Blues.........2

Blues.........3

Rock..........4

Rock..........5

I need to populate a new field that will contain the ending page number of the category. I’m not sure whether this requires a script that populates a global field or just a calculation field.

The end result would look like this.

Category....StartPage#....EndPage#

Jazz........1.............1

Jazz........1.............1

Blues.......2.............3

Blues.......3.............3

Rock........4.............6

Rock........5.............6

Rock........6.............6

Thanks in advance for any help.

Edited by Guest

Start with the last record and loop your way up with a script like this:

Sort // in the order of your example

Go to record (last)

Set variable ($cat ; "")

Loop

. If ($cat <> category)

.. Set variable ($cat ; category)

.. Set variable ($page ; StartPage)

. End If

. Set field (EndPage ; $page)

. Go to record (previous, exit after last)

End Loop

You could also create a self join

Tables:

Table 1

Table Selfjoin

(the relationship would be Category =Category) and sort descending by Start Page#

Then if you show Table Selfjoin::StartPage, you'll see the highest page#.

I'm attaching an example.

Hope this works :

Martha

test.fp7.zip

Yet another way would be to use the Max function.

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.