jo15765
Well-known Member
- Joined
- Sep 23, 2011
- Messages
- 591
I have a listbox in Excel that is passed as a parameter to a SQL Server stored procedure. The issue I am running into is that some of the values in Excel listbox have an apostrophe, which throws a SQL Server error of
'Incorrect Syntax near ' (the apostrophe)
How can I check the value being passed before it leaves Excel to determine if I should double single quote the value from the listbox?
VBA Question
'Incorrect Syntax near ' (the apostrophe)
How can I check the value being passed before it leaves Excel to determine if I should double single quote the value from the listbox?
VBA Question