Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Automatic MDB views
Message
From
21/11/2002 09:20:09
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00725071
Message ID:
00725141
Views:
10
This message has been marked as the solution to the initial question of the thread.
>To all,
>
>I'd like to create an app that will open an Access database, interogate the mdb and build a set of views of the tables in the MDB.
>
>Is there a sample of code that will show me how to interogate an MDB with, say, DbGetProp()?
>
>Regards,
>Thom C.

Thom,

You can also do this with ADOX, see this simple example: (illustration purposes only)
adoxCat = CreateObject("ADOX.Catalog")
oCn = CreateObject("ADODB.Connection")

oCn.Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Temp\db1.mdb;")
adoxCat.ActiveConnection = oCn

For Each oTbl In adoxCat.Tables
	? oTbl.Name
	For Each oCol In oTbl.Columns
		? Chr(9), oCol.Name
	Next
Next

oCn.Close()
HTH
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform