Question Store Current price of item

rambo12

Registered User.
Local time
Today, 14:11
Joined
Jan 24, 2009
Messages
13
Hi,

I have a table holding all product information like its price.

I also have a table for orders & order lines. How can i store the price of the product at the time of ordering inside the order line table so that they do not change when the product table is updated i.e price increases?

Could someone point me in the right direction and tell me what im looking for?

Thanks
 
Hi,

I have a table holding all product information like its price.

I also have a table for orders & order lines. How can i store the price of the product at the time of ordering inside the order line table so that they do not change when the product table is updated i.e price increases?

Could someone point me in the right direction and tell me what im looking for?

Thanks
In my orderline records I store the quantiy and the Unit price at the time of ordering. Other details such as description can be got from a link to the products table. Infact I populate the orderline.UnitPrice from the products table but by doing it this way I can always calculate the actual price regardlss of later changes.
 
how do you store the unit price at time of ordering. Sorry not very good in access
 
Hi,

I have a table holding all product information like its price.

I also have a table for orders & order lines. How can i store the price of the product at the time of ordering inside the order line table so that they do not change when the product table is updated i.e price increases?

Could someone point me in the right direction and tell me what im looking for?

Thanks


Have you looked at the Northwind sample database that comes with Access? It shows a way to do this.

I have attached a copy just in case you need it.
 

Attachments

got it... thanks guys. Found the example and put together my own code and it worked!!!

thanks
 

Users who are viewing this thread

Back
Top Bottom