Another idea (while not necessarily a good one) would be: <cfif condition1> <CFSET max_results = "5"> <cfelse> <CFSET max_results = "99999999"> </cfif>
<cfquery name="NewsQ" datasource="#DSN#" maxrows="#max_results#"> SELECT * FROM TABLE </cfquery> ~Brad -----Original Message----- From: Barney Boisvert [mailto:[EMAIL PROTECTED] Sent: Monday, June 09, 2008 6:10 PM To: CF-Talk Subject: Re: Can't place a variable inside of a CF tag Check out attributeCollection, as long as you're on CF8. It lets you use a struct to supply attributes to tags. Other than that, you can't do it. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:307128 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

