it is not very clear what you mean...
are the 2 queries in the same cfc method or in different
methods?
if they are in 2 different methods (functions) of the same
cfc, then
just call the first function from the second function to get
the result
o the first function into a var:
<cfcomponent>
<cffunction name='f1' returntype='numeric' access='public'
output='no'>
<cfset var q1 = ''>
<cfquery name='q1' datasource='...'>
SELECT x FROM y WHERE ...
</cfquery>
<cfreturn q1.recordcount />
</cffunction>
<cffunction name='f2' returntype='numeric' access='public'
output='no'>
<cfset var f1q1recordcount = function1()>
<cfreturn f1q1recordcount />
</cffunction>
</cfcomponent>
if function f1 was in a separate cfc, then you just invoke
that cfc in
the f2 function via your preferred method, i.e.:
<cffunction name='f2' returntype='numeric' access='public'
output='no'>
<cfset objOtherCFC = createobject('component',
'path.to.other.cfc')>
<cfset var f1q1recordcount = objOtherCFC.function1()>
<cfreturn f1q1recordcount />
</cffunction>
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/