Results 1 to 4 of 4

Thread: Get caption from field

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274

    Post

    When you design the tables of a database, you can add a descripcion, caption, comment or message to each field.

    How can I get this descripcion of each field using RDO?

    Any idea will be deeply appreciated.

    Thanks!

    Tonatiuh

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

    Post

    It's not in the database, it appears to be a PROPERTY. Which one, I'm not sure...

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    May 1999
    Location
    Reynosa, Mexico
    Posts
    274

    Post

    ADO fields, have a property called 'Properties' and one of that returns de description of the field but, RDO column doesn't have this property or any other which seems that.

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    I'm not familiar with RDO, but I'm assuming it's kinda like ADO, where I could only get 3 properties for a field. I was able to get 25 fields using Jet, most of which you are looking for......

    Dim db As Database
    Dim rs As Recordset
    Dim tbl As TableDef
    Dim I As Long

    Set db = DBEngine.OpenDatabase("biblio.mdb")

    Set tbl = db.TableDefs("Authors")

    For I = 0 To 24
    MsgBox tbl.Fields("Au_ID").Properties(I).Name
    Next I

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