Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

With the code down here, I can find all the Table Names of a database in Access, but ........ I like to know also the query-names of that database.

 

Can anybody tell me how to do this ? ?

I can't find it.

I'am from the Netherlands so the code is not all English.

 

Greetings Bas.


     Try
        objConnection.Open()
        dbTableNames = objConnection.GetOleDbSchemaTable(System.Data.OleDb.OleDbSchemaGuid.Tables, New Object() {Nothing, Nothing, Nothing, "TABLE"})
     Catch ex As Exception
        MessageBox.Show(ex.Message)
     End Try
     objConnection.Close()
     Dim TabelNaam As String
     Dim nr As Int16 = 0

     For Each drTabelNamen In dbTableNames.Rows
        TabelNaam = drTabelNamen.Item(2).ToString
        MakeTabbleButtons(TabelNaam, nr)
        nr = nr + 1
     Next

.........

.........

Edited by PlausiblyDamp

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...