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.

Marking the first of duplicate records

Featured Replies

  • Newbies

My data consists of street names, like "Kingston Hwy" or "Nelson Rd." There can be multiple records with the same street name; for example, 36 records with "Kingston Hwy."

I need to keep the database unsorted so that its original order is preserved. (I could create a new field and fill it incrementally so that the database could be resorted using the new field to return it to its original order.)

Can I create a new field called UNIQUE that will mark (with a character) every unique street name? For duplicates, it's okay for it to mark the first record among the duplicates.

So for the 36 records of "Kingston Hwy," one record would be populated with an X in the UNIQUE field.

How can I do this?

Basically you want to do this:

http://filemaker.custhelp.com/cgi-bin/filemaker.cfg/php/enduser/std_adp.php?p_faqid=3441

(Although I'd use a variable rather than a global.)

Don't worry about the sort order, you can always un-sort the records when you're done.

  • Author
  • Newbies

Thank you, Tom. That did the trick. It was my first time working with scripting and boy oh boy did I ever learn a thing or two. I can now see that the script for finding duplicates will also help me in indexing map street names.

That problem is one where there are multiple Main Streets, each with a different grid coordinate (A3, B3, B4...etc.). I'd like to consolidate those into one entry, such as Main St...A3, B3, B4.

I'm going to explore that with ScriptMaker.

Thanks again.

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.