Welcome to SPN

Register and Join the most happening forum of Sikh community & intellectuals from around the world.

Sign Up Now!

Line breaks in text imported by ODBC into Memo Fields

Discussion in 'Information Technology' started by Jerry K, Jul 28, 2006.

  1. Jerry K

    Jerry K
    Expand Collapse
    Guest

    I'm importing an OMNIS file. Long text fields go into Access memo fields, but
    line breaks in the text are left as a little square character. Is there a way
    to make the memo field separate the lines?
     
  2. Loading...

    Similar Threads Forum Date
    Khalsa Aid The Selfless Sikh Faith On The Frontline, A Documentary By BBC 2016 Sikh Organisations Nov 16, 2016
    Sikh News Veteran Sikh Soldiers To Inspire Young - Malay Mail Online Breaking News Aug 1, 2016
    Hard Talk Confused Islamophobes Target American Sikhs Online Hard Talk Apr 26, 2016
    Is There A Thin Line Between Love And Hate? Interfaith Dialogues Apr 25, 2016
    Hard Talk Taking One Liners Out Of Context From Gurbani To Allow Intellectual Independence? Hard Talk Apr 23, 2016

  3. Douglas J Steele

    Douglas J Steele
    Expand Collapse
    Guest

    The line breaks must be the combination of Carriage Return (Chr$(13)) and
    Line Feed (Chr$(10)), in that order (you can use the intrinsic constant
    vbCrLf). Odds are you've only got one of the two characters in your text.

    Try using the Replace function: either Replace([MyText], Chr$(13), Chr$(13)
    & Chr$(10)) or Replace([MyText], Chr$(10), Chr$(13) & Chr$(10)), depending
    on what's actually in your text.

    --
    Doug Steele, Microsoft Access MVP
    http://I.Am/DougSteele
    (no e-mails, please!)


    "Jerry K" <JerryK@discussions.microsoft.com> wrote in message
    news:88E96B7B-757B-4CD8-87F3-C7A543AD6BC9@microsoft.com...
    > I'm importing an OMNIS file. Long text fields go into Access memo fields,

    but
    > line breaks in the text are left as a little square character. Is there a

    way
    > to make the memo field separate the lines?
     

Share This Page