I tried to merge two memo fields via ODBC but the length of the string is more than 255 characters. Is there any way to get around it? I can also do it in native VFP, but don't know how. Any suggestion?
You say that these are VFP tables. If that's right, you shouldn't be using ODBC. You can do it very easily with simple VFP commands.
Also, what do you mean by "merge"? How do you want to combine the two fields?
If you simply want to concatenate two memo fields into a third memo field, the following should work:
Code:
SELECT Table3
REPLACE Memo3 WITH Table1.Memo1 + Table2.Memo2
This code will concatenate the contents of Memo1 in Table1 with Memo2 in Table2, and put the result in Memo3 in Table3. You shouldn't get any truncation of 254 characters if you define Memo3 as a memo field rather than a character field.
If this doesn't answer your question, could you please clarify what you are trying to achieve.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
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.