If all the first query is for is getting the data ready for the QoQ, you could rewrite it as:
<cfquery name="testme" datasource="#Request.DSN#"> SELECT Sum(Price) FROM tbl_AccOrders </cfquery> <cfoutput>#testme.pricetotal#</cfoutput> Still very simple and readable and no need for the QoQ (QoQ can be flaky at times and I try to avoid it where possible). I assume though that you use the data from the first query in other parts of the page. Dominic -- 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:300730 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

