CurrentRow only works if you're outputting a query as it is a variable returned by the query (check <cfquery> tag in the docs to find it).
I'm still fuzzy on why you can't use the Evaluate() ? That seems to solve your issue. That's what it's designed for, this very need. Dave -----Original Message----- From: Nick Sweeney [mailto:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 10:49 AM To: CF-Newbie Subject: RE: Dynamic Query Trouble Ok - I am really in a section of the woods I don't know very much about. But know thatI am goig to have to set up camp here in the future.... Paul, my script is not in a loop or output. A search/form is submitted to the page (itself) the page checks if it was submitted - if so, it runs some queries based on the submitted data. This cfset is assigning one of the variables I need to do another query. (if that helps) This last cfset returns the error: Variable CURRENTROW is undefined. How do I assign Currentrow? -Nick -----Original Message----- From: Paul Schwartz [mailto:[EMAIL PROTECTED] Sent: Friday, July 29, 2005 9:27 AM To: CF-Newbie Subject: Re: Dynamic Query Trouble is your cfset inside of an cfoutput or loop? if so you can try <cfset S1 = qryGetSearchType1[ColID1][CURRENTROW]> hope this helps Paul >Well - I tried this and I still get the error: > >[Table (rows 1 columns NATIONALITYID): [NATIONALITYID: >[EMAIL PROTECTED] ] is not indexable by NationalityID > >Why should I not use Evaluate? Too much Processor time or something? > >-Nick > >-----Original Message----- >From: James Holmes [mailto:[EMAIL PROTECTED] >Sent: Thursday, July 28, 2005 7:36 PM >To: CF-Newbie >Subject: RE: Dynamic Query Trouble > > >Don't use Evaluate(). > >You need <cfset S1 = qryGetSearchType1[ColID1][1]> > >(notice the row index as well). ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1366 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54
