> <cfif condition1>
>  <CFSET max_results = "maxrows=5">
> <cfelse>
>  <CFSET max_results = "">
> </cfif>
>
> <cfquery name="NewsQ" datasource="#DSN#" #max_results#>
>  SELECT * FROM TABLE
> </cfquery>

There might be a sneaky way to achieve that, but alternately, you could just 
set maxrows to a really high number in the <cfelse> block.

-- Josh 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;192386516;25150098;k

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:307129
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to