473,508 Members | 2,249 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help Again: Need to Count Occurances

I need a report that looks like this:

1. Number of Enrollees as of Today: (count of everyone in
query){can count last names)

2. Total Active People (count of everyone with "A" as
([Fieldname]=Status))

3. Total Hold People (count of everyone with "HOLD" as Status

4. Total Temporary Suspension: (count of everyone with "TS" as Status

I have a query of everything in table. I have a query that list all
people that are "A". I have a query of everyone that is "Hold". I
have a Query of everyone that is "TS"

I even made a query like this:
Status CountOfStatus
A 1073
HOLD 76
TS 51
But if I put this into the report using sub-report, it shows that
"Status" and "CountOfStatus" thing in the box.

Help. You people are great. I wish the books and tutorials were
helpful.

Blessings,
Grammie
Nov 13 '05 #1
1 1326
If you have a field named "Status" and its data is one of "A" or "HOLD" or
"TS", try creating calculated field like ABSENT:[Status] = 'A'. Since TRUE
= -1, if you take the negative sum of this, it will count the records with
that status, e.g.

SELECT -Sum([Status]='A') AS Absent FROM tblData

HTH
"Grammie" <bm****@yahoo.com> wrote in message
news:ae**************************@posting.google.c om...
I need a report that looks like this:

1. Number of Enrollees as of Today: (count of everyone in
query){can count last names)

2. Total Active People (count of everyone with "A" as
([Fieldname]=Status))

3. Total Hold People (count of everyone with "HOLD" as Status

4. Total Temporary Suspension: (count of everyone with "TS" as Status

I have a query of everything in table. I have a query that list all
people that are "A". I have a query of everyone that is "Hold". I
have a Query of everyone that is "TS"

I even made a query like this:
Status CountOfStatus
A 1073
HOLD 76
TS 51
But if I put this into the report using sub-report, it shows that
"Status" and "CountOfStatus" thing in the box.

Help. You people are great. I wish the books and tutorials were
helpful.

Blessings,
Grammie

Nov 13 '05 #2

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

Similar topics

3
6240
by: Xah Lee | last post by:
if i have mytext.replace(a,b) how to find out many many occurances has been replaced? Xah xah@xahlee.org ∑ http://xahlee.org/
0
1869
by: johkar | last post by:
My XML and XSL is below. Also below is a textual representation of what I want to get out of the XML with XSL. For each Extension node in XML, I am only concerned with those nodes with...
5
1265
by: ndn_24_7 | last post by:
Hello all, I'm trying to write a stored procedure that will prompt the user for a date range and produce a report based on that date range and 4 incident types. I only need count how may times...
6
391
by: Mark Reed | last post by:
Hi all, I am trying to learn a little about programming (I know next to nothing so far) and have found some code which hides the toolbars. However, this bit of code is a little too effective and...
1
1645
by: remove | last post by:
Hi all, I have a fairly simple database containing details of broadcast news reports. Each record contains information about the programme title, date, time, presenter, and details of the...
2
1362
by: .NET Developer | last post by:
Hello, I'm trying to write a RegEx that will find all occurances of a particular type of HTML anchor <a> element in a big block of HTML. Here are the pattern requirements - they consist of certain...
66
5279
by: genestarwing | last post by:
QUESTION: Write a program that opens and read a text file and records how many times each word occurs in the file. Use a binary search tree modified to store both a word and the number of times it...
1
1521
by: jackspam | last post by:
I need help on getting started with a dice program that will output as many random numbers from 1 to 6 and as many rolls as the user requests, and then how many times each number shows up from the...
4
2782
by: sandvet03 | last post by:
I am trying to expand on a earlier program for counting subs and now i am trying to replace substrings within a given string. For example if the main string was "The cat in the hat" i am trying to...
0
7225
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
7123
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
7383
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...
1
7046
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
5627
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
5053
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
3194
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3182
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.