Graham S Posted December 6, 2005 Posted December 6, 2005 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
mr_vodka Posted December 6, 2005 Posted December 6, 2005 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
Recommended Posts
This topic is 6929 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