> ok... i tried both suggestions and am still getting the > same error: > > here is my new code: > > <cfquery name="currentQuery" datasource="commodityHistory"> > SELECT * FROM price WHERE ID = (SELECT MAX(ID) FROM price) > </cfquery> > > ... > > and here is the error message: > Element REPVOL is undefined in CURRENT QUERY
My guess is that you don't have a field called REPVOL in the PRICE table. You can see exactly what's in the query object using CFDUMP, before your output code: <cfdump var="#CurrentQuery#"><cfabort> Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ voice: (202) 797-5496 fax: (202) 797-5444 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

