473,406 Members | 2,956 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Error in display output from cfquery

I have query which count all data in table and I try to display the output of count but I got an error
here the code

Expand|Select|Wrap|Line Numbers
  1. <cfquery name="countDATA" datasource="#ds#">
  2.     select count(quest_id)
  3.     from survey_question
  4. </cfquery>
  5.  
  6.  <cfset t = #countDATA#>
  7.      #t#
Error is
- Complex object types cannot be converted to simple values. in line 481

481 : #t#
I'm new in coldfusion,
tq.. :)
Jan 22 '13 #1
1 6908
acoder
16,027 Expert Mod 8TB
#t# is the query object. You need to access the field name, e.g. #t.field_name#
Jan 22 '13 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Drydo | last post by:
In short, is it possible to swap/change the display output of a laptop to a CRT programmatically? The scenario is that we have a laptop that at the startup of a specific application would...
6
by: radnoraj | last post by:
Hi, I am sucessfull in redirecting console output to a file. but in this case nothing is displayed on the console, cout output is written to file without display. how do write the output to...
3
by: Joseph A Romeo | last post by:
I have written an XSLT transformation on an ASP.NET page. The resulting HTML is primarily a table of links. I have found that when the resulting HTML is less than or equal to 16040 bytes, the...
2
by: Siji | last post by:
Hi, I am currently developing a model (numerical computation) for a project. I have this problem with some of the results I get from the output. The output sometimes display this value -1.#IND for...
3
by: robin9876 | last post by:
In an asp.net (VB) web page I have created a HTML table that has some server side labels which has information populated to at runtime from code. This works for when there is only one recorded...
3
by: Rich | last post by:
Hi, I'm very, very new to javascript, so please bear with me if this is a silly question. My problem is this. I would like to some javascript connect to a URL on the same webserver and...
0
by: ravescar | last post by:
I am currently working on an generic error collection mechanism in ASP.NET2.0 written using C# that can catch unhandled exception on a web application in application level. it automatically save an...
0
by: Luke Herbert | last post by:
I am very new to C# and have been trying to get to grips with it by writing a small tool to detect a USB key being inserted and then backup user specified files to the key. I have written some...
0
by: netventuresmarketing | last post by:
Ok so you have already figured out with a name like netventuresmarketing that Im a Internet marketing type trying to teach myself some simple PHP. I purchased a turnkey program to set up a free...
3
by: zelmila19 | last post by:
Hi, Can someone tell me what's wrong with my code cos when I test the program, it always gives me the fee as 20 for everything...... #include <iostream> using std::cout; using std::cin;...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.