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
Looking for a file monitoring utility
Problem with default values in SSRS2008
Server 2008R2 and XP Roaming Profiles
How to limit internet browsing using group policy
Terminal Server 2003 copy and paste files to and from XP Pro clients?
Access 2003: shell command - quest 2
MSSQLSERVER/SQLEXPRESS NOT SHOWING???
Error While Importing Microsoft CRM 4.0 Database
C# HTTP Request with redirect and authentification
Close form in access and abandon half fillled record - without any access messages/Have a button/event do the same thing as the escape key.