Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating a Database with VBA

Can a database be created using late binding with DAO? I havn't been
successful in doing it. If not, can a database be created with ADO? If so,
what is the code?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default Creating a Database with VBA


"Philip Spitzer" wrote in message
...
Can a database be created using late binding with DAO? I havn't been
successful in doing it. If not, can a database be created with ADO? If so,
what is the code?



In my opinion, ADO is better if you want to connect to a database like
Access or SQL Server. Search for "Access" in this ng and you will find a
couple of links. What is it that you want to do?

/Fredrik


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Creating a Database with VBA


Philip Spitzer wrote:
Can a database be created using late binding with DAO? I havn't been
successful in doing it. If not, can a database be created with ADO?

If so,
what is the code?


Set Cat = CreateObject("ADOX.Catalog")
Cat.Create _
"Provider=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=C:\New_Jet_DB.mdb"

Jamie.

--

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
creating database help please! deemo85 Excel Discussion (Misc queries) 3 February 14th 10 09:52 PM
Creating a Database in Excel Kevin New Users to Excel 9 September 11th 06 02:11 PM
Creating a database in Excel Rachel[_5_] Excel Programming 1 September 14th 04 09:01 PM
creating a database and database query Tim Excel Programming 1 March 5th 04 06:17 PM
Creating an Excel Database! eijaz Excel Programming 2 November 15th 03 02:40 AM


All times are GMT +1. The time now is 09:32 AM.

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"