L
larpup
I have a table (TABLE1) with a compound key (two fields). A CustomerID
field and an Order Number field. (Parent Table) The Order Number Field
is provided by the Customer. Customers do have same order numbers.
I have another table (TABLE2) that need be linked to the first table.
(Child Table)
The way I would do this in my old database is;
1. Have a form based on TABLE 1 with fields from TABLE 2 also on the
form.
2. After both key fields (from TABLE 1) are entered into the form, I
would have a hidden field concatenating both fields of the compound
key. This field would be linked to an indexed field in TABLE 2. (The
reason is that order numbers can be duplicated in this database. By
concatenating Order Number with the CustomerId field, it creates
uniqueness.)
What is the best way to accomplish this in Access without having a
concatenated field in TABLE 1 (which I need to link to TABLE 2) and how
would I link them?
Lar
field and an Order Number field. (Parent Table) The Order Number Field
is provided by the Customer. Customers do have same order numbers.
I have another table (TABLE2) that need be linked to the first table.
(Child Table)
The way I would do this in my old database is;
1. Have a form based on TABLE 1 with fields from TABLE 2 also on the
form.
2. After both key fields (from TABLE 1) are entered into the form, I
would have a hidden field concatenating both fields of the compound
key. This field would be linked to an indexed field in TABLE 2. (The
reason is that order numbers can be duplicated in this database. By
concatenating Order Number with the CustomerId field, it creates
uniqueness.)
What is the best way to accomplish this in Access without having a
concatenated field in TABLE 1 (which I need to link to TABLE 2) and how
would I link them?
Lar