Alex,
You don't really need it, you just want it. As Ofer stated, it violates all
kinds of database design and normalization rules to carry a calculated value
in a database. The only exception to that is if the value will be calculated
one time when a new record is created, then that value will always be valid.
The usual example of why not to carry calculated values is a person's age.
This is a value that changes periodically. Once a person has a birthday
after the data is entered, the value in the field is now incorrect.
If you worked in a large IT shop and presented that design to a DBA, he
would have unkind things to say to you.
:
Hi Ofer
Actually I am forcing the users to use the form to update the table, they
only see the form. So no problems there. I do need the form to save that
data. I'd appreciate help with that.
Thanks
--
Alex
:
If you menage to create the calculation in the form, you can always take this
formula as another field in a query, and display that desire value.
It is not recomended to save a calculated field, you'll have to maintain it,
and it cause problem (user update the table through the table and not through
the form).
So best way will be to display this field in a query, and it will always
display the right value.
Select TableName.* , [Calculation] as ExtraField From TableName
--
I hope that helped
Good luck
:
Hi
I have setup a field on a form to do a calculation in the control source of
a field. Now I need to have that data saved to the correct field in the DB.
Could you help please.
Thanks