December 6, 200520 yr I need to write a script to populate a layout with records, hiding duplicates. My records have a field that can be the same across several records and I want to show only one instance of this field rather than all records. How can I do this in a script? Thanks
December 6, 200520 yr There are many many examples and posts on here about finding duplicates, deleting duplicates, etc. Do a search and you will come across many posts. Here is the jist of it, but I would still suggest you do a search and look at past posts. 1. Show all records that you want to check 2. Sort it by the field you want to check if its a duplicate 3. Perform a loop script where it goes something like this: Go to Record [First] Set Variable [$DupCheck; fieldWhatever] (Set a global field if Using FM7 or prior versions) Go to Record [Next] Loop If [fieldWhatever = $DupCheck] Omit Record Else Go to Record [Next; Exit After Last] End If End Loop
Create an account or sign in to comment