Angel Stewart wrote:

>Hey all,
>
>I tried the two solutions offered, end neither of them worked.
>
>The code is still only cycling over the first employee and simply not
>moving to any other employee in the database.
>I'm at a complete loss as to why, since the logic should be sound.
>
it's simple, cfloop loses track of it's self when nested, you need to 
store a reference to the current row of the first cfloop to access the 
current position in the second

<cfloop query="qry1">
    <cfset qry1_currentrow=qry1.currentrow>
    <cfloop query="qry2">
        #qry1.name[qry1_currentrow]# #qry2.email#
    </cfloop>
</cfloop>
______________________________________________________________________
Why Share?
  Dedicated Win 2000 Server � PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionc
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to