Creating an .mdb file via VBA

Dave Punky

Board Regular
Joined
Jan 7, 2010
Messages
133
Hi all,

This may be something obvious but I simply want to create a new .mdb (Database) file via VBA code.

I would normally enable the Access reference in VBA and just create a new database that way, however the system where I plan on using this doesn't have Access references so I need to create the file generally and add the tables using DAO Objects to create tables/fields via SQL.

Basically I just need to be pointed in the right direction for creating the files to begin with if anyone can help?
 
Upvote 0
Hi xenou,

Thanks for the links, outlines everything I needed and answers a few other questions I had!
 
Upvote 0

Forum statistics

Threads
1,226,839
Messages
6,193,264
Members
453,786
Latest member
ALMALV

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top