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!

How to SUM an Unbound textbox??

Status
Not open for further replies.

cglisc

Programmer
Nov 15, 2001
45
CY
Hello,

Is there a way to sum an **unbound** textbox on an access
report? For example, I have textbox text1 in the
detail area, with the control source being a calculated
value. If I have text2 in the report footer, with
control source =SUM(text1), this does not work.
Access brings up the "Enter parameter value for text1"
window.

Any ideas would be greatly appreciated.

Thanks,
Chris
 
You can't perform an aggregate function on an unbound control. You have to recalculate the value, then sum it. So, if the control source for the text box in the detail section was:
Code:
=[field1] + [field2]
then the control source for the report footer control would be something like this:
Code:
=Sum([field1] + [field2])
Let me know if this helps.....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top