Just initialize a counter before the group and increment it within the group

<cfoutput query="xx' group="xxxx">
        ....
        <cfset ct=0>
        <cfoutput>
                ....
                <cfset ct=ct+1>
        </cfoutput>
    The count for the group is #ct#
       ...
</cfoutput>

----- Original Message -----
From: "Eric J Hoffman" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Saturday, August 18, 2001 1:43 PM
Subject: cfoutput group count


> I know this is easy, but I need sleep.  How can I easily  get the number
of
> records returned per grouping in a cfoutput query?
>
> Eric J Hoffman
> Small Dog Design, LLC
> www.smalldogdesign.com
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to