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
AxShockwaveFlash transparency problem
import a data from text file(with repeated column names)
HKLM\ RunOnce does not run until login
Install, boot Vista errors
Supress SQL login in MSACCESS on linked tables
Simple ADODB Connection Error
ADO ODBC to Centura SQL DB
Exchange 2007 - Test-SystemHealth (Upgrading servicepack 2)
VBS Script to remove/set folder inheritance
Sql query returning different results each time it is run even though conditions are the same.