Solved

Creating an MS Access database from ADO?

Posted on 2002-07-16
5
152 Views
Last Modified: 2010-05-02
I need to CREATE from scratch an MS Access database with tables and fields all from scratch using ADO... Where do I start?


Using DAO I knew how to do it but can't seem to figure it out in ADO.


Why? Why? Why? everyone asks why would I do this... The program will collect data but I don't want to send out a database in the install and some tables won't be needed for some users. This way only what is needed by the user will be created at the time they need it.
0
Comment
Question by:gwiz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 70

Accepted Solution

by:
Éric Moreau earned 100 total points
ID: 7158295
0
 
LVL 3

Expert Comment

by:schworak
ID: 7158382
Is there no way to do it with standard ADO 2.5?
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7158384
No you need ADOX.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 7158385
You can create new tables using the "CREATE TABLE" syntax using the Execute method of your ADO connection object but the database itself must be created using ADOX.
0
 
LVL 52

Expert Comment

by:Ryan Chong
ID: 7158895
Here are some other examples:

Create a Database, Tables, Columns and Indexes Using ADOX
http://www.freevbcode.com/ShowCode.Asp?ID=3315

Create an Access 2000 Database Using ADOX
http://www.freevbcode.com/ShowCode.Asp?ID=803
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to compare ms sql hashbytes results within vb6 5 105
Added a column screws up code 5 75
SQL Server 2012 to SQL Server 2016 24 50
2 Global Vars, 1 List Box 4 24
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question