If G18 (svendor) contains 12345, no probelm. If G18 contains abcde, run time error. Where in this code is datatype specified other than string??![]()
Please Login or Register to view this content.
Thanks in advance for your help...
If G18 (svendor) contains 12345, no probelm. If G18 contains abcde, run time error. Where in this code is datatype specified other than string??![]()
Please Login or Register to view this content.
Thanks in advance for your help...
Last edited by Leith Ross; 05-06-2010 at 01:35 PM. Reason: Corrected Code Tags
I suspect the SQL would require the string variable be encased within ' ' ... it will work for a numeric string as is as you can use
SELECT 123 FROM TABLE WHERE 1=1
whereas you can not use
SELECT Apple FROM TABLE WHERE 1=1
it would expect Apple to be a field name in the TABLE - this is seemingly not the case here...
SELECT 'Apple' FROM TABLE WHERE 1=1
(syntax may vary pending backend platform)
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks