473,473 Members | 1,483 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Summing amounts in a text box

76 New Member
Hello,

I have a report in which I'm trying to sum the numbers that appear in [Text33]. The control source of [Text33] is:

=IIf([Date] Between [Enter Start Date (MM/DD/YY)] And [Enter End Date (MM/DD/YY)] And [Text34] Like "Overtime - *",[Text24],"0")

and [Text24]'s control source is Hours from a table. In [Text35], the box where I want the sum to appear, I have:

=sum([Text33])

which seems like it should work. Unfortunately, every time I view the report, it first prompts me to enter something in a text box with the title "Text33". What am I doing wrong?

Thanks,

Charlie
Dec 21 '06 #1
2 1365
MMcCarthy
14,534 Recognized Expert Moderator MVP
Hello,

I have a report in which I'm trying to sum the numbers that appear in [Text33]. The control source of [Text33] is:

=IIf([Date] Between [Enter Start Date (MM/DD/YY)] And [Enter End Date (MM/DD/YY)] And [Text34] Like "Overtime - *",[Text24],"0")

and [Text24]'s control source is Hours from a table. In [Text35], the box where I want the sum to appear, I have:

=sum([Text33])

which seems like it should work. Unfortunately, every time I view the report, it first prompts me to enter something in a text box with the title "Text33". What am I doing wrong?

Thanks,

Charlie

Can you post a reply to this thread on Wednesday/Thursday to bump it up the list. It may not get much attention over Christmas.

Happy Holidays.

Mary
Dec 25 '06 #2
ADezii
8,834 Recognized Expert Expert
Hello,

I have a report in which I'm trying to sum the numbers that appear in [Text33]. The control source of [Text33] is:

=IIf([Date] Between [Enter Start Date (MM/DD/YY)] And [Enter End Date (MM/DD/YY)] And [Text34] Like "Overtime - *",[Text24],"0")

and [Text24]'s control source is Hours from a table. In [Text35], the box where I want the sum to appear, I have:

=sum([Text33])

which seems like it should work. Unfortunately, every time I view the report, it first prompts me to enter something in a text box with the title "Text33". What am I doing wrong?

Thanks,

Charlie
'I am fairly sure that if the Control Source for a Text Box within a Report contains
'an Expresstion such as [Text33] does, you cannot summmarize on the Text
'Box itself, but namely, you must summarize on the entire expression:

For the Control Source of [Text35], =sum([Text33]) will not work but something like the following should.
Expand|Select|Wrap|Line Numbers
  1. =Sum(IIf([Date] Between [Enter Start Date (MM/DD/YY)] And [Enter End Date (MM/DD/YY)] And [Text34] Like "Overtime - *",[Text24],"0"))
Dec 26 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Yaroslav Bulatov | last post by:
I made an array of 10 million floats timed how long it takes to sum the elements, here's what I got (millis): gcc -O2: 21 Python with numarray: 104 Python with Numeric: 302...
1
by: wireless | last post by:
We recently added a new database at the company. It has only one purpose - to hold massive amounts a daily data generated by telephone calls on a network. The amount of data was so large...
1
by: Ciar?n | last post by:
I am trying to check a list (MyList) against another List (SupplierList). I want sum the Qty's of UniqueID on MyList and extract the sum of the same UniqueId's on SupplierList. BTW There are more...
2
by: shockride | last post by:
I know this should be easy, but I have been banging my head against it for too long... Here is my XML (names changed blah blah) <Factory> <Containers> <Container> <Country>USA</Country>...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
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,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
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
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
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 ...
0
muto222
php
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.