472,342 Members | 2,566 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,342 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 6152
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...
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...
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. ...
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 ...
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...
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...
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...
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...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...

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.