H
hp9500
Hi,
I have an orders and an order details table with a one to many relationship
based on a work order ID. I also have a location information table that
includes addresses; the location name is the primary key in this table. The
Order details table lists the A location and Z location for each order in
separate fields that are indexed and allow duplicate values. I query my
location information table via a combo box when users select the A and Z
location fields of the order details table in an order form.
I am designed a separate form based on the orders table with a subform for
the order details table. I am trying to display the location information
that accompanies both the a and z location fields in two more separate
subforms from the main form. For example, if the A loc is Philadelphia and
the Z loc is Los Angeles, one subform below will list the address in
Philadelphia and another subform below will list the address in Los Angeles.
I can't seem to create a one-to many relationship because the location name
in the loc info table is the one side of the relationship but both the A loc
and Z loc are the many side and they are in the same table. I can't embed
the location info subforms in the order details subform in order to use the
link master/child fields options b/c the order details subform is a
continuous form. The loc a and loc z info subforms are also continuous
forms b/c there may be several order detail records to an order and each
order detail record may pertain to different a and z locations. So there may
be a subform listing two or three rows of detail records and two other
subforms that list several rows of addresses each. I'm not sure how to
approach this; whether I can use queries, macros or code to achieve the
form's design goals or I need figure out how to build the correct
relationships. All help is gratefully appreciated.
I have an orders and an order details table with a one to many relationship
based on a work order ID. I also have a location information table that
includes addresses; the location name is the primary key in this table. The
Order details table lists the A location and Z location for each order in
separate fields that are indexed and allow duplicate values. I query my
location information table via a combo box when users select the A and Z
location fields of the order details table in an order form.
I am designed a separate form based on the orders table with a subform for
the order details table. I am trying to display the location information
that accompanies both the a and z location fields in two more separate
subforms from the main form. For example, if the A loc is Philadelphia and
the Z loc is Los Angeles, one subform below will list the address in
Philadelphia and another subform below will list the address in Los Angeles.
I can't seem to create a one-to many relationship because the location name
in the loc info table is the one side of the relationship but both the A loc
and Z loc are the many side and they are in the same table. I can't embed
the location info subforms in the order details subform in order to use the
link master/child fields options b/c the order details subform is a
continuous form. The loc a and loc z info subforms are also continuous
forms b/c there may be several order detail records to an order and each
order detail record may pertain to different a and z locations. So there may
be a subform listing two or three rows of detail records and two other
subforms that list several rows of addresses each. I'm not sure how to
approach this; whether I can use queries, macros or code to achieve the
form's design goals or I need figure out how to build the correct
relationships. All help is gratefully appreciated.