This problem has existed since CF5 at least as far as I know. That is the workaround for it.
thanks -r _____________________________________ Rob Barthle Contractor - Sr. Software Developer [EMAIL PROTECTED] 202-245-6484 -----Original Message----- From: Rick Root [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 22, 2006 12:17 PM To: CF-Talk Subject: cfloop over a query inside cfoutput over a query Consider the following code: <cfoutput query="getRoster" group="ENTITYID"> <cfset volunteers = getVolunteers(ENTITYID)> <!-- volunteers is a query ---> <cfoutput><!-- output some stuff here --></cfoutput> <cfloop query="volunteers"> foo bar #ENTITYID# </cfloop> </cfoutput> The reference to ENTITYID inside the cfloop breaks, says it doesn't exist. Is that because CF only looks at the current query being looped over? It works fine if I add something like <cfset thisEntityID = ENTITYID> just after the first cfoutput line and then reference *THAT* variable instead. Just seems odd. Rick ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Message: http://www.houseoffusion.com/lists.cfm/link=i:4:233109 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=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54