Create Access File through ODBC

L

Lupina

Hi

How to create new empty MS Access file through ODBC,
and next how to create new table?

Thanks
 
N

news.microsoft.com

Actually I don't think you can. What I would do is create a templdate mdf
file. Use code to copy it and write a module for DDL.

HTH,

Nick Harris, MCSD
 
L

Lupina

Ok, so is another way to do it?
I have to stress that , it would be a new file with new table.
 
J

Jim Hughes

Add a reference to the COM Microsoft DAO 3.6 Object Library.

Dim dbe As New dao.DBEngine
dbe.CreateDatabase("db1.mdb", dao.LanguageConstants.dbLangGeneral)

dbe = Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top