Results 1 to 4 of 4

Thread: Display "TEXT" type field in VB

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    U.S.A
    Posts
    12

    Post

    I use ADO to get a recordset that is returned from SQL store procedure.
    I can display all of the fields value in the
    recordset but I got "Runtime Error" when I try to display the "TEXT" type field.
    Here is the one line code that generates the error :

    txtMemo.Text = rsep("EpisodeMemo")

    in recordset all the text field is not empty.

    Why this happen?
    Thanks advanced.


  2. #2

    Thread Starter
    New Member
    Join Date
    Dec 1999
    Location
    U.S.A
    Posts
    12

    Post

    Thanks. I just found out that I should set the recordset cursor type to "adOpenKeyset" not "adforwardonly".

  3. #3
    Lively Member
    Join Date
    Jan 2000
    Location
    Springfield, IL
    Posts
    124

    Post

    What type of runtime error are you getting?

  4. #4
    New Member
    Join Date
    Jan 2000
    Location
    canada
    Posts
    15

    Post

    It is because of the reference that you are making. I think your code should be something like that.

    txtMemo.text = rsep("EpisodeMemo").value

    That will put the field value in the text propertie instead of trying to assign the field reference to a the text property of the box.

    Good luck

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width