Create a Database, Tables, Columns and Indexes Using ADOX

Category:
Database
Type:
Snippets
Difficulty:
Intermediate
Author:
Anonymous

Version Compatibility: Visual Basic 6, Visual Basic 5

More information:
Shows how to create an Access 2000 database and append tables, fields, indexes using ADOX. Don't forget a reference to ADOX; Microsoft ADO Ext. 2.x for DDL and Security.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: