I have a WHERE statement that I'm building, but I am having trouble adding 
cfqueryparam to the agency field.  This is Oracle and the agency field is a 
varchar2(100).  While I've simplified the query for the posting, it gives 
displays the problem.

SELECT *
FROM internships
WHERE 1=1
<cfif Form.agency neq ""> 
     <!---AND UPPER(agency) like UPPER('%#form.agency#%')--->
    AND UPPER(agency) like UPPER('%<cfqueryparam value="#form.agency#" 
cfsqltype="cf_sql_varchar">%')
</cfif>
AND r >= <cfqueryparam value="#url.begin_num#" cfsqltype="cf_sql_integer"> AND 
r <= <cfqueryparam value="#url.end_num#" cfsqltype="cf_sql_integer">

This works if I use the commented out agency line.  If I use the agency line 
with CFQueryParam it gives an error, "Invalid Parameter Bindings" on the 
following cfQueryParams (the last ones).  If I use the commented-out agency 
line, it gives no error.

thanks.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:191721
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

Reply via email to