|
Question : Calculated Fields
|
|
I have a simple question but I can't seem to find the answer anywhere.
I would like to create a field in a table and have the contents be calculated by simple arithmetic on other fields in the same record. (I know I can use unbound controls on reports, etc, but I really want the form in the table.)
For example, I might have fields [ListPrice] and [SellingPrice] and [Markup], where [Markup] is calculated by the difference between [SellingPrice] and [ListPrice].
This is such a simple request; I can't imagine why I can't seem to find the answer.
Thanks,
Ken
|
|
Answer : Calculated Fields
|
|
Just use the above SELECT and change the querytype to an Update query with the calculation in the newly created Update-cell. The SQL will look like: update tableX set y = field1 - field2;
Nic;o)
|
|
|
|