PC Review


Reply
 
 
=?Utf-8?B?TGVl?=
Guest
Posts: n/a
 
      23rd Jan 2006
Hello,

I am trying to build a form. In the group footer I am running summary
totals.
This column called Response has two choices Unreconciled or Reconciled. In
my report I want to count the number of responses, unreconciled responses and
reconciled responses.

How do I write the expression to count the Unreconciled and reconciled
responses. For example if there is a 180 responses. =Count([Response]),
this function counts the total responses. How do I write the expression to
count the two choices?

 
Reply With Quote
 
 
 
 
Dirk Goldgar
Guest
Posts: n/a
 
      23rd Jan 2006
"Lee" <(E-Mail Removed)> wrote in message
news:AC2C5D8B-8A6E-4482-A79B-(E-Mail Removed)
> Hello,
>
> I am trying to build a form. In the group footer I am running summary
> totals.
> This column called Response has two choices Unreconciled or
> Reconciled. In my report I want to count the number of responses,
> unreconciled responses and reconciled responses.
>
> How do I write the expression to count the Unreconciled and reconciled
> responses. For example if there is a 180 responses.
> =Count([Response]), this function counts the total responses. How do
> I write the expression to count the two choices?


All responses: =Count([Response])

Reconciled: =Abs(Sum([Response]="Reconciled"))

Unreconciled: =Abs(Sum([Response]="Unreconciled"))

The last two expressions take advantage of the fact that the logical
value True evaluates as -1, so we sum add up the result of the logical
expression, than take the absolute value of that to remove the minus
sign.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)


 
Reply With Quote
 
Phillip Windell
Guest
Posts: n/a
 
      23rd Jan 2006
Is Reconciled and Unreconciled a "value" of the field Resonse?

You would need two queries.
One would be:
SELECT <blah, blah, blah> WHERE Response="Reconciled"
SELECT <blah, blah, blah> WHERE Response="Unreconciled"

If there is only two possible values, then you could simply test for one to
get a count and then subtract that from the total number of records and that
would be the amount of the other option

SELECT <blah, blah, blah>
(returns 180)
SELECT <blah, blah, blah> WHERE Response="Reconciled"
(returns 74 hits)
180 total responses - 74 Reconciled = 106 Unreconciled

--
Phillip Windell [MCP, MVP, CCNA]
www.wandtv.com
-----------------------------------------------------
Understanding the ISA 2004 Access Rule Processing
http://www.isaserver.org/articles/IS...cessRules.html

Microsoft Internet Security & Acceleration Server: Guidance
http://www.microsoft.com/isaserver/t...dance/2004.asp
http://www.microsoft.com/isaserver/t...dance/2000.asp

Microsoft Internet Security & Acceleration Server: Partners
http://www.microsoft.com/isaserver/partners/default.asp

Deployment Guidelines for ISA Server 2004 Enterprise Edition
http://www.microsoft.com/technet/pro...isaserver.mspx
-----------------------------------------------------




"Lee" <(E-Mail Removed)> wrote in message
news:AC2C5D8B-8A6E-4482-A79B-(E-Mail Removed)...
> Hello,
>
> I am trying to build a form. In the group footer I am running summary
> totals.
> This column called Response has two choices Unreconciled or Reconciled.

In
> my report I want to count the number of responses, unreconciled responses

and
> reconciled responses.
>
> How do I write the expression to count the Unreconciled and reconciled
> responses. For example if there is a 180 responses. =Count([Response]),
> this function counts the total responses. How do I write the expression

to
> count the two choices?
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
count duplicats, display incremental count, restart count at changein value JenIT Microsoft Excel Programming 2 24th Aug 2010 09:10 PM
Count unique field1 combined with count field2, both grouped andungrouped john.mctigue@health.wa.gov.au Microsoft Access Queries 3 19th Dec 2008 03:52 AM
Count Employee Work Time - Don't Double-count Overlapping Apts. =?Utf-8?B?Sg==?= Microsoft Excel Worksheet Functions 0 27th Apr 2007 05:52 AM
how to get count(col1), count(col2), count(sol3) with only one query Mario Krsnic Microsoft Access Queries 2 27th Oct 2006 06:52 PM
Count Intervals of Filtered TEXT values in Column and Return Count across a Row Sam via OfficeKB.com Microsoft Excel Worksheet Functions 9 31st Jul 2005 03:37 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:15 AM.