I have an output page that list's transactions with there associated dates. I would like to split these items into sub sections sortng them by date (every 3 months)
Basically every quarter (4 per year) will be shown in a separate section of the table.
My code so far to output the data is as follows:
<CFQUERY DATASOURCE="mx3" NAME="mx3">
SELECT *
FROM Donators
ORDER BY DonationDate, DonatorNumber
</CFQUERY>
<TABLE><TR>
<TD><B>Donator Name</B><BR></TD>
<TD><B>Donation Method</B><BR></TD>
<TD><B>Date Donated</B><BR></TD>
</TR><TR>
<TD><CFOUTPUT QUERY="mx3">#DonatorName#<BR></CFOUTPUT></TD>
<TD><CFOUTPUT QUERY="mx3">#DonationMethod#<BR></CFOUTPUT></TD>
<TD><CFOUTPUT QUERY="mx3">#DateFormat(DonationDate, 'MMMM D, YYYY')#<BR></CFOUTPUT></TD>
</TR></TABLE>
How do I specify subgroups of these transactions? In the table I have a field that specifies which quarter of the year they were made. (ie. 2002-1, 2002-2, 2002-3, 2002-4)
Thanks in advance for your help.
Jeff
Basically every quarter (4 per year) will be shown in a separate section of the table.
My code so far to output the data is as follows:
<CFQUERY DATASOURCE="mx3" NAME="mx3">
SELECT *
FROM Donators
ORDER BY DonationDate, DonatorNumber
</CFQUERY>
<TABLE><TR>
<TD><B>Donator Name</B><BR></TD>
<TD><B>Donation Method</B><BR></TD>
<TD><B>Date Donated</B><BR></TD>
</TR><TR>
<TD><CFOUTPUT QUERY="mx3">#DonatorName#<BR></CFOUTPUT></TD>
<TD><CFOUTPUT QUERY="mx3">#DonationMethod#<BR></CFOUTPUT></TD>
<TD><CFOUTPUT QUERY="mx3">#DateFormat(DonationDate, 'MMMM D, YYYY')#<BR></CFOUTPUT></TD>
</TR></TABLE>
How do I specify subgroups of these transactions? In the table I have a field that specifies which quarter of the year they were made. (ie. 2002-1, 2002-2, 2002-3, 2002-4)
Thanks in advance for your help.
Jeff