> The constant "vbCRLf" doesn't work in an update query but I wrote up a
> little
> bit of code and that took care of it. Thanks!
>
> My code is far from good but in case it will someone else...
>
> rs.MoveFirst
> Do
> With rs
> If Not IsNull(rs![comments]) Then
> .Edit
> ![comments] = Replace(rs![comments], vbCrLf, " ")
> .Update
> End If
> End With
>
> rs.MoveNext
> If rs.EOF Then
> Exit Do
> End If
> Loop
>
>
>
> "Douglas J. Steele" wrote:
>
>> Replace(TextToChange, vbCrLf, " ")
>>
>> --
>> Doug Steele, Microsoft Access MVP
>>
http://I.Am/DougSteele>> (no private e-mails, please)
>>
>>
>> "Sandie" <Sandie[ at ]discussions.microsoft.com> wrote in message
>> news:5490CC30-8BF4-402C-8776-A3AAB18F5B3F[ at ]microsoft.com...
>> > Hi,
>> >
>> > I need to export data from a memo field to a tab delimited text file.
>> > But I need to strip out the carriage returns in the memo field. Any
>> > suggestions on how to do this?
>> >
>> > I don't see the characters in the text file so it's I don't know how
>> > to
>> > tell if they are gone (I tried the Replace function).
>> >
>> > Thanks in Advance.
>> >
>>
>>
>>