Newbies mobileed Posted January 16, 2002 Newbies Posted January 16, 2002 I need a filemaker script that will allow me to seacrh a field for all duplicate numbers and then delete all the duplicates but leave one of the records. Thank you
Rigsby Posted January 16, 2002 Posted January 16, 2002 THIS IS THE WRONG FORUM FOR YOUR QUESTION: However,::::: The trick here is to use a relationship to find the duplicates, so for example you have a field „Surname“ the (Self) relationship is Surname::Surname Now create a field, “SNDCount” which is a calculation (number): Case (Count (Surname::Surname) > 1, Count (Surname::Surname, 0) Ok, if you place this field on your layout (just as a test) you will see how many duplicates each record has. Now you need a script: Set error capture (on) Find all Loop Find (restore) (You need to set this up to find numbers in SNDCount larger than 0) Exit loop if CurrentFoundCount =0 Goto record request (first) Goto related record (only find related) Surname Omit Delet all records End Loop
Kurt Knippel Posted January 17, 2002 Posted January 17, 2002 quote: Originally posted by Rigsby: THIS IS THE WRONG FORUM FOR YOUR QUESTION: However,::::: Moved to correct forum.
Recommended Posts
This topic is 8351 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now