Hi:

I need to dymanically create a number of columns using the queryAddColumn function.

I was going to use the loop below. That way each column would have a generic dynamically created name.

Code:
<cfloop index="I" from="1" to="#Variables.qProgramDetails.recordcount#">
    <cfset temp = QueryAddColumn(#this.RecordSet#, "Detail#I#", "VarChar",
...