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
8-14
FileMaker Pro User’s Guide
Accessing related data from a third file
There may be times when you need to access values from a field
whose values are accessed from another file. You can’t directly
access a field in a file several relationships away that’s already used
as a related field in another file. However, you can define
intermediate calculation fields to access those fields that are more
than one relationship away.
Suppose you want data from a Part Name field (which is in a Parts
file) in an Invoices file. The Invoices file uses related data from a
Line Items file, and the Line Items file uses related data from the
Parts file. However, the Line Items file doesn’t use the Part Name
field from the Parts file. (The Invoices file uses other values from the
Line Items file, and the Line Items file contains some fields that the
Parts and Invoice files do not.)
Using a calculation field in this way ensures that data in that field
(Part Name in the Line Items file) changes as the value in the Part
Name field in the Parts file changes, and prevents data duplication
errors from occurring.
To access data from a third file:
1. In the intermediate file, create a new field, and make the field a
calculation field.
In the example, create a Part Name field in the Line Items file.
2. Define a formula for the new field using the syntax:
Relationship name::Related field name
Relationship name is the relationship defined from the intermediate
file (in the example, Line Items file) to the first file (Parts file).
Related field name is the name of the field in the first file whose data
you want calculated (Part Name field in the Parts file) in the
intermediate file (Line Items file).
3. Use the new calculation field as a related field in the third file.
In the example, place the related field Part Name from the Line Items
file on a layout of the Invoices file.
Note You can also define a lookup in a field in an intermediate file
to copy data from a field in a third file, when you want the data to
remain unchanged in the intermediate file. You can then use that
field as a related field in a third file. In the example, the Unit Price
field in the Line Items file is a lookup to the Unit Price field in the
Parts file. The lookup uses the Part ID relationship.
Invoice ID
Part ID
Unit Price
Quantity
Extended Price
Part Name
Line Items
Customer ID
Agent Name
Invoice ID
Order Date
Invoices
Part ID
Unit Price
Part Name
Parts
Invoice ID
relationship
Part ID relationship
Calculated field