Programmatically create Access 2007 database

  • Thread starter Thread starter 68756E746572
  • Start date Start date
On 31/01/2008 in message
<62fb1def-4a41-4be3-871a-bc6e81e9ba92@e10g2000prf.googlegroups.com>
Greetings...

From this:
http://support.microsoft.com/default.aspx?scid=kb;en-us;317881
article I've knew how to create access 2000 databases. But what with
2007?

Best regards...

You will be delighted to hear it's exactly the same except for the
connection string, a snippet from my createDB function (which is called
with filePath set up)

if (access12)
connString = "Provider=Microsoft.ACE.OLEDB.12.0; Data Source=";
else
connString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=";

connString += filePath;
connString += ";";
catNewDB.Create(connString);
 

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

Back
Top