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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically updating totals

Status
Not open for further replies.

CAFCrew

Programmer
Jan 5, 2005
58
GB
I am currently trying to develop an access database. I need to build a field that will automatically sum the total of two seperate fields. Has anyone got some code / steps that will help me do this?

Thanks for your help in advance

Cafcrew :D
 
put "= [fldNme1] + [fldNme2]" in the control source of your text box.

fldNme1 and 2 are the names of your text boxes you want to be summing...

--------------------
Procrastinate Now!
 
its returning "#Name?" i have values in both fields i want, and they are both number fields. Any ideas?

Thanks
 
that works fine for me...

are you sure you've typed in the correct field names?

--------------------
Procrastinate Now!
 
i typed them exactly as they appeared but it wouldn't work. I am now using the query builder using the same fields and its working!

Thanks for your help :D

 
the names of the text boxes as you've called them on the form...

--------------------
Procrastinate Now!
 
yup. i was just typing the names of the boxes into the source control, but it didn't seem to like it. Its all working now though so thanks very much :D
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top