Andy, The way to do it without creating temp variables:
http://bennadel.com/index.cfm?dax=blog:546.view ...................... Ben Nadel Certified Advanced ColdFusion MX7 Developer www.bennadel.com Need ColdFusion Help? www.bennadel.com/ask-ben/ -----Original Message----- From: Jim Wright [mailto:[EMAIL PROTECTED] Sent: Friday, February 23, 2007 11:56 AM To: CF-Talk Subject: Re: Question about looping and the first row in a column Andy Matthews wrote: > > When I use that code, and compare to "tempFreq", the code works just fine. > Why is this happening? Does anyone have wisdom on this because it's > really irritating for me to have to have this extra line of code in here. Anyone? > I think about the best answer you are going to get is "because that is the way it is". It is kind of a rite of passage for CF developers when they realize that one. One thing I would look into, though, is whether you can re-write your queries to use a single query, and then use cfoutput with the "group" attribute. That will proably result in some cleaner looking code. Most likely faster, too. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & Flex 2. Free Trial http://www.adobe.com/products/coldfusion/flex2/ Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:270589 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

