User manual
Table Of Contents
- Preface Learning how to use FileMakerPro
- Chapter 1 FileMaker Pro basics
- Chapter 2 Adding and viewing data
- Chapter 3 Finding and sorting information
- Finding records
- Finding text and characters
- Finding exact matches in text fields
- Finding numbers, dates, and times
- Finding ranges of information
- Finding data in related fields
- Finding records that match multiple criteria
- Finding empty or non-empty fields
- Finding duplicates
- Finding all records except those matching criteria
- Hiding records from a found set and viewing hidden records
- Viewing, repeating, or changing the last find
- Sorting records
- Finding records
- Chapter 4 Previewing and printing information
- Chapter 5 Creating a database
- Chapter 6 Creating and managing layouts and reports
- Chapter 7 Customizing layouts
- Chapter 8 Working with related files
- Chapter 9 Protecting databases with passwords and groups
- Chapter 10 Creating scripts to automate tasks
- About scripts
- Creating scripts: an overview
- About ScriptMaker steps
- Control script steps
- Navigation script steps
- Sort, find, and print script steps
- Editing script steps
- Fields script steps
- Records script steps
- Windows script steps
- Files script steps
- Spelling script steps
- Open Menu Item script steps
- Miscellaneous script steps
- Changing scripts
- Duplicating, renaming, or deleting scripts
- Importing scripts
- Listing scripts in the Scripts menu
- Using buttons with scripts
- Example of a ScriptMaker script
- Chapter 11 Using formulas and functions
- Chapter 12 Importing and exporting data
- Chapter 13 Sharing databases on a network
- Chapter 14 Publishing databases on the Web
- About publishing databases on the Web
- How users work with databases on the Web
- What you need to publish databasesontheWeb
- Publishing databases on the Web: an overview
- Enabling FileMaker Pro Web Companion
- Configuring FileMaker Pro WebCompanion
- Enabling Web Companion sharing
- Setting up browser views
- Testing your published database
- About browser views for web publishing
- Chapter 15 Using ODBC with FileMakerPro
- Appendix A Customizing FileMaker Pro
- Appendix B Backing up and recovering files
- Appendix C FileMaker Pro Quick Reference (Windows)
- Appendix D FileMaker Pro Quick Reference (Mac OS)
- Index
10-14
FileMaker Pro User’s Guide
The Seminar file contains records of clients who register for a
seminar. Each client has a unique identification code, the Client ID
field, which is a concatenation of the clients’ last name and phone
number. Some records contain the same identification number—
these are the duplicate records you want to find.
Tip If your database doesn’t have a unique identification field, define
a calculation field to create one from existing fields. For example,
combine first name, last name, and birthday to create a unique
identification for each client.
2. Add two fields.
Define these fields in the Seminar file:
1 A text field, called Mark. When the script finds a duplicate record,
it places an x in this field to mark the record.
1 A global field, called Global, to store the unique identification
while comparing records. Global should be the same data type as the
Client ID field.
3. Display the Mark field.
Create a layout that displays the Mark field, or add the field to an
existing layout. You’ll use this layout to store Find settings in the
following step.
4. Store settings.
Store Sort and Find settings for the script.
5. Define the script.
In ScriptMaker, define the Find Duplicates script.
When you perform the Find Duplicates script:
1. It finds all records, and then sorts them by the ClientID field so
that records with the same ClientID are grouped together.
2. Starting with the first record, the script copies the value from the
ClientID field into the Global field.
3. The script goes to the next record and compares the value in
ClientID with the value in Global.
1 If the values match, the record is a duplicate and the script puts an
x in the Mark field.
To store this setting Do this
Sort In Browse mode, choose Sort from the Mode menu.
If fields appear in the Sort Order list, click Clear All.
Click ClientID, choose Ascending order, click Move,
and then click Done.
Find Choose a layout that displays the Mark field. In Find
mode, type x into the Mark field, and then switch to
Browse mode. (You don’t have to perform the find
request.)
aaa
Client ID
Record 5
Client ID
Mark
aaa
Global
aaa
Client ID
Record 4
Client ID
Mark
aaa
Global
aaa
Client ID
Record 3
Client ID
Mark
aaa
Global
aaa
Client ID
Record 2
Client ID
Mark
aaa
Global
aaa
Client ID
Record 1
Client ID
Mark
aaa
Global