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. get the tables names from mdb file

get the tables names from mdb file

Scheduled Pinned Locked Moved Visual Basic
help
2 Posts 2 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.
  • E Offline
    E Offline
    enmahdi
    wrote on last edited by
    #1

    I want to get tables Name in a Access (mdb) file and my quary is "select * from msysobject where type = 1 and flags = 0" but the exeption with the text " Records can not be read ; no permision on'msysobjects'" has happend please help me about this problem .

    R 1 Reply Last reply
    0
    • E enmahdi

      I want to get tables Name in a Access (mdb) file and my quary is "select * from msysobject where type = 1 and flags = 0" but the exeption with the text " Records can not be read ; no permision on'msysobjects'" has happend please help me about this problem .

      R Offline
      R Offline
      Rupesh Kumar Swami
      wrote on last edited by
      #2

      hi, use following code here cnn is connection object Dim Schema As DataTable = cnn.GetOleDbSchemaTable _ (OleDbSchemaGuid.Tables, New Object() {Nothing, Nothing, Nothing, "TABLE"}) For Each row As DataRow In Schema.Rows If Not row.Item(2).ToString.StartsWith("~") Then Me.ComboBox1.Items.Add(row.Item(2).ToString) End If Next hope this helps

      Rupesh Kumar Swami Software Engineer, Integrated Solution, Bikaner (India) My Company

      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