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
Code retriving duplicated numbers.
Need to migrate off NT4 domain where in addition to NT4 server there are two 2003 servers and an SBS 2003 server on the network
AccesVB: Button that closes report
Making custom PowerPoint template the default for all users
Repeat Header Columns on each page of the Report..
Excel interop
Automation error in Vista CreateObject("InternetExpl<wbr />orer.appli<wbr />cation")
"Service Unavailable" for all ASP pages, but all html pages OK (intermittent)
Server 2008 to 2003 forest as a new Domain Controller
print small fonts (The number must be between 10 and 400...