Use preservesinglequotes() in your insert statement.

jon
----- Original Message -----
From: "Paul's Mail" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Thursday, January 25, 2001 6:06 PM
Subject: Small problem and banning O'Conners


> I am inserting data from various sources into an Access table using SQL
> Insert Into statement and having a problem with the insert stopping when
it
> reaches a '#name#' with a hyphen in it eg O'Conner.
> The hyphen is taken as enclosing the text field and so causes the
statement
> to report a syntax fault.
> Is there any simple work around this besides banning O'Conners etc?
>
> Paul Burgess
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to