User manual

Table Of Contents
Chapter 8
Working with related files
There are times when one database file doesn’t suit all your data
management needs. Perhaps you have data in one file that you want to
use in another file. Or you’ve tried to expand a file by adding several
fields to it, and now the file’s subject has become unclear. Or you have
the same values in several files, and you’re constantly updating them
to keep them all the same. You can access data from other database
files by using relational databases and lookups.
This chapter explains how to:
1 create relational databases and lookups
1 define and change relationships between database files
1 set up advanced relational database structures, such as many-to-
many relationships
Displaying data from related files
When you have data in another file that you want to use in the current
file, you can access, display, and work with that data in two ways:
1 A relational database allows data from another file (or the same
file) to be displayed, edited, and used in the current file, without
having it copied to the current file. The data is always part of the
other file only. Data displayed in the current file changes whenever
the data in the other file changes.
1 A lookup copies data from another file into a field in the current
file. After the data is copied, it becomes part of the current file (and
remains in the file it was copied from). Data copied to the current file
doesn’t automatically change when the data in the other file changes.
To establish a connection between files for relational databases and
lookups, you first define a relationship, an expression that tells
FileMaker Pro how to match records in one file with records in
another file. Then you choose the fields that contain the data you
want to work with.
Note All files involved with relational databases and lookups must
be FileMaker Pro 5 files. (Files created with earlier versions of
FileMaker Pro may be used, but the files must be converted to
version 5 first.)
Lookups copy data from another file into the current
file, in fields that belong to the current file
R20Client ID
NY-ParisRoute
R20Client ID
NY-ParisRoute
In relational databases, data from another file is displayed
in the current file, in fields that belong only to the other file
R20Client ID
NY-ParisRoute
R20Client ID
NY-ParisRoute