oops the last message left out a double quote here is the corrected version
listname = "'" & LISTCHANGEDELIMS(listname, "','", ",") & "'" inside query: preservesinglequotes(listname) ----- Original Message ----- From: <[EMAIL PROTECTED]> To: "CF-Talk" <[EMAIL PROTECTED]> Sent: Wednesday, December 12, 2001 5:37 PM Subject: Problems with single quotes and comma list > Hey there, right now I've got a little puzzle I can't seem to solve right > now I have a string > > 91766,91777,91778 (basically a comma delimited list of zip codes) > > That I need to fix up with single quotation marks so I can search against > in > a database string, basically like this > > '91766','91777','91778' etc. > > How would you go about doing this? All the functions I've tried seem to > have > problems with the single quotes vs. double quotes. Thanks! > > > Gregory Harris > [EMAIL PROTECTED] > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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

