Okay, so in the Control Source, if it simply says "=Sum([TotalDollars])" and
the field is not included in the Control Source, then it should work?
Rick Brandt said:
working girl wrote:
"Name of the control is not the same as the name of the field" What
does that mean exactly? The main record has the appropriate field.
As for spelling, not an issue. It's a straight copy/paste - no
possibility of typo.
If I have a TextBox named "TotalDollars" and in the ControlSource property I
enter the expression "=Sum([TotalDollars])" I will get a #NAME error
because I have named the control the same as one of the fields contained
within the ControlSource expression. That is not allowed.
No, that shouldn't work. The field named [TotalDollars] must be in the
report's recordsource, and shown on the control's Control source. How
else is it going to be able to Sum it?
Re-read Rick's message.
The NAME of the control cannot be the same as the name of a field used
in it's control source. Access will get confused and not know whether
you are referring to the Control itself, or a field of that name in
the control source.
So, look on the control's property sheet's Other tab. Name is the
first property shown. If it is "TotalDollars" change it to
"TotalDollars1" or anything else. Just not "TotalDollars".