Find Duplicates without Extra Fields

Version 2

     

    Script

     

    Compatibility
    Creator
    Mac OS X, Windows
    Todd Duell
    FMP 7, 8, 8.5, 9, 10, 11
    Formulations Pro
    Web: No
    File Type: FP7
    Server: Yes
    FileSize: ~ .5 megabytes
    http://www.formulationspro.com

    Description

    Duplicate records are the scourge of any database. As developers we are constantly reminded about the need to create security controls and user interfaces that eliminate duplicate records. Since there is really no way to prevent users from creating duplicate records without extreme controls, which creates a whole different set of data entry hostility issues, you need to create a method to find duplicate records. With FileMaker Pro 7 you no longer need any extra fields to mark records or calculations that concatenate fields together to create duplicate record criteria. The entire process can now be self-contained within two basic scripts. For more advanced developers you can also allow the users to dynamically define the duplicate record criteria.

     


    Code
    See sample file

     

    Sample Input

    Sample Output


    Developer's Notes

    See sample file for full demo and technical article.

     


    FileMaker Inc. provides this content on an “As Is” basis, without any warranty, and subject to the terms of the FileMaker Technical Network Agreement. FileMaker makes no representations and is not liable for any content or related information. You may use the content as part of your own solutions and for your customers, but you may not otherwise publicly distribute any content that you did not submit. ©2009-2011 FileMaker, Inc. All Rights Reserved. FileMaker is a trademark of FileMaker, Inc. registered in the U.S. and other countries.