Thanks James. That does work if you assume that display is the query name, but what if the query name is stored in an attributes.queryname value? I've played around with what you gave me but I can't seem to get it to work. any thoughts?
-----Original Message----- From: James Holmes [mailto:[EMAIL PROTECTED] Sent: Monday, October 18, 2004 10:30 PM To: CF-Talk Subject: RE: custom tag help Assuming the attribute is ATTRIBUTES.FIELDNAME, <cfoutput query="display">#display[attributes.fieldname][display.currentrow]#</cfoutpu t> will do the job. -----Original Message----- From: Phillip Perry [mailto:[EMAIL PROTECTED] Sent: Tuesday, 19 October 2004 10:12 To: CF-Talk Subject: custom tag help Hi, I'm messing with custom tags and am doing pretty basic stuff (i think) to get used to using them. the tag does the following query.... <cfquery datasource="dataname" name="display"> SELECT * FROM table_name </cfquery> I've determined this works, but obviously this isn't very useful as is. I added an attribute that gets the field name and displays the info from the field to the screen something like this... <cfoutput query="display">#feildname#</cfoutput> but that doesnt work. I put the field name in a variable and instead of displaying the value of the field its displaying the variable name. How can I make this display the value of the field instead of the value of the attribute? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Protect your mail server with built in anti-virus protection. It's not only good for you, it's good for everybody. http://www.houseoffusion.com/banners/view.cfm?bannerid=39 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:181805 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

