Re: Reports



On 30 Dec 2005 06:38:25 -0800, DDR wrote:

> 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")


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
.



Relevant Pages

  • Re: Select case Statement for a Report
    ... Select a Text Datatype (This is where the error occurs "The Value You ... could be that the filter is not being cleared from the report after closing ... You don't appear to have the syntax for Priority correct. ... cboboxselectvalue and cboselectfield. ...
    (microsoft.public.access.modulesdaovba)
  • Re: ADP report truncates field at 4000 characters
    ... > Since you've said that the text datatype works, if you want to keep your ... Report works fine except it truncates the data in this ... >>> displays only the first 4000 characters. ... >>> app populated via an ADO recordset built via stored proc displays all ...
    (microsoft.public.access.adp.sqlserver)
  • Re: Forms and Union Queries
    ... i like to come with a report that in one line displays both quilts, ... Fieldname1; datatype; description ...
    (microsoft.public.access.forms)
  • RE: Weekly Crosstab Report
    ... What is the name and datatype of the field used to store the activity date? ... I would like to create a crosstab report that lists the project ... I'm having trouble building the crosstab query that will result in a column ...
    (microsoft.public.access.queries)
  • Re: ADP report truncates field at 4000 characters
    ... Since you've said that the text datatype works, if you want to keep your ... Report works fine except it truncates the data in this ... >> displays only the first 4000 characters. ... >> app populated via an ADO recordset built via stored proc displays all ...
    (microsoft.public.access.adp.sqlserver)