User manual

Table Of Contents
Chapter 3
|
Working with related tables and files 75
In this example, the Tour Date fields in the Tours table and the Clients
table are match fields. If a record in the Tours table has a Tour Date
value of 12/11/2004, all the records in the Clients table with a Tour
Date value of 12/10/2004 or earlier are related to it. In the Clients
table, if a record has a Tour Date value of 12/11/2004, all records in
the Tours table with Tour Date values of 12/12/2004 or later are
related to it.
Relationships that return a range of records
A relationship that returns a range of records is similar to a multi-
criteria relationship, except that you use comparative operators to find
records that are greater than one of your criteria and less than your
other criteria. This type of relationship is commonly used to return
records that fall between a range of dates or serial numbers.
For example, from within Table E you want to view all the records in
Table F that have Date Field F values that are greater than Starting
Date E values and less than Ending Date E.
This relationship returns those records from Table F that have a Date
Field F value that is later than Starting Date E and earlier than Ending
Date E.
For example:
Values in the left match field are greater than or equal to
values in the right match field
x All records in the left table are matched to all records in
the right table, regardless of the values in the match
fields
Relational operator Matches these records
Greater than relational operator
Match field
Match field
If fields
Contain values
These related records are
returned from Table F
Starting Date E 11/01/2005 11/14/2005
11/27/2005
Ending Date E 12/01/2005
Match field
Match fields
Indicates that several
different relational operators
are used in this relationship
This relationship uses the greater than
and less than relational operators