Converting Memo to String(VB & Access)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • getmeidea
    New Member
    • Feb 2007
    • 36

    Converting Memo to String(VB & Access)

    I want to get the function which will convert the memo type value stored in Access to Continuous string in VB.
    Eg: The field Address in EmployeeInfo table contains Address field with Memo datatype. And one value entered in VB is
    David,
    Bangalore,
    Karnataka.

    When i access this vaue using VB, i want to get a continuous string value like "David,Bangalor e,Karnataka."

    What function i can use for this ?
  • getmeidea
    New Member
    • Feb 2007
    • 36

    #2
    Originally posted by getmeidea
    I want to get the function which will convert the memo type value stored in Access to Continuous string in VB.
    Eg: The field Address in EmployeeInfo table contains Address field with Memo datatype. And one value entered in VB is
    David,
    Bangalore,
    Karnataka.

    When i access this vaue using VB, i want to get a continuous string value like "David,Bangalor e,Karnataka."

    What function i can use for this ?
    Myself got the solution...I used the function
    Replace(rs("Add ress").Value, vbNewLine, ""))

    And now it is giving continuous string.

    Comment

    • vijaydiwakar
      Contributor
      • Feb 2007
      • 579

      #3
      Originally posted by getmeidea
      I want to get the function which will convert the memo type value stored in Access to Continuous string in VB.
      Eg: The field Address in EmployeeInfo table contains Address field with Memo datatype. And one value entered in VB is
      David,
      Bangalore,
      Karnataka.

      When i access this vaue using VB, i want to get a continuous string value like "David,Bangalor e,Karnataka."

      What function i can use for this ?
      try to use replace function with chr(13) to be replaced with space or whatevr u want

      Comment

      Working...