You can get a comma-delimited list of all the values in any query column
using the ValueList() function.  You can also use the RecordCOunt property
of a query to see how many rows it returned.  Example:

<CFQUERY DATASOURCE="myDB" NAME="Q">SELECT id FROM myTable</CFQUERY>
<CFSET idList=ValueList(Q.id)>
<CFSET idCount=Q.RecordCount>

-Rick

-----Original Message-----
From: aslam bajaria [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 01, 2000 4:35 PM
To: [EMAIL PROTECTED]
Subject: cfloop question


Hi All,
Here is the situation:

I have a query that is giving about 5 results. They
all have a id. Therefore, I am getting 5 ids as a
result of the query.

How do I append it into a list automatically? Can
someone help?

What would I do if I don't know how many number of
id's I am going to get ?

Appreciate.
A.B.

__________________________________________________
Do You Yahoo!?
Kick off your party with Yahoo! Invites.
http://invites.yahoo.com/
----------------------------------------------------------------------------
--
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to