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
How do you restore a smaller partition image of Windows XP onto a larger disk and still have Windows XP boot up recognizing the larger disk size?
Using rtrim in my query
Unable to join a Win2008 server to a Windows 2008 Domain
Script Error; line 2057; res://ieframe.dll.preview.<wbr />js
IF Statement with Index formula
How to configure a WSUS in 2008 Active Directory Domain
C# equation to Compress string
MS DOS looping
Symantec Enterprise Vault - shared mailbox archive access in Outlook
close a popup menu