Sandy,
Try this
<cffunction name="qry_orgsubset" access="remote" returntype="query">
<cfargument name="recordset" type="query" required="true">
<cfset var local=structnew()>
<cfset var temp = arguments.recordset>
<cfquery dbtype="query" name="local.rs_subset">
Select
App_No, Org_Name, Org_Unit, Org_Address1,
Org_Address2, Org_City,
Org_State, Org_Zip, Org_State_Other,
Org_Country
From temp
</cfquery>
<cfreturn local.rs_subset>
</cffunction>
HTH
On 9/19/05, Sandy Clark <[EMAIL PROTECTED]> wrote:
> I'm getting an error while trying to execute a q of q in a CFC.
>
> The error I am getting is "Complex object types cannot be converted to
> simple values." which seems to be coming from the "From" statement.
>
> <cffunction name="qry_orgsubset" access="remote" returntype="query">
> <cfargument name="recordset" type="query" required="true">
>
> <cfset var local="structnew()">
> <cfquery dbtype="query" name="local.rs_subset">
> Select
> App_No, Org_Name, Org_Unit, Org_Address1,
> Org_Address2, Org_City,
> Org_State, Org_Zip, Org_State_Other,
> Org_Country
> From #arguments.recordset#
> </cfquery>
> <cfreturn local.rs_subset>
> </cffunction>
>
> Can anyone shed any light on this? It's the first time I am attempting to
> use Query of Queries within a CFC.
>
> Sandy Clark
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:218606
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54