94Sport5sp
Registered User.
- Local time
- Today, 11:14
- Joined
- May 23, 2012
- Messages
- 115
[FONT=Arial, sans-serif]Hi::[/FONT]
[FONT=Arial, sans-serif]I started my project several month back to relearn Access after being away from Access for many years. One of my original question was about storing a calculated value and after some discussion I decided to store the value. Now I need to revisit this decision. [/FONT]
[FONT=Arial, sans-serif]I receive, after the fact, sales information which I import, add some extra information, and produce some meaningful reports. For the most part I am happy with my results. There is one area that I am doing circles on and hence my question.[/FONT]
[FONT=Arial, sans-serif]The area in question deals with stock on hand. This represent the quantity on hand by product group by sales day. The value to calculate is the quantity on hand at the end of the day which will then be used as the opening quantity for tomorrow. [/FONT]
[FONT=Arial, sans-serif]So the question becomes:[/FONT]
[FONT=Arial, sans-serif]Option 1: Should I store this end of day quantity and then run a query, or a dlookup, to find yesterdays end of day quantity to calculate todays end of day quantity?[/FONT]
[FONT=Arial, sans-serif]or[/FONT]
[FONT=Arial, sans-serif]Option 2: Should I create some starting amount and then run a query to calculate yesterdays end of day quantity?[/FONT]
[FONT=Arial, sans-serif]The basic structure for the stock table is:[/FONT]
[FONT=Arial, sans-serif]SalesArea(fk)[/FONT]
[FONT=Arial, sans-serif]DateOfSale[/FONT]
[FONT=Arial, sans-serif]ProductId(fk)[/FONT]
[FONT=Arial, sans-serif]ProductAdded[/FONT]
[FONT=Arial, sans-serif]ProductTransfered[/FONT]
[FONT=Arial, sans-serif]PhysicalCount[/FONT]
[FONT=Arial, sans-serif]There are other supporting tables from which the fk's draw their information and I can include layouts on them if needed. [/FONT]
Thanks
[FONT=Arial, sans-serif]I started my project several month back to relearn Access after being away from Access for many years. One of my original question was about storing a calculated value and after some discussion I decided to store the value. Now I need to revisit this decision. [/FONT]
[FONT=Arial, sans-serif]I receive, after the fact, sales information which I import, add some extra information, and produce some meaningful reports. For the most part I am happy with my results. There is one area that I am doing circles on and hence my question.[/FONT]
[FONT=Arial, sans-serif]The area in question deals with stock on hand. This represent the quantity on hand by product group by sales day. The value to calculate is the quantity on hand at the end of the day which will then be used as the opening quantity for tomorrow. [/FONT]
[FONT=Arial, sans-serif]So the question becomes:[/FONT]
[FONT=Arial, sans-serif]Option 1: Should I store this end of day quantity and then run a query, or a dlookup, to find yesterdays end of day quantity to calculate todays end of day quantity?[/FONT]
[FONT=Arial, sans-serif]or[/FONT]
[FONT=Arial, sans-serif]Option 2: Should I create some starting amount and then run a query to calculate yesterdays end of day quantity?[/FONT]
[FONT=Arial, sans-serif]The basic structure for the stock table is:[/FONT]
[FONT=Arial, sans-serif]SalesArea(fk)[/FONT]
[FONT=Arial, sans-serif]DateOfSale[/FONT]
[FONT=Arial, sans-serif]ProductId(fk)[/FONT]
[FONT=Arial, sans-serif]ProductAdded[/FONT]
[FONT=Arial, sans-serif]ProductTransfered[/FONT]
[FONT=Arial, sans-serif]PhysicalCount[/FONT]
[FONT=Arial, sans-serif]There are other supporting tables from which the fk's draw their information and I can include layouts on them if needed. [/FONT]
Thanks