On Mon, Oct 14, 2013 at 11:01 AM, Jeff Johnson <[email protected]> wrote:

>
>>
>>
> Frank:  I am building a string for SQL Pass through and am getting an
> error.  How would I put that in a string:
>
> lcSQL = 'INSERT INTO DB.TABLE (astringfield, adatefield) VALUES ("' +
> m.string + '", ?m.MyDateTime)'
>
> -----------
>


You need single ' marks around your datetime just like your m.string.

-- 
Stephen Russell
Sr. Analyst
Ring Container Technology
Oakland TN

901.246-0159 cell


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/cajidmykrjrkvnwhycjvgxk1qgvqtht9f-agvan6f40yqw2f...@mail.gmail.com
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to