473,395 Members | 1,537 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,395 software developers and data experts.

Report Count IIF Help

I have a Count IIF statement that needs to be fixed.
This is in an unbound txt field in Report1.

Report1's Record source is qurReport1 (combined by 2 tbls...tblPosition Data and tblAction Log).

Field of the query are...
tblPosition Information_ID: ID (Auto #)
Position (dropdown from tblPosition Choices)
Program Element (dropdown from tblProgram Element Choices)
Reinvestigation (yes/no check box)
Action Type (dropdown from tblAction Choices)
Action Date( date/time field but only an input mask of mm/dd/yyyy)

This is what is in the Controle Soucer of the txt box:
=Sum(IIf([qurReport1]![Position Information].[Position]='Contractor',[tblAction Log].[Action Type]="Delayed",1,0))

I started out w/ =Sum(IIf([tblAction Log].[Action Type]="Delayed",1,0)) but need to add more criterias. (i.e. Position= Contractor)

I have also tried: =Count(IIf([tblAction Log].[Action Type]="Delayed",1,0))... but jut get the total number of records no matter what I put for Action Type.
What is the best way to get a report that will count all Action Types between [start date] and [end date] that meet both criterias (Contractor and Action Type=Delayed)
Oct 18 '10 #1
1 2079
Thanks for ya'lls help. I have fig. it out. It was one of those things that you just want to kick your self for not seeing it.

This is what I did.
I used the wizard to create 2 sub reports "Report Position" and "Report Program Element" in side an unbound Report "Report1".
In the wizard I ues the matching query for the sub reports. (i.e. "qurPosition" was uesed for "Report Position")My date field in both queries are CountOfAction Date.
** How you get a CountOf field... open your qur, and rt click where your date is (or what ever group you want to count)then sellect Total. In the "Total:" line select "Count" and there you go**

Grouping selections are Position and Action Type then finished making the report.
I then opened the report and added a nother Sorting and Grouping. I added CountOfAction Date. Changed the Group heading to "Yes" and left the rest as defualt settings.
** the CountOfAction Date field should be placed under the assigned header (i.e. CountOfAction Date Header).

All that is left to do is place the sub reports in your unbound reprot if you didn't create it there to start with.
Oct 20 '10 #2

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

Similar topics

1
by: Jon via AccessMonster.com | last post by:
Hi Guys, My "Sorting and Grouping" in my report looks like this: Field/Expression Sort Order sID Ascending ((= Project Name Ascending User *** ...
1
by: PlumeProg | last post by:
Hello, I can't find a way to bind a dataset at runtime as a source for my report source. I looked into msdn and found some sample : ms-...
2
by: cajan341 | last post by:
Hello I am new to access, I have a report that has a list of classes in the section that is called class header. I want to count how many classes are on my report? and then divide this by another...
2
by: yellowarmy | last post by:
Theres two problems i have. 1) Theres a question i have to answer in a mock is that the company does invoices every month but i need it for to select invoice and then select the month whcih would...
1
by: deshg | last post by:
Hey everyone, I think i am being kind of stupid but i can't quite work out how to do it and wondered if anyone might be able to help!? I'm using MS Access 2002 on Windows XP FYI. I have a...
2
by: June Noon | last post by:
I have a report that has several columns of data..one = asset id's, two = racf id's, 3 = software name, ect..... My problem is that I want a count of asset id's that are original. The asset id's...
1
by: nospam | last post by:
I have a report to count some statistics of case data. I can't figure out how to make Access group and sum/count information to give me a nice statistics report. Basically the database has case...
1
by: Mrbanner | last post by:
I have a new database file which i have created in my Table i have a field called name where 5 names can be selected from list also have a another field where the date is typed. What i need to do...
0
denny1824
by: denny1824 | last post by:
I have a crystal report that someone else wrote and already has a Formula Field if Criteria then (Count ({FirstField},{SecondField}) / Count ({FirstField})) When the Criteria is true, this...
4
by: j420exe | last post by:
I have 3 tables: ARTISTS, ART and PAINTINGS ARTISTS has columns (data): userid (adam, betty, gil, jack, larry, steve, tyler) full_name (firstname lastname) ART has columns: art_id (auto number...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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:
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...
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...

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.