You must use the name of a field in the Sum function, you cannot use the
name of a control. So, use the Control Source name from T1Calories textbox
in the Sum function:
=Sum([NameOfField])

Signature
Ken Snell
<MS ACCESS MVP>
> Hi, I have a continuous form with a calculated textBox in the form detail
> (T1Calories), I want to create a textbox in the header (TotalCalories) to
[quoted text clipped - 4 lines]
>
> If somebody can help me I would appreciated.
Orlando - 27 May 2007 00:44 GMT
Hi Ken,
The problem is that T1Calories is a calculated field I have this formula
=([MealQuantity]*[Calories])/[MesurementQuantity] in the control source of
T1Calories
Thanks
Ken Snell (MVP) - 27 May 2007 01:10 GMT
Then put that whole expression in the Sum function:
=Sum(([MealQuantity]*[Calories])/[MesurementQuantity] )

Signature
Ken Snell
<MS ACCESS MVP>
> Hi Ken,
>
[quoted text clipped - 3 lines]
>
> Thanks