I think I see what you are saying now. You want to examine the query objects in memory for that the specific request which errored at the time it errors, but you can't access the variables scope in the error logging code. I know that I reference form, url, server, client, and some others, but I can't say that I have referenced the variables scope before. I would have try mess around and try it. I wonder if you have to do something special like caller.
How are you trapping the errors? Cfcatch, or onerror()? -----Original Message----- From: Claude Schneegans [mailto:[EMAIL PROTECTED] Sent: Monday, June 11, 2007 8:11 AM To: CF-Talk Subject: Re: Finding current queries >><cfoutput> <cfloop collection="#variables#" item="i"> <cfif isquery(variables[i])> #i#: #variables[i].recordcount# records<br> </cfif> </cfloop> </cfoutput> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| ColdFusion MX7 by AdobeĀ® Dyncamically transform webcontent into Adobe PDF with new ColdFusion MX7. Free Trial. http://www.adobe.com/products/coldfusion?sdid=RVJV Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:280667 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

