Performing a Calculation on two fields

Troogroove

Registered User.
Local time
Today, 13:08
Joined
Dec 11, 2006
Messages
10
This is going to be a simple one for someone, but it is proving to be a pain for me. I have two collums in a table, one that is a value another is a quantity, i have another field that totals the two fields. This works fine and shows the total but it does not store the total into the database, how can i get it to do this.

In the Total field the control source is "=[Cost]*[Quantity]" i have tried to set it too TotalCost=[Cost]*[Quantity] but this gives me errors

Thanks for looking
 
The simple answer is that you don't store it. Just calculate the value in a form or query any time you need it.
 
neileg's answer is correct but so brief you might be confused. The rest of the story is that anytime you need the computation, use the query as your recordsource rather than the table. Because whatever takes a recordsource usually doesn't know or care that you were using a query or a table. BOTH are perfectly valid recordsources. And with exceedingly rare exceptions, you never EVER store a computed value in a table.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom