Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum three fields "on the fly" & place results on form 2

Status
Not open for further replies.

Sherman6789

Programmer
Nov 12, 2002
127
US
Is there a simple way to have three fields automatically calculated (summed) with the results displayed on a form. The results will be "on the fly" and not stored. The answer will change whenever any of the three fields are changed. The reports will do all of the other calculations and reports.

Thanks for any help you can give.
 
Create a textbox, label, etc. and set its ContorlSource property to
Code:
=[[i]Field1[/i]]+[[i]Field2[/i]]+[[i]Field3[/i]]


-V
 
Or:
Code:
=Val([Field1])+Val([Field2])+Val([Field3])

so you get 5 + 6 + 7 = 18 rather than = 567

Greg
"Personally, I am always ready to learn, although I do not always like being taught." - Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top