<!--- Loop over query. ---> <cfloop query="qTest"> <!--- Check for first row. ---> <cfif (qTest.CurrentRow EQ 1)> <!--- This is the first row. ---> </cfif> </cfloop>