I create a calculation within a form, but it won't go to table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I trying to add data within a form which I can do, but then the data does not
show up in the table. What am I doing wrong?
 
Calculated values shouldn't be stored. As fellow Access MVP John Vinson
likes to say "Storing calculated data generally accomplishes only three
things: it wastes disk space, it wastes time (a disk fetch is much slower
than almost any reasonable calculation), and it risks data validity, since
once it's stored in a table either the Total or one of the fields that goes
into the total may be changed, making the value WRONG."

Do the calculation in a query, and use the query wherever you would
otherwise have used the table.
 
On Fri, 10 Mar 2006 06:55:27 -0800, Vinnie V <Vinnie
I trying to add data within a form which I can do, but then the data does not
show up in the table. What am I doing wrong?

Attempting to store the calculation in a table in the first place.

Storing derived data such as this in your table accomplishes
three things: it wastes disk space; it wastes time (almost
any calculation will be MUCH faster than a disk fetch); and
most importantly, it risks data corruption. If one of the
underlying fields is subsequently edited, you will have data
in your table WHICH IS WRONG, and no automatic way to detect
that fact.

Just redo the calculation whenever you need it, either as a
calculated field in a Query or just as you're now doing it -
in the control source of a Form or a Report textbox.


John W. Vinson[MVP]
 
Back
Top