If the only reason you are running a query is to perform authentication, why not move the query into the custom tag? As for the code working when the query is above the CT, remember that CF processes from the top down.
For example, you can't do this: <cfoutput>#x#</cfoutput> <cfset x = 1> So it makes sense you can't do: <cf_authent query="blah"> <cfquery name="blah"> ... </cfquery> ======================================================================= Raymond Camden, ColdFusion Jedi Master for Hire Email : [EMAIL PROTECTED] Yahoo IM : cfjedimaster "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: Robertson-Ravo, Neil (REC) > [mailto:[EMAIL PROTECTED]] > Sent: Thursday, August 22, 2002 7:05 AM > To: CF-Talk > Subject: Caller problem > > > I have a custom tag which relies on getting a query result of users n > passwords for authentication etc.... the tag is called and it > reads in a > query, but it will only work if the query is immediately > above the CT call. > > If I try and place the query into a custom tag itself it > doesnt work... I > get a caller error.... is there anywhere around this? > > i.e. > > <cfquery name="blah"> > .... > </cfquery> > > <cf_authent query="blah"> > > (This one works......) > > > <cf_users method="get"> (where get holds the query above) > > <cf_authent query="blah"> > > (this doesnt, I get a caller error...) > > Its thursday, and I have a Monday brain fart :-) I guess its > because the CT > scope is not available for some reason? > > Neil > ______________________________________________________________________ This list and all House of Fusion resources hosted by CFHosting.com. The place for dependable ColdFusion Hosting. FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

