I have two entries on an Invoice form: PRICE and QUANTITY (as well as the INVOICE NUMBER).
In creating a new INVOICE I am pulling in a product's PRICE from a table (though the price may change down the road). On the same form I am entering the QUANTITY of the item being bought. I would like to store the resultant COST (PRICE X QUANTITY) in a table containing the INVOICE NUMBER, QUANTITY, PRODUCT, and COST.
Any suggestions as to how I might enable the data entry person to just enter the PRICE and QUANTITY on the form, yet record both QUANTITY and COST along with the Invoice Number in an INVOICE TABLE?
Note, the prices of the products change over time, so the INVOICE's record must reflect the COST of the product at the time it was issued (and not change later just because the price changes).