Sure, just use the Mod function to determine if you are the second column.
See code example below:


<CFQUERY NAME="GetIDs" DATASOURCE="DCContent">
        SELECT  ID
        FROM    tblDLO
</CFQUERY>

<CFIF GetIDs.RecordCount>
        <TABLE>
                <TR>
        <CFOUTPUT QUERY="GetIDs">
                <TD>#ID#</TD>
                <CFIF NOT (CurrentRow MOD 2)>
                        </TR><CFIF CurrentRow IS NOT RecordCount><TR></CFIF>
                </CFIF>
        </CFOUTPUT>
        <!--- Check for hanging --->
        <CFIF GetIDs.RecordCOunt MOD 2>
                </TR>
        </CFIF>
        </TABLE>
</CFIF>

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : [EMAIL PROTECTED]
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: Chris Martin [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, May 16, 2001 4:22 PM
> To: CF-Talk
> Subject: Displaying a recordset as two columns
>
>
> Hi everyone.
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to