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.

Deleting Duplicates

Featured Replies

I have a student database based on student ID. I would like to search the db and delete duplicates. Trying to think this out. Not very experienced. How about this.

Go to field StudentID

Insert !

Find

Now I have all the duplicates

Can I have the script delete every second record?

Thanks for your help in Advance

Also, the FM 5.0 and 5.5 manual uses this problem as its sample script example. I don't know if it is also in the 6.0 manual.

Steve Brown

  • Author

I am working with andy's FindDuplicates solution. Thanks andy. I have it all set up but am getting all 1s in the Count in last Record field. I can see the duplicates in the other field. Any idea why this is so? I have been working with it for awhile. When I do get 0s can I just delete them?

Thanks in Advance

norm

you need a couple of extra fields

Global_Mark

Flag_to_Delete

Script

Goto Record(first)

Set Field (Global_mark,StudentID)

Loop

Goto Record Next(exit after last)

if(studentid=Global_Mark)

set field (flag to delete,"x")

else

Set field (global_mark,StudentID)

end if

end loop

Make sure you sort your db by studentID before running script. Then just delete all the records that have an x in the flag to delete field

Stu

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.