That did it Brian, thanks

Changed to vRecordset and no problems.  Also took the "" out of the
structnew() thanks for catching that as well (don't know how that happened) 

-----Original Message-----
From: Brian Kotek [mailto:[EMAIL PROTECTED] 
Sent: Monday, September 19, 2005 10:06 AM
To: CF-Talk
Subject: Re: Error with Query of Query in a CFC

Couple things Sandy, first shouldn't you have this:

 <cfset var local=structNew() />

(you're setting it to the string "structnew()").

And second, try using just "from arguments.recordset" instead of "from
#arguments.recordset#. Note that recordset could well be a reserved work in
QofQ so you might also try using another name. I ran into a similar
situation where I was going crazy trying to figure out why a QofQ was
breaking until I found out that "local" is a reserved word for QofQ!

hth,

Brian 

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:218608
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

Reply via email to