Eric J. Hoffman wrote: > looks perfect SQL, thats what freaks me. > example: customer_contact.phone LIKE '%952%' OR customer_contact.phone LIKE > '%651%' > so that makes that line: AND (customer_contact.phone LIKE '%952%' OR > customer_contact.phone LIKE '%651%' )
It is correct SQL until you factor in that CF doubles the single quotes. Might the % be the MODULO operator in your particular SQL dialect? Anyhow, use the code I sent you, it solves some style issues and uses cfqueryparam instead of passthrough SQL. Jochem ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199817 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

