Subject: Can someone perlease tell me what’s wrong with this code
Check Len(strComments) and Len(strComments1) to see what they return. Store the new value in a string and see what it evaluates to. It could be that your field is configured incorrectly to display the value you want to show. Are either of the comment fields RichText? Those have to be handled differently.
And finally, a new line sequence is actually two characters: Chr$(13) & Chr$(10). That’s a carriage return and a new line.
Subject: Can someone perlease tell me what’s wrong with this code
Steven,
There are things I wouldn’t do, which you’ve done, but I don’t know that they’re wrong or causing your problem. In terms of troubleshooting, I would try just using docB.replaceitemvalue ( “Comments”, strComments & " – " & " Sub Comments : " & strComments1 ) to see if the hard carriage returns or the plus signs (+) are an issue.