Thanks willir, I tried this, but no joy.
For some reason VBA/SQL just doesn't seem to treat the string variable as one variable - it's continuing to evaluate the contents of the string and split it up into more than one string in some cases.
Grrrrr
PS Thanks for the reply PHV
The process was actually inserting 92 records into the fields, so I looked at the unique ID immediately after these records, which is:
A2051864567! 66! Bar
This is suspiciously like the way we reference objects in Access, and once I removed this code from the...
That's the strange thing - I just can't understand why it would be giving me that error. Here's the SQL:
DoCmd.RunSQL ("INSERT INTO CONC_INTERESTS (ID, INTERESTS) VALUES ('" & strAccountno & "', '" & strInterests & "') ")
The only fields in the CONC_INTERESTS table are the ID and INTERESTS...
Hi folks
I'm trying to use a DoCmd runSQL to insert recordset results into a table. I can do it successfully using a rst.addnew method if I declare the table as a recordset however I'd rather use the SQL Method.
I can provide the code if need be - just hoping someone may be familiar with this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.