Solved

Creating an MS Access database from ADO?

Posted on 2002-07-16
5
150 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
  • 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 50

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
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…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

810 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