Click here to Skip to main content
15,888,968 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a mdb with multiple tables, i want to get the list of table definitions (ignore system tables) and fields inside each table.
I used DAO to get the data in vb6 but i want to use vb.net and access 2010.

I am new to vb .net so if possible please share sample code.

Thanks.
Posted

1 solution

Forget about DAO. ADOX[^] is what you're looking for.
Listing the Tables in an Access Database[^]
Creating and Modifying Access Tables[^]
 
Share this answer
 
Comments
Member 20 16-Jan-14 16:47pm    
Thanks for the links, i am checking.
How to verify system tables are present or not?
Maciej Los 16-Jan-14 16:50pm    
Just follow the links (second one - contains infrormation about system tables).
Member 20 21-Jan-14 15:22pm    
Hi,
Can you share example of oledb instead of ADOX.
I have to use adodb or oledb, i am getting list of tables using GetOleDbSchemaTable, but i am not able to access the columns inside each table in .accdb.

Thanks.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900