Wrox Home  
Search P2P Archive for: Go

  Return to Index  

sql_language thread: Inserting text into a field that contains commas and apostrophes


Message #1 by "Lloyd Levine" <levinll@m...> on Wed, 3 Oct 2001 17:07:42
You can either check the string before inserting and escape the "bad"
characters, or use ADO and command objects along with an Insert Query.  The
command objects will handle the "bad" characters for you automagically.

-- Tomm

> -----Original Message-----
> From: Lloyd Levine [mailto:levinll@m...]
> Sent: Wednesday, October 03, 2001 5:08 PM
> To: sql language
> Subject: [sql_language] Inserting text into a field that contains commas
> and apostrophes
>
>
> I have a VB front end with an Access back end. I want to give my
> users the
> ability to enter text that may have commas and apostrophes. Is this
> possible ?
>
> Currently if they use either a comma or an apostrophe the app
> generates an
> error.


  Return to Index