Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the Count Function

Status
Not open for further replies.

agreen10

IS-IT--Management
Oct 20, 2005
70
US
I am trying to use the count function to count the number of times a report prints "below average" or "above average"
I would like it to be like a summary of a field and show up in the grand footer section of my report. What is the best way for me to handle this.
 
Please try to post technical information, such as how this "below average" is being displayed, and I assume that you don't really mean how often it's being printed.

If it's a field, then use the count function, if it's text somewhere, then you'll need a formula with a variable to count it:

numbervar MyCount;
MyCount:=MyCount+1

Place this next to tyhe text object.

Then in the report footer use:

numbervar MyCount;
MyCount:=MyCount

There is no such thing as a grand footer.

-k
 
You could try using a conditional formula like:

if {table.string} = "Below Average" then 1

Make a similar formula for the other text. Then right click on each formula and insert a summary (grand total), using SUM, not count. If this is accurate, then you're all set. If the number is inflated, you'll need to use a running total that takes into account duplicate fields.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top