473,513 Members | 2,339 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

continuous form, how to sum unbound control in footer ?

I've got a continuous form based on a query
the first 2 controls on the form are bound to columns in the query
a third control (paymentAmount) is unbound
I have a total control in the footer, where the control source is
=sum(paymentAmount)
this displays #Error#

but if I temporarily change my query to add a paymentAmount column
with a value of 1, and I change the control source of the
paymentAmount control to 'paymentAmount', (so the control is called
paymentAmt and the control source is paymentAmt), my total control in
the footer displays the correct total

now if I change the name of the control to paymentAmount2, with a
control source of paymentAmount, the total control is correct

if I change the control source of the total control to

=sum(paymentAmount2)

my error returns....

why does it sum only a control source ?
how do I get to sum the contents of a control ?
Nov 13 '05 #1
1 8590
As you found, you can only sum field(s) that are in the form's RecordSource.

Having the calculated field in the query is a good solution.

The alternative is to repeat the actual fields in the Control Source, e.g.:
=Sum([Credit] - [Debit])

--
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.

"Roger" <le*********@natpro.com> wrote in message
news:8c**************************@posting.google.c om...
I've got a continuous form based on a query
the first 2 controls on the form are bound to columns in the query
a third control (paymentAmount) is unbound
I have a total control in the footer, where the control source is
=sum(paymentAmount)
this displays #Error#

but if I temporarily change my query to add a paymentAmount column
with a value of 1, and I change the control source of the
paymentAmount control to 'paymentAmount', (so the control is called
paymentAmt and the control source is paymentAmt), my total control in
the footer displays the correct total

now if I change the name of the control to paymentAmount2, with a
control source of paymentAmount, the total control is correct

if I change the control source of the total control to

=sum(paymentAmount2)

my error returns....

why does it sum only a control source ?
how do I get to sum the contents of a control ?

Nov 13 '05 #2

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

Similar topics

3
6316
by: Pat | last post by:
Hello, I've used Sum() to total bound fields on a continuous form with no problem. However, I now have a continuous form, on which I use an unbound field to calculate the number of hours between...
0
1325
by: Steve Jorgensen | last post by:
One thing that makes Access so useful rapid development tool is the seemless way it links user interfaces to data storage. That is also one of its most maddening weaknesses, since Access doesn't...
4
3156
by: Kathy | last post by:
What is the standard technique for handling the fields in the following scenario on a continuous form? Multiple Divisions. Each Division has multiple Buildings. Each Building has a Supervisor. ...
20
10781
by: Robert | last post by:
Need some help to stop me going around in circles on this one.... Have a nested subform (subform2) which simulates a continuous form for the record on the parent subform. Subform2 has rows of...
3
11255
by: Richard | last post by:
How is the result of query placed in a unbound textbox ? Suppose CriteriaLookups has columns TableName, KeyColumn, KeyValue, DataColumn Foo,x,11,xhat Bar,z,3,xyzzy And
6
7862
by: balancetotal | last post by:
Creating a running sum in continuous form in Access 2003 -------------------------------------------------------------------------------- Hello: I have three forms on my user-interface. ...
1
10875
by: blueheelers | last post by:
I have been researching for several hours on the best way to display images in continous forms in Access 2003. For example, I want to display employee name, email, phone, and picture for each...
6
4848
by: Greg Strong | last post by:
Hello All, Is is possible to use an ADO recordset to populate an unbound continuous Subform? I've done some Googling without much luck, so this maybe impossible, but let me try to explain...
9
4688
by: Patrick A | last post by:
All, I've got a continuous form with one field on it, with a comob
0
7267
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
7553
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5697
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1609
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.