Jump 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.

Delete every record in a table after the 40th record

Featured Replies

Bit of a strange one. I run an import from an external source which gives me around 260-270 records.

i am always only interested in the first 40 records.

The import is scripted. Is there an easy way to add into the script a command to delete every record after the 40th record? I am not quite sure how I would go about this other than going to the 41st record, delete record, and looping.

Is there a way to omit all records after 40 then show omitted, delete all ??

Thanks

Ed

How about:

Show all records

Go to Record [ First]

Omit Multiple [40]

If [ Get ( FoundCount ) ]

Delete All Records

End If

  • Author

Omit Multiple... New one for me but works great thanks!

What is the reason for IF(Get (foundcount)) in the script?

If there are only 30 records for example, there will no found set, so no point in trying to delete.

Does the sort order matter? I mean, which 40 to keep is determined by creation order?

I just assumed because the OP said first 40 records in each table.

Create an account or sign in to comment

Important Information

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

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.