473,399 Members | 2,146 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,399 software developers and data experts.

HELP WITH REPORT TOTALS

Hello,

Can any one help me with the syntax to calculate the totals of a field? There
are three fields in the query; [XFER/ORDER] which contains the data "O" or "T",
the other [TOTAL LINES] which contains (total lines of "O" or "T") for a
specific [DATE]. I want to display in text boxes the sum of all total lines
while [XFER/ORDER]="O" and the same for [XFER/ORDER]="T". I have tried
=Sum([TOTAL LINES])(IIF([XFER/ORDER])="O",1,0))) but it didn't work.

Sample Data:
Date XFER/ORDER TOTAL LINES
8/9/04 O 50
8/8/04 T 15
8/5/04 O 12
8/3/04 T 5

REPORT:(This is what I want the syntax for please)
TOTAL LINES OF "O" = 62
TOTAL LINES OF "T" = 20

Thanks.
Nov 13 '05 #1
1 1249
On 10 Aug 2004 22:54:38 GMT, ki*******@aol.com (Kissi5559) wrote:
Hello,

Can any one help me with the syntax to calculate the totals of a field? There
are three fields in the query; [XFER/ORDER] which contains the data "O" or "T",
the other [TOTAL LINES] which contains (total lines of "O" or "T") for a
specific [DATE]. I want to display in text boxes the sum of all total lines
while [XFER/ORDER]="O" and the same for [XFER/ORDER]="T". I have tried
=Sum([TOTAL LINES])(IIF([XFER/ORDER])="O",1,0))) but it didn't work.

Sample Data:
Date XFER/ORDER TOTAL LINES
8/9/04 O 50
8/8/04 T 15
8/5/04 O 12
8/3/04 T 5

REPORT:(This is what I want the syntax for please)
TOTAL LINES OF "O" = 62
TOTAL LINES OF "T" = 20


Assuming this is for a report and that the totals is in a footer.

Then try this for the "O"s

Sum ( IIf ([ XFER/ORDER] ="O", [TOTAL LINES] , 0) )

And this for the "T"s

Sum ( IIf ([ XFER/ORDER] ="T", [TOTAL LINES] , 0) )

- Jim
Nov 13 '05 #2

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

Similar topics

31
by: da Vinci | last post by:
OK, this has got to be a simple one and yet I cannot find the answer in my textbook. How can I get a simple pause after an output line, that simply waits for any key to be pressed to move on? ...
2
by: Jayjay | last post by:
When it comes to access, I'm pretty good using the built in features and can come up with some pretty complex functions to get what I need. But we have this database I'm doing for work that is...
1
by: Nathan Bloomfield | last post by:
Does anyone know if there is any documentation which relates to Access2k + ? or can anyone help adjust the code? I am having trouble converting the DAO references. TITLE :INF: How to...
1
by: Don Sealer | last post by:
I need some help. I have a database that right now has about 3000 entries. The database tracks products and the quantities and defects associated with the products. There are about 22 products...
17
by: EkteGjetost | last post by:
This is definitely not the smart thing to do as far as my learning goes, but desperate situations call for desperate measures. The final lab for my introduction to C programming class is due...
6
by: Aravind | last post by:
I have a query, like the following: (Assumption: an ID will not have an entry in both "Meal" and "Daily" on the same date; it can only have an entry in either "meal" or "Daily" per date) ...
4
by: lorirobn | last post by:
Hi, I have a report displaying items that are missing from a room. I created 2 queries, the first getting the items IN the room, and the second being an "unmatched" query that references the...
5
prn
by: prn | last post by:
Hi folks, I'm looking for a little advice here. I need to create a report that is totals only, with no detail records. I have a database with a lot of individuals (people) and the report has to...
2
by: hanshirley88 | last post by:
Hi, I am doing an expense and funding report which contains a list of consumers by Region and then by SiteID. For example, Region: NE Site: NEMV 1. Mary Doe 2. Len Willams
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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:
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
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
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
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...

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.