Becky,

You can fix it by putting in a condition that is always true as the
first condition, therefore all following conditions can be prefaced with
the AND/OR (so you wont have to do a CFIF test)

Such as: (note the WHERE line)


 <cfquery name="qryGetApp" datasource="ITDATA">
 SELECT *
 FROM   qryCHECKOUT
 WHERE 0=0 AND
<cfloop list="#form.appid#" index="h">
   OR   AppID = #h# 
</cfloop> 

AND CheckIn IS NULL
ORDER BY AppName, AppVersion DESC
</cfquery>
 


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to