Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How can I create ACCESS Database using VB.NET code???

In old version I was use code:

DAODBEngine.Workspaces(0).CreateDatabase(DBName, ..., ...)

But how do it in VB.NET?

Posted

Finally a question I can answer!!!!!

 

This is my first time trying to answer a question so I hop I get this right (use at your own risk.) - BUT works for me in my app.

 

catalog = CreateObject("ADOX.Catalog")

catalog.Create("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & path)

 

 

Hope that helps

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...