14.10.2013 Views

FileMaker Pro 4.1 Mac User's Guide

FileMaker Pro 4.1 Mac User's Guide

FileMaker Pro 4.1 Mac User's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

5-34 <strong>FileMaker</strong> <strong>Pro</strong> User’s <strong>Guide</strong><br />

Finding duplicate records<br />

In this example, a travel agency uses a registration database to track<br />

clients who sign up for a cruise seminar. The database contains duplicate<br />

records because some clients called the travel agency to sign up and also<br />

mailed in a registration form for the same seminar.<br />

The following sections explain how to set up a database and define a<br />

script to find duplicate records.<br />

Note For this example, you should understand global fields (see<br />

“Defining global fields” on page 2-9) and know how to define fields (see<br />

“Defining database fields” on page 2-3.)<br />

Example step 1: Create a unique value for each record<br />

The Seminar file contains records of clients who register for a seminar.<br />

Each client has a unique identification number, the Client ID field. Some<br />

records contain the same identification number—these are the duplicate<br />

records you want to find.<br />

Tip If your database doesn’t have a unique identification field, define a<br />

calculation field to create one from existing fields. For example,<br />

combine first name, last name, and birthday to create a unique<br />

identification for each client.<br />

Example step 2: Add two fields<br />

Define these fields in the Seminar file:<br />

1 A text field, called Mark. When the script finds a duplicate record, it<br />

places an x in this field to mark the record.<br />

1 A global field, called Global, to store the unique identification while<br />

comparing records. Global should be the same data type as the Client<br />

ID field.<br />

Example step 3: Display the Mark field<br />

Create a layout that displays the Mark field, or add the field to an<br />

existing layout. You’ll use this layout to store Find settings in the<br />

following step.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!