Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Reports / Printing / December 2005

Tip: Looking for answers? Try searching our database.

Problem with my report

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
DDR - 30 Dec 2005 15:01 GMT
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")


Duane Hookom - 30 Dec 2005 15:21 GMT
=Abs(Sum([EmploymentStatus]="Active") )

Signature

Duane Hookom
MS Access MVP
--

>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
[quoted text clipped - 5 lines]
>
> =Count([EmploymentStatus]="Active")
TedMi - 30 Dec 2005 20:21 GMT
Much more intuitive:
=Count(*) Where EmploymentStatus="Active"
This formulation does not depend on the obscure knowledge that a true
comparison returns a value of negative 1
Signature

Ted

Duane Hookom - 30 Dec 2005 20:36 GMT
I'm not sure how you would implement a sql statement in the control source
of a text box.

Signature

Duane Hookom
MS Access MVP
--

> Much more intuitive:
> =Count(*) Where EmploymentStatus="Active"
> This formulation does not depend on the obscure knowledge that a true
> comparison returns a value of negative 1
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.