Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Two difficult ADO questions

Two difficult ADO questions

Scheduled Pinned Locked Moved Visual Basic
databasetutorial
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    ssteo
    wrote on last edited by
    #1

    1. I have one Access .mdb file. How to read the names of the tables in it, using ADO 2. In the same database, how to read the description field of each column, using ADO again Any answer will be helpfull. Thanx in advance!!!

    B O 2 Replies Last reply
    0
    • S ssteo

      1. I have one Access .mdb file. How to read the names of the tables in it, using ADO 2. In the same database, how to read the description field of each column, using ADO again Any answer will be helpfull. Thanx in advance!!!

      B Offline
      B Offline
      Bill Wilson
      wrote on last edited by
      #2

      ADO object model doesn't permit this. DAO has the objects and methods you need:

      Database object
      TableDefs collection
      TableDef
      Fields collection

      Hope this helps, Bill

      1 Reply Last reply
      0
      • S ssteo

        1. I have one Access .mdb file. How to read the names of the tables in it, using ADO 2. In the same database, how to read the description field of each column, using ADO again Any answer will be helpfull. Thanx in advance!!!

        O Offline
        O Offline
        Oyvind Bratland
        wrote on last edited by
        #3

        1. This can be done using the OpenSchema method of ADODB.Connection. Set rs = myADOConnection.OpenSchema(adSchemaTables) While Not rs.EOF debug.print rs!TABLE_NAME rs.MoveNext Wend 2. Don't know, but check out the OpenSchema method. Øyvind

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups