Output a Query Column
Posted on 2002-07-18
I've created a crosstab query which uses a Date field as column headings. I was able to output the column names OK using listgetat(theQuery.ColumnList,1). However, I am unable to output the data for the list. Here's my query:
<cfquery name="crossTMResults" datasource="TM">
TRANSFORM Count(ACTIVITIES.ACTIVITYID) AS CountOfACTIVITYID
WHERE ACTIVITYDATE BETWEEN #createodbcdatetime(StartDate)# AND #createodbcdatetime(theenddate)#
GROUP BY ACTIVITIES.TM_RESULTS
I've tried using evaluate, but I get an error, for example that says that it doesn't know what crossTMResults.7/16/02 is. I also tried crossTMResults.[7/16/02] and a few others. Does anyone know how I can specify the query column I want the data for?