Roger,
"Usually" calculations aren't saved in a table. The "elements" of the
calculation are saved, and the calculation is performed "on the fly" in
subsequent forms/queries/reports...
However, there are legitimate reasons to save the results of a
calculation. An example would be
Price*Qty = LineTotal
where the Price may change in the future and you want that result saved in
the "historical" record.
Anyhoo... using this example, add a field to your table called LineTotal
to your table, and on the AfterUpdate event of BOTH Price and Qty...
[LineTotal] = [Price] * [Qty]
On your form, you can keep the unbound field with =Price*Qty to display
(only) the calculation or use the new field Line Total instead.
hth
Al Camp
Roger said:
I have an unbound text box that makes a calculation and I want to save
it
as
part of the record in the table. Was easy in 97 but now in 2002 and SQL
server wont work the same way. Any help would be appreciated.
Roger