Results 1 to 6 of 6

Thread: Lengthening a text field?

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Question

    Hi,

    I have created a DAO database and have come across a big problem! The Database I have created was designed for large amounts of text, descriptions and the like. The problem is I can only fit very small amounts of text into each filed or I get an Error. Is there a way to lengthen the amount of text that an individual field will hold?

    Thanks
    rino_2
    Visual Basic, HTML
    Please Visit my Site: Richard's VB Site

  2. #2

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 1999
    Location
    Leeds, UK
    Posts
    287

    Smile How?

    Thanks for the info MartinLiss but could you please tell me how to change them to memo fields?
    rino_2
    Visual Basic, HTML
    Please Visit my Site: Richard's VB Site

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431
    Do you have Access? If so it's simple, just do Tables>Design then click in the Data Type field and choose Memo in the drop-down list.

    I'm not certain how to do it programatically (although I could figure it out), but to add a memo field you would do

    tdTableDef.CreateField(sFieldName, 12, nFieldSize)

    The "12" represents the memo field type, and when it's 12, nFieldSize is ignored.

  5. #5
    New Member
    Join Date
    Aug 2000
    Location
    Argentina
    Posts
    3

    Question I have problems with memo fields in the next step

    I've a ms access memo field and I'm working with ADO
    (on ASP, but i believe it doesn't matters)
    i'km trying to run an update query passing the memo field's content by parameter...
    Ok... here's the problem
    The only way to make it work is defining it's data-type as adVarChar, size 255.
    It works just fine with small strings (< 255 chars)... but I need more size...

    Any ideas ???

    Thanks
    Bestia Pop

    PD: Excuse my english...

  6. #6
    Frenzied Member
    Join Date
    Aug 1999
    Location
    Santa Clara, Ca , 95058
    Posts
    1,105

    Re: I have problems with memo fields in the next step

    Originally posted by Bestia_Pop
    I've a ms access memo field and I'm working with ADO
    (on ASP, but i believe it doesn't matters)
    i'km trying to run an update query passing the memo field's content by parameter...
    Ok... here's the problem
    The only way to make it work is defining it's data-type as adVarChar, size 255.
    It works just fine with small strings (< 255 chars)... but I need more size...

    Any ideas ???

    Thanks
    Bestia Pop

    PD: Excuse my english...
    Define a public (aka Global variable) and use that instead of a parameter.

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