Microsoft
Software
Hardware
Network
Question : How to write SQL with string containing an apostrophe
This statment works fine until the 'SelectedCompany' contains an apostrophe
SQLstatement = "SELECT * " _
& "FROM tbContactsNonClients " _
& "WHERE Company = '" & SelectedCompany & "';"
How do I accomodate a string with an apostrophe since I'm using the 'single quotes' to avoid conflict among the "double quotes"?
Answer : How to write SQL with string containing an apostrophe
you can do this
SQLstatement = "SELECT * " _
& "FROM tbContactsNonClients " _
& "WHERE Company = " & chr(34) & SelectedCompany & chr(34)
Random Solutions
outlook express contacts to blackberry 8530
How to send large files by E-mail...
Powerpoint 2003. Excel embedded items returning an error
Excel 2007 Column Chart Width
Custom install of MSOffice 2007 via GPO
Create batch .bat file that does not wait for an application
Backup Script for Oracle database backup
SQL2005 lost 5000 records ? Possible to recover (file to download)
ADMT 3.0 example include file
BitmapData pointer in C#