My problem is trying to get a REPORT from my ORDERS QUERY when a
customer orders from either PRODUCT TABLE. So far it's only picking up
from [PRODUCTS] and not [SAFE PRODUCTS]. The reason I have two
products tables is because the Safe Product tables require additional
information such as Weight, Height, Legnth, etc, that are not related
to the first products table.
This sounds like a good case for "Subclassing". Consider having all
your products in [PRODUCTS], with those fields that are in common
between the general products and the SAFE products; change the
structure of the SAFE PRODUCTS table to include just the PRODUCT ID as
the primary key, and the additional fields pertaining only to SAFE
PRODUCTS. In the relationships, join the two tables' PRODUCT ID,
dragging it from [PRODUCTS] to [SAFE PRODUCTS]; this will establish a
one to one relationship.
Now you'll have a record for every product in the PRODUCTS table and
can generate your report. If the report needs to display fields from
[SAFE PRODUCTS] you can include it in the report's recordsource query,
using a LEFT OUTER JOIN to display all records in PRODUCTS and
matching records in [SAFE PRODUCTS].
John W. Vinson [MVP]