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 to import multiple contacts into office communicator 2007?
Can't open a .xlsx file when attached to an Outlook email
Cumulative Count in a Query
Outlook 2010 Offline mode - can't bring online
Microsoft SQL Server Migration Assistant for Access Problem -- "There is nothing to process"
How to use the Switch case in the Report Expression effectively
SQL Function Question
Can I sync Contacts and Calendar with my ITouch
How do I create a Public Folder using Exchange Online through Microsoft Online Services?
How do I insert an automatic check box for Word 2007