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.

AutoEnter Ascending number in to a field (ranking)

Featured Replies

I have searched for help on this with no results. Using WINDOWS and FMP 6.0v4.

Here is the situation: I have a database with 419 records, and four fields: "Names", "number of push-ups", "Grade" and "Ranking".

After I do a find for the students I am looking to number. I would like to write a script that would go to the

If your file is single-user, then

Go to Record/Request/Page [First]

Replace [No dialog, Ranking, Serial numbers]

should work, where you select 'Custom values' under 'Replace with serial numbers' and use the default 1, 1.

If it's multi-user,

Go to Record/Request/Page [First]

Set Field [gNum, 1]

Loop

Set Field [Ranking, gNum]

If [status(CurrentError)]

{perform action if record is in use by another user}

End If

Set Field [gNum, gNum + 1]

Go to Record/Request/Page [Exit after last, Next]

End Loop

where gNum is a global number field and the action can be appending the current serial to a global field, a warning message to the user that the process can't be completed, or something similar.

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.