PC Review


Reply
Thread Tools Rate Thread

ADODB Create New Database from Excel

 
 
=?Utf-8?B?Q2xheW1hbg==?=
Guest
Posts: n/a
 
      16th Jul 2007
Is it possible to create a new database from Excel using SQL and ADODB? I
cannot create a connection to a file that is not there.
--
Adios,
Clay Harryman
 
Reply With Quote
 
 
 
 
=?Utf-8?B?Q2xheW1hbg==?=
Guest
Posts: n/a
 
      16th Jul 2007
Found a possible solution at
http://msdn2.microsoft.com/en-us/library/aa164898(office.10).aspx
Reading through a LOT of material right now.
--
Adios,
Clay Harryman


"Clayman" wrote:

> Is it possible to create a new database from Excel using SQL and ADODB? I
> cannot create a connection to a file that is not there.
> --
> Adios,
> Clay Harryman

 
Reply With Quote
 
Bob Phillips
Guest
Posts: n/a
 
      16th Jul 2007

'----------------------------------------------------------------
Sub CreateAccessDatabase(DBPath As String)
'----------------------------------------------------------------
Dim oADOCat As Object

Set oADOCat = CreateObject("ADOX.Catalog")

oADOCat.Create "Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & DBPath

Set oADOCat = Nothing
End Sub



--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Clayman" <(E-Mail Removed)> wrote in message
news:09AF3E5C-56C4-4A8A-A176-(E-Mail Removed)...
> Is it possible to create a new database from Excel using SQL and ADODB? I
> cannot create a connection to a file that is not there.
> --
> Adios,
> Clay Harryman



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
database connection vba ADODB & ADOX liam_oconnell Microsoft Excel Programming 2 27th Apr 2009 03:37 PM
Using ADODB, how do I create a msgbox when duplicate data is enter =?Utf-8?B?Q2hyaXNt?= Microsoft Access 3 29th May 2007 10:35 PM
Create an ADODB Connection to a dBASE 5 .dbf file =?Utf-8?B?U2FyYQ==?= Microsoft Access VBA Modules 1 12th Aug 2006 06:50 PM
access database (adodb)from excel vba =?Utf-8?B?QXNrRXhjZWw=?= Microsoft Excel Worksheet Functions 0 17th Jul 2006 02:01 AM
Create local table from ADODB recordset martyn Microsoft Access VBA Modules 2 21st May 2004 02:33 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:05 AM.