Jeff, This has always been the case for me. Had to copy the query to a new variable, and then it worked. I believe it is a bug. If not, it should be as I see no purpose for it.
Cedric Villat Lead Designer http://www.Cornfeed.Com Creators of CFTicket - A multipurpose Email Management and Trouble Ticket application. ----- Original Message ----- From: "Jeff D. Chastain" <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Monday, December 02, 2002 2:30 PM Subject: RE: Nested Query Loops > I was referring to the inner query using the full scoped name - > variables.queryName. > > So, why does setting newQueryName = variables.queryName PRIOR to looping > the first query change anything? Both variables are in the variable > scope and are created prior to the first loop - they should be the same > right? > > BTW - copying the query over to a new name worked. Now the question is > why? > > Thanks > > > -----Original Message----- > From: Keith Dodd [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 02, 2002 3:17 PM > To: CF-Talk > Subject: Nested Query Loops > > > Not sure this is the problem, but I've had problems with nesting loops, > forgetting that you need to set a variable from the outer loop (with a > new name) before using that variable in the inner loop. I don't > understand why, but variables get confused in nested loops. This *might* > have something to do with it. > > Keith Dodd > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm