Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Access DB using script

Status
Not open for further replies.

karlomutschler

Programmer
Jun 5, 2001
75
DE
Hi all,
how do I create a db, tables and fields using a script ?

Is it possible to view the code for a db with tables and fields created by using the db-assistant ?

Thanks and kind regards
Karlo meistertools@gmx.net
 
Hi,
Here is a link to the MSDN page that shows how to accomplish this task within VBA code. It uses the "CreateDatabase" method.

The sample also shows how to create a new table with two fields.

Good luck !!!! If this tip has been helpful, be sure to click on the "Mark this post as a helpful/expert post!".

Randy Smith
California Teachers Association
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top