expressions in forms

E

Expressions

I created an expression in one my fields in the form design view. However
this data does not convert into my table? any suggestions?
 
W

Wayne Morgan

Except for special circumstances, if you can calculate it, don't store it.
Just calculate it when you need it. This can be done in a form, as you've
done, a report, or in a query.
 
J

John Vinson

I created an expression in one my fields in the form design view. However
this data does not convert into my table? any suggestions?

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]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps
 
Top