Hi everyone,
I have a table with a field called Comment of data type "Long Text", and I want to make an update query that adds a certain text, say "abc" + what is already in the field to all lines except those which don't already have this text.
My query looks somthing like:
The above will always update 0 rows no matter what I do with the condition. As a matter of fact, I'm not even able to make a SELECT query using a WHERE-clause with this field. Even after converting it to Short Text. I can only guess that this has to do with the new line characters in the string; it's the only idea I have.
Does anyone know of a way to solve or circumvent this issue?
Thank you very much
I have a table with a field called Comment of data type "Long Text", and I want to make an update query that adds a certain text, say "abc" + what is already in the field to all lines except those which don't already have this text.
My query looks somthing like:
Code:
Update tbl_a SET tbl_a.Comment = "abc" & Chr(13) & Chr(10) & tbl_a.Comment WHERE Not InStr(tbl_a.Comment, "abc");
The above will always update 0 rows no matter what I do with the condition. As a matter of fact, I'm not even able to make a SELECT query using a WHERE-clause with this field. Even after converting it to Short Text. I can only guess that this has to do with the new line characters in the string; it's the only idea I have.
Does anyone know of a way to solve or circumvent this issue?
Thank you very much