Link to home
Start Free TrialLog in
Avatar of davetough
davetough

asked on

display total of three fields in one field on form

Hello,
have attached sample db- when it opens a form comes up.
I want the field [total] - to display the total of 3 other fields on the form-[size1],[height1],[weight1]

thank you
data123.accdb
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Use the following in the Control Source Property for that textbox (include the = sign):

= [size1] + [height1] + [weight1]

Just a note on the above - That will display the total in the textbox, but not actually record it in the table.

In general, derived (calculated) values like this should be calculated and displayed on an as-needed basis, not stored in the table.  Storing in the table creates redundant data, and can complicate things if any of the parts of the calculation (such as height1) changes.
Avatar of davetough
davetough

ASKER

question: is there anyway to have total calculated and also entered into table?
I realize what you are saying about redundant data- but I am also trying to provide solution that is being asked for.
but if not possible- let me know-
thank you
thinking this over- you may be right not to have entered in table- but i will leave last question stand - just for my own curiosity
thank you
ASKER CERTIFIED SOLUTION
Avatar of mbizup
mbizup
Flag of Kazakhstan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for explanation and solution
Glad to help out.