473,387 Members | 1,925 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 Unbound Control on Continuous Form Footer?

Pat
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 two times stored in a record (bound
fields). This field is called txtDuration.

On my footer, I've created another unbound field named txtWeeklyTotal. I've
set the Control Source to =Sum([txtDuration]), but this returns a #Name?
error. I've tried [Me].[txtDuration] and it still doesn't seem to recognize
the unbound field.

Please, someone show me the error of my ways. This has been driving me
crazy for too long.

Thanks, as always!
Nov 12 '05 #1
3 6307
Pat wrote:
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 two times stored in a record (bound
fields). This field is called txtDuration.

On my footer, I've created another unbound field named txtWeeklyTotal. I've
set the Control Source to =Sum([txtDuration]), but this returns a #Name?
error. I've tried [Me].[txtDuration] and it still doesn't seem to recognize
the unbound field.

Please, someone show me the error of my ways. This has been driving me
crazy for too long.

Thanks, as always!


Since you are using a calculated field to be summed, don't use the name, use the
control souce.

=(Qry*Dollars) is the control source, name is Extended.

For the totals, enter
=Sum(Qty*Dollars)
not
=Sum(Extended)
Nov 12 '05 #2
Pat
Thanks for the reply. The field isn't calculated, as much as it's assigned
in VB. My calculation is done in the form's OnCurrent. The value is then
assigned to the unbound textbox.

Maybe I can compund the calculation in the form's record source query, but
I'll have to wait until tomorrow to try.

Any other suggestions?

"Salad" <oi*@vinegar.com> wrote in message
news:40***************@vinegar.com...
Pat wrote:
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 two times stored in a record (bound fields). This field is called txtDuration.

On my footer, I've created another unbound field named txtWeeklyTotal. I've set the Control Source to =Sum([txtDuration]), but this returns a #Name?
error. I've tried [Me].[txtDuration] and it still doesn't seem to recognize the unbound field.

Please, someone show me the error of my ways. This has been driving me
crazy for too long.

Thanks, as always!
Since you are using a calculated field to be summed, don't use the name,

use the control souce.

=(Qry*Dollars) is the control source, name is Extended.

For the totals, enter
=Sum(Qty*Dollars)
not
=Sum(Extended)

Nov 12 '05 #3
Pat
So, I played around and created the calculation within the underlying query,
instead of on the form. Now, I have no problems using Sum with the Bound
Field.

Thanks for the redirection.
"Pat" <no*****@ihatespam.bum> wrote in message
news:Qt******************@fe1.texas.rr.com...
Thanks for the reply. The field isn't calculated, as much as it's assigned in VB. My calculation is done in the form's OnCurrent. The value is then
assigned to the unbound textbox.

Maybe I can compund the calculation in the form's record source query, but
I'll have to wait until tomorrow to try.

Any other suggestions?

"Salad" <oi*@vinegar.com> wrote in message
news:40***************@vinegar.com...
Pat wrote:
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 two times stored in a record (bound fields). This field is called txtDuration.

On my footer, I've created another unbound field named txtWeeklyTotal. I've set the Control Source to =Sum([txtDuration]), but this returns a #Name? error. I've tried [Me].[txtDuration] and it still doesn't seem to recognize the unbound field.

Please, someone show me the error of my ways. This has been driving me crazy for too long.

Thanks, as always!


Since you are using a calculated field to be summed, don't use the name,

use the
control souce.

=(Qry*Dollars) is the control source, name is Extended.

For the totals, enter
=Sum(Qty*Dollars)
not
=Sum(Extended)


Nov 12 '05 #4

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

Similar topics

1
by: Roger | last post by:
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,...
20
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
by: google | last post by:
I'm developing an application for use within my company in Access 2003. I'm new to '03, the application I did for my former employer was in '97. The two applications have similar functionality...
3
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
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...
12
D Giles
by: D Giles | last post by:
Access 2003: A subreport control (sum total calculated textbox located in the subreport report footer) does not show total of all records when referenced as a total in the main report footer - only...
9
by: Patrick A | last post by:
All, I've got a continuous form with one field on it, with a comob
6
kcdoell
by: kcdoell | last post by:
Hello: I three fields on a continuous form: , & On the same form I have an unbound text box with the following formula in the control source: =Sum(IIf(=50,,0)) This worked great.
11
by: jwessner | last post by:
I have a form (Form1) which contains basic Project data and a subform listing the personnel assigned to the Project as a continuous form. Selecting a person on that project and clicking on a command...
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?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...
0
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...

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.