Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default ADODB Create New Database from Excel

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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 95
Default ADODB Create New Database from Excel

Found a possible solution at
http://msdn2.microsoft.com/en-us/lib...ffice.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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default ADODB Create New Database from Excel


'----------------------------------------------------------------
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" wrote in message
...
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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Create Excel Database TonyD Excel Discussion (Misc queries) 1 January 29th 07 11:24 PM
access database (adodb)from excel vba AskExcel Excel Worksheet Functions 0 July 17th 06 02:01 AM
Create database in excel? wirthless New Users to Excel 7 October 30th 05 02:57 PM
how can I create a ODBC database in excel Deler9 Excel Worksheet Functions 1 July 31st 05 08:28 PM
How do I create an Excel database? Kenn Holmberg New Users to Excel 12 July 20th 05 05:27 PM


All times are GMT +1. The time now is 07:04 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"