>> James Holmes said: Right - you are in a cfoutput loop and when there are
no results in
the query the variable "return" is never populated as the loop never
runs.

Ioannis,

James is exactly right.  Here's what you need:

<cfif Results.recordCount>
        <cfoutput query="Results">
..........  (I'm assuming Return is getting set to some other content here)
        </cfoutput>
<cfelse>
        <cfsavecontent variable="Return">
                There are no available sources at the moment.
        </cfsavecontent>
</cfif>
<cfreturn Return />


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

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310154
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