| View previous topic :: View next topic |
| Author |
Message |
EricBerg Newbie
Joined: 11 Oct 2005 Posts: 1
|
Posted: Oct 11th, 2005 01:49 PM Post subject: Need Help in reading names of tables in MySQL database |
|
|
I am trying to get a list of the various tables in a MySQL database. I can connect to the database with the following code:
Set cnn1 = New ADODB.Connection
cnn1.ConnectionString = "DSN=MyODBC;UID=root;PWD=password;"
cnn1.Open
If I'm using an access database I simply do:
With SelectedDatabase
For I = 0 To .TableDefs.Count - 1
cmbAccessTable.AddItem .TableDefs(I).Name
Next I
End With
How can I access the names of the various tables in MySQL database?
Kind Regards,
Eric |
|
| Back to top |
|
dougthomas Moderator
Joined: 27 Jul 2005 Posts: 271 Location: Essex, UK
|
Posted: Oct 12th, 2005 05:29 AM Post subject: |
|
|
Hi,
The information here:
[link]
may be of some use to you.
Regards
Doug _________________ If you can see the light at the end of the tunnel, it probably means there's a Train coming. |
|
| Back to top |
|
|