473,387 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

SUM in form footer !

I have a continuous form with 2 fields OPBAL and INIT_BAL as the
control source.

In the form footer, for their totals I have 2 text boxes having
=Sum([OPBAL]) and =Sum([Init_Bal]) as their control source.

This works fine !
If however, on the form I change the name of the fields to Txt_OPBAL
and Txt_Init_Bal
the sum in the footer which I now change to Sum([Txt_OPBAL]) and
Sum([Txt_Init_Bal]) shows an ERROR#.
Is it imperative that to get a total in the form footer both, the
Control Source and NAME should be the same ?

Rgds,
Prakash.

Aug 6 '07 #1
1 2018
You can sum a field in the form's RecordSource.
You cannot sum a control.

Therefore your expression needs to refer to the field name (typically what
you put in the control's Control Source), not the control name.

--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
<pr*************@gmail.comwrote in message
news:11*********************@o61g2000hsh.googlegro ups.com...
>I have a continuous form with 2 fields OPBAL and INIT_BAL as the
control source.

In the form footer, for their totals I have 2 text boxes having
=Sum([OPBAL]) and =Sum([Init_Bal]) as their control source.

This works fine !
If however, on the form I change the name of the fields to Txt_OPBAL
and Txt_Init_Bal
the sum in the footer which I now change to Sum([Txt_OPBAL]) and
Sum([Txt_Init_Bal]) shows an ERROR#.
Is it imperative that to get a total in the form footer both, the
Control Source and NAME should be the same ?

Rgds,
Prakash.
Aug 6 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Paul Copeland | last post by:
Hi, I have a form with buttons (Ok, Close etc) on the form footer. As the user tabs through the form controls focus will not move to the footer controls. Am I missing something here? Do I have...
0
by: Uttam | last post by:
Hello, I have a main form consisting of a Header, Detail and Footer. The Detail consists of a Continuous Form of records. Associated with each record is a "Select" Button for Selection. ...
2
by: Salad | last post by:
Is there a way to determine which section of a form a control is located in code....besides using the tag property?
2
by: Lyn | last post by:
Hi, I am working on a genealogy project in which I have two tables: Person -- one record for each person in the family. Each record has a unique Autonum field (IDPerson). Partnerships -- one...
30
by: Shannan Casteel via AccessMonster.com | last post by:
I have a subform named "sbfrmParts" with a list of parts along with the quantity and price. I have used a text box in the subform's footer and set the control source to "=Sum(*)". I set the...
2
by: Neo Geshel | last post by:
After pouring over about a dozen sites that clearly dealt with ClientID all by itself, I came to the realization that about 2/3+ of them were doing it wrong. It is indeed impossible to grab the...
4
by: John Boy | last post by:
Hi, Can anyone help. This is really doing my nut in. 3 years ASP exp. and now doing .DOT which is a step in the wrong direction. Basically I am left with the code of a guy who has left. When I...
8
by: fonzie | last post by:
Is it possible to have a data entry form where the information is stored in several different tables (5 or 6)? I have an inventory database where Table1 stores all of the data common to all...
3
by: virtualgreek | last post by:
Dear all, I have a scenario that is driving me nuts. (MS Access 2003) I have a form/subform (Continuous form) where it gets its data from tables Order and Order_Details. In the footer...
9
by: Patrick A | last post by:
All, I've got a continuous form with one field on it, with a comob
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.