S
Strasser
Situation: Orders table linked "1:many" to the junction table,
OrderDetails table.
Products table also linked "1:many" to OrderDetails table.
I think I get this.
I think I should have a unit price field in BOTH the Products table
AND the OrderDetails table,
because when the Unit price changes, the change will only be recorded
in the Products table.
That way any old OrderDetails.UnitPrice fields will not be changed.
The history (the value of OrderDetails.UnitPrice) of a unit price in
an old order will remain the same as when product was ordered.
Any NEW order will reflect the new Products.UnitPrice value.
Is this correct?
Is there any "best way" to copy the value from the Products.UnitPrice
field and "pop it into" the OrderDetails.UnitPrice field for a current
order?
I am using a macro with the SetValue macro action (I don't know VBA).
Is that OK?
I am using the "on exit" action in the Products.UnitPrice field to
trigger the copying from Products.UnitPrice to OrderDetails.UnitPrice.
Thanks in advance.
Strasser
OrderDetails table.
Products table also linked "1:many" to OrderDetails table.
I think I get this.
I think I should have a unit price field in BOTH the Products table
AND the OrderDetails table,
because when the Unit price changes, the change will only be recorded
in the Products table.
That way any old OrderDetails.UnitPrice fields will not be changed.
The history (the value of OrderDetails.UnitPrice) of a unit price in
an old order will remain the same as when product was ordered.
Any NEW order will reflect the new Products.UnitPrice value.
Is this correct?
Is there any "best way" to copy the value from the Products.UnitPrice
field and "pop it into" the OrderDetails.UnitPrice field for a current
order?
I am using a macro with the SetValue macro action (I don't know VBA).
Is that OK?
I am using the "on exit" action in the Products.UnitPrice field to
trigger the copying from Products.UnitPrice to OrderDetails.UnitPrice.
Thanks in advance.
Strasser