As a side note, cfdump will output a complex value automatically (i.e. objects such as queries, structures and arrays - that is its usefullness). If you had done, <cfoutput>#lastId#</cfoutput>, you would have received an error.
HTH Dominic On 18/03/2008, Dominic Watson <[EMAIL PROTECTED]> wrote: > > There is the error, you are returning a query from that function and > tryuing to use it as a simple value :) > > Try this: > > <cfset lastId = GetLastId().Expr1> > > Dominic > > -- > Blog it up: http://fusion.dominicwatson.co.uk > -- Blog it up: http://fusion.dominicwatson.co.uk ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:301528 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

