Worked real goooood Mike. Thanks! 

I'm going to make note of this for future use. That's how to learn this at 
times.

Robert O.

 -----Original Message-----
From:   Mike Tangorre [mailto:[EMAIL PROTECTED] 
Sent:   Wednesday, October 18, 2006 11:14 AM
To:     CF-Talk
Subject:        Re: Select/combine two years

From: "Orlini, Robert" <[EMAIL PROTECTED]>
> <cfloop list="#form.year#" index="i">
>
> <cfquery name="getlist" dataSource="printprices">
> SELECT * FROM purchases
> where year = '#i#'
> order by orderid desc
> </cfquery>
>
> </cfloop>

<cfquery name="getlist" dataSource="printprices">
SELECT
    *
FROM
    purchases
WHERE
    year IN (<cfqueryparam .... list="true".... value="#trim(form.year)#" 
/>)
ORDER BY
    orderid desc
</cfquery> 






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:257213
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to