How do I restrict count of records if = to certain words

J

Judy

My report has all the records, but I need to run some over all counts where
only certain conditions exit. Example, of all the records in the report,
count only those with field xyz that has conditional formatting that is "red"
or that has certain key words. Example - count policy type where policy type
is "whole life".
 
J

John Spencer

Set the controls source to

=ABS(Sum([policy type]= "Whole Life"))

This works because [policy type]= "Whole Life" is going to return True
(-1) or False (0). Summing that will return a number. The ABS function
will strip off the negative sign.

'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top