Developer
Developer at UltraDNT.com
Fri Oct 17 14:46:36 CDT 2003
>problems for last Names thats have apostrophe
You need double singles for these names (or any value in a sql string
with an apostrophe in it). Surround the value with a Replace ...
Replace(arecord(0), "'","''")
I notice a lot of 97 on the list, Replace is only in 2k+. I have a
function for 97 somewhere, but you could write it with mid, loop the
string, put in '' if you find '
Hth,
Steve
-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of
Oleg_123 at xuppa.com
Sent: Friday, October 17, 2003 11:28 AM
To: accessd at databaseadvisors.com
Subject: RE: [AccessD] still struggling with inserting to access table
> Are any of the values strings? If so they need to be wrapped in
> single quotes.
>
> Values('" & aRecord(0) & "', " &...
I know but that keeps creating additional problems for last Names thats
have apostrophe (now it thinks that O is one field and Brian is the next
one) The funny thing is that I had to do 7 commands that transfer data
from and back to txt/csv code, I did 6, and stuck on this one. I am
thinking since this particalur data is coming from csv, to just have a
macro there that would mid() that date field...
>
-----------------------------------------
Get Breaking News from CNN, ABC, NBC, CBS Now.
http://www.xuppa.com/news/?link=webmail
_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com