About 209,000 results
Open links in new tab
  1. excel - Passing Variable With Apostrophe To SQL Query - Stack Overflow

    Nov 29, 2016 · How should I encapsulate this variable with an apostrophe in order for SQL to compile properly? Try a replace as suggested here. Select * from testtable where arovaica = …

  2. mysql - Importing data from SQL to Excel adds apostrophe to string that ...

    Dec 23, 2016 · I use MySQL for Excel, and I am trying to import data from MySQL. One of the cells (fields) in MySQL contains the following string: ='WW24'!E7 Excel, by default, adds an …

  3. Apostrophe in Concatenation | MrExcel Message Board

    Jul 17, 2005 · This will probably seem like a very simple query, but I am trying to concatenate 2 columns of excel. One contains dates of birth and the next one contains a single apostrophe.

  4. Integrating Excel Cell References in SQL Queries – devgem.io

    Mar 5, 2025 · Learn how to integrate Excel cell references into SQL queries, exploring manual to fully automatic methods, including Microsoft Query, Power Query, and VBA solutions.

  5. Excel escaping quotes or apostrophes in cell values

    The best solution I have found is to use the following: =SUBSTITUTE(A1, "'", "''") This will replace all single quotes with two single quotes which, in T-SQL statements escapes the character and …

  6. Putting excel numbers in sql using formula : r/excel - Reddit

    Dec 30, 2021 · I usually use the formula ="'"&A2&"'" & "," & B1 to add the apostrophes and commas to the number, so I can place the number into sql, ready to query. I also add the …

  7. How to Escape Quoted Strings for SQL Statement used in

    Apr 6, 2017 · This article explores the use of a customised VBA function to escape quoted strings for SQL Statement used in Database anomaly.

  8. Problem with apostrophe when compiling SQL in VBA

    Mar 25, 2008 · All you really need to do is double up the apostrophe (single-quote). So you would enter Steve O’Toole as Steve O’'Toole. That’s two single. quotes, NOT a " (double-quote) …

  9. VBA errors when apostrophe or double quotes are in String value

    Dec 1, 2016 · I've tried different approaches for hours, but I can't get it to work. Here is where it has the error: coName = '" & tblDistinct.Fields ("coName").Value & I get run-time error …

  10. Apostrophe in extracted data interfering with code. - Microsoft SQL ...

    May 25, 2004 · I am using the ExcelSQL add-in to extract data from a series of cells in an Excel worksheet and then push them into a SQL table. The problem I've run into is that if the text in …