what's the code you're using to create the cookie? if you're trying to dump the whole query object into a cookie, won't work. regardless of whether or not there's only 1 record/1 column returned, a query is still a complex object.
On 10/7/05, Rob Redford <[EMAIL PROTECTED]> wrote: > The reasons for this are not important, but I need to get the result > of the following query into a cookie: > > BEGIN TRANSACTION > UPDATE LinkShareMaxID SET LinkShareUID = LinkShareUID + 1 > SELECT LinkShareUID FROM LinkShareMaxID > COMMIT TRANSACTION > > The results of the query (I thought) return a simple integer, but I > get the following error message: > ________________________________ > > Complex object types cannot be converted to simple values. > > The expression has requested a variable or an intermediate expression > result as a simple value, however, the result cannot be converted to a > simple value. Simple values are strings, numbers, boolean values, and > date/time values. Queries, arrays, and COM objects are examples of > complex values. <p> The most likely cause of the error is that you are > trying to use a complex value as a simple one. For example, you might > be trying to use a query variable in a <CFIF> tag. This was > possible in ColdFusion 2.0 but creates an error in later versions. > ____________________________________ > > How can I get that value into a cookie? > > Thanks, > Rob > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:220392 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

