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
iphlpapi on windows 2000
The "Set Value' Macro action cannot be run in disable mode. in MS Access 2007
2007 Microsoft Access Database with SBS 2003 Standard
Get month by month total count
viewing pictures in outlook 2007
SQL Update Statement Help Needed - in an Access ADP
Begin Trans.Commit Trans.Rollback Trans
SetFont in CListBox
Automatic Update Query
Can not register DNS for new 2003 domain controller. Using infoblox appliance for dns.