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!

using calculation as control source

Status
Not open for further replies.

jamaarneen

Programmer
Dec 27, 2007
212
BE

Hi
There are some threads about this, but stil cannot get it:

In the form-header of a bound form - continuous, I have a text box. I want it to give me the sum of a field.
So I'm trying to put a Sum() function as the Control source, but I'm getting an #error.

=Sum([Field 1])
Field 1 is the name of a field wat's bound to the form

Thanks for your Help
Ja


 

Yes, Duane, [Field 1] is the name of a field in the form's record source.
And, no, the name of the control is not the name of any field.

But I did something,and it is working (for now...)

I actually have more then one field. so i was triyng different ways:

for field 1 it was refering to the sum of the field itself: =Sum([Field 1]) ;
for field 2 it was triyng to sum the contents of the textboxes (bounded)on the form: =Sum([txtField 1].[text])

now I have changed the syntax of field 2. And it WORKED

Thanks anyway
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top