By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,234 Members | 1,877 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,234 IT Pros & Developers. It's quick & easy.

Create an Access Database File

P: n/a
Can anyone please tell me how I can create an Access Database in a specific
directory (not memory), presumably by using oledb.

Regards

Ian

Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
* "The Genie" <No**************@bigfoot.com> scripsit:
Can anyone please tell me how I can create an Access Database in a specific
directory (not memory), presumably by using oledb.


This cannot be done with OLEDB, you will have to use ADOX.

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #2

P: n/a
Cor
Hi Genie,

set a reference to COM adox ext 2.x for dll and security
\\\
Dim catNewDB As New ADOX.Catalog
catNewDB.Create("Provider=Microsoft.Jet.OLEDB.4.0; " & "Data
Source=C:\db1.mdb")
///

I hope this helps a little bit?

Cor
Can anyone please tell me how I can create an Access Database in a specific directory (not memory), presumably by using oledb.

Nov 20 '05 #3

P: n/a
Cor,
Thanks for the help.

Regards

Ian

"Cor" <no*@non.com> wrote in message
news:O3**************@TK2MSFTNGP11.phx.gbl...
Hi Genie,

set a reference to COM adox ext 2.x for dll and security
\\\
Dim catNewDB As New ADOX.Catalog
catNewDB.Create("Provider=Microsoft.Jet.OLEDB.4.0; " & "Data
Source=C:\db1.mdb")
///

I hope this helps a little bit?

Cor
Can anyone please tell me how I can create an Access Database in a

specific
directory (not memory), presumably by using oledb.


Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.