On Mon, 22 Dec 2008 06:31:01 -0800, just a little rusty wrote:
[Quoted Text] > The below formula works great but, what if I want the total from this > formula to report into my table? For example: > > =[QTY]*[Price Per Unit] > > Price: 5.00 > Qty: 2 > Total: 10.00 > > The Price and Qty will report to my table but no sum. I know what is > wrong I have a formula in the control field. But how do I get both the > heading of the table and the formula to work in the control field at the > same time? It has been a wile sence i took this in school and my mind > is starting to get a little rusty. This is proby going to be a simple > fix and ill feel stupid for asking when i get the answer. Thanks
The correct answer is "you don't". Derived data should not be stored, but rather calculated on-the-fly as needed (just as you are in your form).
If you don't want to re-write that expression over and over create a SELECT query that is basically all of the fields from your table plus an additional one with the calculation in it. Then just use that query every place you would otherwise have used the table.
-- Rick Brandt, Microsoft Access MVP Email (as appropriate) to... RBrandt at Hunter dot com
|