A
Apprentice
I am trying two different lines of code to replace a common symbol that is
created in a memo field when text is cut from MS Word and pasted into the
field.
But instead of replacing the symbol, both are actually adding the symbol..
amaizing. Hope someone can help on this..
Code 1:
UPDATE ReviewBackGrnd SET Background = Replace(Background,Chr(13),Chr(13) &
Chr(10))
WHERE Background Like "*" & Chr(13) & "*";
Code 2:
UPDATE ReviewBackGrnd SET Background = IIf([Background] Is Not
Null,Replace([Background],Chr(13),Chr(13) & Chr(10)),Null) WHERE Background
Like "*" & Chr(13) & "*";
Thanks
created in a memo field when text is cut from MS Word and pasted into the
field.
But instead of replacing the symbol, both are actually adding the symbol..
amaizing. Hope someone can help on this..
Code 1:
UPDATE ReviewBackGrnd SET Background = Replace(Background,Chr(13),Chr(13) &
Chr(10))
WHERE Background Like "*" & Chr(13) & "*";
Code 2:
UPDATE ReviewBackGrnd SET Background = IIf([Background] Is Not
Null,Replace([Background],Chr(13),Chr(13) & Chr(10)),Null) WHERE Background
Like "*" & Chr(13) & "*";
Thanks