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

Report totals records that have data in field

14
I want to be able to count all records in a report that if the field is greater than 0 it will total it.

Example: 5 records are on the report, two of the records in the field Past Due have a number greater than zero. I want only those two record counted in the column.
Mar 13 '07 #1
9 1371
MMcCarthy
14,534 Expert Mod 8TB
I want to be able to count all records in a report that if the field is greater than 0 it will total it.

Example: 5 records are on the report, two of the records in the field Past Due have a number greater than zero. I want only those two record counted in the column.
Try this ..

Put a textbox in the report footer, and then put the following code in the Control Source.

Expand|Select|Wrap|Line Numbers
  1. =Sum(IIf([Past Due]>0,1,0)
Mary
Mar 13 '07 #2
MicMic
14
Mary When I enter as you said, I get this message

The expression that you entered is missing a closing parenthesis, bracket(]), or vertical Bar.

As ideas

Thanks

Mickie
Mar 13 '07 #3
MicMic
14
Mary,

Sorry forgot a ) but still not getting the correct data.
Mar 13 '07 #4
MicMic
14
Mary,

Tweeked it a little bit and was able to get it. Couldn't of done it without you.

Thanks
Mickie
Mar 13 '07 #5
MMcCarthy
14,534 Expert Mod 8TB
Try this ..

Put a textbox in the report footer, and then put the following code in the Control Source.

Expand|Select|Wrap|Line Numbers
  1. =Sum(IIf([Past Due]>0,1,0)
Mary
Sorry it was missing a closing bracket at the end. Should have been

Expand|Select|Wrap|Line Numbers
  1. =Sum(IIf([Past Due]>0,1,0))
Mar 14 '07 #6
NeoPa
32,556 Expert Mod 16PB
Sorry it was missing a closing bracket at the end. Should have been

Expand|Select|Wrap|Line Numbers
  1. =Sum(IIf([Past Due]>0,1,0))
This is actually a very clever, and oft used, ploy on her part, to encourage the OP to be involved in solving their own problems.
I've seen so many of her posts and you'd be surprised how many little erorors there are around, just to help the OPs to learn ;)
Mar 15 '07 #7
MMcCarthy
14,534 Expert Mod 8TB
This is actually a very clever, and oft used, ploy on her part, to encourage the OP to be involved in solving their own problems.
I've seen so many of her posts and you'd be surprised how many little erorors there are around, just to help the OPs to learn ;)
Watch it Ade :)
Mar 15 '07 #8
NeoPa
32,556 Expert Mod 16PB
This is actually a very clever, and oft used, ploy on her part, to encourage the OP to be involved in solving their own problems.
I've seen so many of her posts and you'd be surprised how many little erorors there are around, just to help the OPs to learn ;)
Watch it Ade :)
And there was I, just lauding you to the hills...
Harsh (and suspicious I'd say ;)).
Mar 16 '07 #9
MMcCarthy
14,534 Expert Mod 8TB
And there was I, just lauding you to the hills...
Harsh (and suspicious I'd say ;)).
I just know YOU!
Mar 16 '07 #10

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

Similar topics

2
by: Galina | last post by:
Hello I have a report, which lists records. Each record has money paid field. Money paid can be 0 or not 0. I calculate and print summary of money for a group in the group footer, as well as...
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...
3
by: ahaque38 | last post by:
Hello. Using A2K SP3, I am having the following problem with a report using "Sorting and Grouping". I have recently added a grouping in the reports for "Category2<>'CONTRACTS'". I have...
3
by: Melissa | last post by:
What specifically causes the Format event of a report's section to fire? Thanks! Melissa
2
by: Tom | last post by:
This is related to an earlier post entitled "Text in Query/Numbers in Report" Brief recap - report has a query as a record source. The query shows the correct data, the report translating the...
7
by: SueB | last post by:
Greetings. I have a report based on the following query (hang in there ... it's quite long): SELECT Year(.) AS Yr, tblEvents.eventID, tblEvents.eventname, tblEvents.eventhost,...
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...
3
by: keri | last post by:
Hi, I have recently being doing a lot of work in Excel so apologies if I refer to things in Excel terms. I need to create a report and cannot seem to get the data from my tables / queries in the...
4
by: Micheal | last post by:
Greetings Access Group, Being relatively new to Access, I try to work through problems on my own and have been very successful, although I have a conundrum that I have been working on for two days...
14
ollyb303
by: ollyb303 | last post by:
Hi, I am trying to create a dynamic crosstab report which will display number of calls handled (I work for a call centre) per day grouped by supervisor. I have one crosstab query (Query1) which...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.