Connecting Tech Pros Worldwide Help | Site Map

Reports

  #1  
Old December 30th, 2005, 02:45 PM
DDR
Guest
 
Posts: n/a
I am sure this is an easy question for most people, but I can't seem to
figure this out. I am running a report and would like to count the
specific number of people with a given status. My report lists 248
people that I work with, and their statuses are either Temporary or
Active. How do I create a count function that will give me only the
active employees at the end of a report. Here is the expression I have
been trying to use, but it has been unsuccessful.

=Count([EmploymentStatus]="Active")

  #2  
Old December 30th, 2005, 05:25 PM
fredg
Guest
 
Posts: n/a

re: Reports


On 30 Dec 2005 06:38:25 -0800, DDR wrote:
[color=blue]
> I am sure this is an easy question for most people, but I can't seem to
> figure this out. I am running a report and would like to count the
> specific number of people with a given status. My report lists 248
> people that I work with, and their statuses are either Temporary or
> Active. How do I create a count function that will give me only the
> active employees at the end of a report. Here is the expression I have
> been trying to use, but it has been unsuccessful.
>
> =Count([EmploymentStatus]="Active")[/color]


In the Report Footer:
Assuming the datatype of [EmploymentStatus] is indeed text and not a
Check Box or other Number datatype:

=Sum(IIf([EmploymentStatus]="Active",1,0))

If, however, [EmploymentStatus] is a Check Box, then:
=Abs(Sum([EmploymentStatus]))


--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can Crystal Reports be integrated in an Access97 runtime environment? Tony Ciconte answers 12 June 6th, 2006 07:05 AM
SHould I use Crystal Reports or Active Reports? VMI answers 3 February 12th, 2006 01:25 PM
VB.NET - reading reports from Access MDB B.Newman answers 2 November 21st, 2005 08:50 AM
Syntax for Reports! & GroupLevel Andrew answers 2 November 12th, 2005 05:11 PM
Can the .NET version of Crystal Reports parse a string? BStorm answers 5 July 21st, 2005 02:02 PM