User manual
Table Of Contents
- Preface Introducing FileMaker Pro
- Chapter 1 Using databases
- About database fields and records
- Opening files
- Opening multiple windows per file
- Closing windows and files
- Saving files
- About modes
- Viewing records
- Adding and duplicating records
- Deleting records
- Entering data
- Finding records
- Making a find request
- Performing quick finds based on data in one field
- Finding text and characters
- Finding numbers, dates, times, and timestamps
- Finding ranges of information
- Finding data in related fields
- Finding empty or non-empty fields
- Finding duplicate values
- Finding records that match multiple criteria
- Finding records except those matching criteria
- Deleting and reverting requests
- Viewing, repeating, or changing the last find
- Hiding records from a found set and viewing hidden records
- Finding and replacing data
- Sorting records
- Previewing and printing databases
- Automating tasks with scripts
- Backing up database files
- Setting preferences
- Chapter 2 Creating databases
- Chapter 3 Working with related tables and files
- Chapter 4 Sharing and exchanging data
- Sharing databases on a network
- Importing and exporting data
- Saving and sending data in other formats
- Sending email messages based on record data
- Supported import/export file formats
- ODBC and JDBC
- Methods of importing data into an existing file
- About adding records
- About updating existing records
- About updating matching records
- About the importing process
- Converting a data file to a new FileMaker Pro file
- About the exporting process
- Publishing databases on the web
- Chapter 5 Protecting databases with accounts and privilege sets
- Chapter 6 Converting FileMaker databases from previous versions
- Index
Chapter 3
|
Working with related tables and files 73
Use a single-criteria relationship when you want to relate two tables
based on a single common value, such as a serial number or an ID
number. For example, a clients database has two tables: Clients, which
stores names and addresses, and Phone Numbers, which stores phone
numbers and types of phone numbers, such as work, home, fax, and
so on. The data is split between two tables because a single client can
have multiple phone numbers.
The tables have the following fields:
The Client ID field is the match field in the relationship between the
two tables. In the Clients table, the Client ID field is set to
automatically enter a serial number, giving each record in the Clients
table a unique ID number. In the Phone Numbers table, the Client ID
is just a simple number field.
Because the relationship is defined to allow the creation of related
records in the Phone Numbers table, the Client ID number from a
Clients record will be automatically inserted in the Client ID field in
the Phone Numbers table in each new related record. This allows
many records in the Phone Numbers table to be related to a single
record in the Clients table.
Users will be able to enter a phone number in an empty portal row, and
FileMaker Pro will automatically create a related record for that phone
number.
Multi-criteria relationships
In a multi-criteria relationship, you increase the number of match
fields, which increases the criteria that FileMaker Pro evaluates before
successfully joining related records. In a multi-criteria relationship,
FileMaker Pro compares the values from each match field on each
side of the relationship in the order in which the fields appear. This is
known as an AND comparison; to match successfully, every match
field must find a corresponding value in the other table.
Use a multi-criteria relationship when you want to relate two tables
based on more than one common value, such as a client ID and a date.
Table Field name Comment
Clients Client ID Number field, auto-enter serial
number. Match field for the Clients
table
First Name Text field
Last Name Text field
Address1 Text field
Address2 Text field
City Text field
State Text field
Phone Numbers Phone Number Text field
Phone Number Type Text field
Client ID Number field. Match field for the
Phone Numbers table
Enter a phone number in empty portal row
Portal