You will need to build your own. CF is not counting the number of times a group element changes. Conceptually all <cfoutput group="column" ...> is doing is storing the first value of column, then each iteration through the loop it checks to see if the value of column has changed. If it his, the outer loop is run again, the current value of column is updated and it continues until the value changes again or it runs out of rows.
It might not be too hard to do this with a modification to the query being outputted to add some count(column) summations. But that could be a bit tricky to return all the rows and counts of certain values at the same time. HTH -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA "C code. C code run. Run code run. Please!" - Cynthia Dunning ....-----Original Message----- ....From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ....Sent: Thursday, July 28, 2005 10:09 AM ....To: CF-Talk ....Subject: <cfoutput> grouping - current row .... ....Hi, .... ....Anyone know if there's a way to get the 'currentrow' within a cfoutput ....grouping? In other words, if I have 5 groups I'm cfoutputting, I want to ....be able to access the row # within each group. I know I can do this by ....setting a counter and incrementing within the 'inside' <cfoutput> tag, ....and then resetting it to 1 before that every time, but I'm wondering if ....there is a cleaner way of doing this. And just to be clear, ....query.currentrow does not give me that, it gives me the row number in ....relation to the entire query, not the group. .... ....Thanks, .... ....Dave ....************************************************************************* ....***************** ....The information contained in this message, including attachments, may ....contain ....privileged or confidential information that is intended to be delivered ....only to the ....person identified above. If you are not the intended recipient, or the ....person ....responsible for delivering this message to the intended recipient, ALLTEL ....requests ....that you immediately notify the sender and asks that you do not read the ....message or its ....attachments, and that you delete them without copying or sending them to ....anyone else. .... .... .... ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:213172 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

