This utility can be used to generate the code to create an Access *.mdb database using DAO, based on a model database file.
If you want to avoid shipping an empty database with your program, then you can create the new database by code.
This utility generates the code based on an existing MDB database file.
It produces the code to create all the tables, Indexes, Fields and Relations (not the particular Access objects like Modules, Queries or Forms).
Also, the Access description of the fields is preserved.
There are two caveats that you may want to know:
1) The UnicodeCompression for Text fields is lost.
2) The visual position of the tables in the Relations design window of Access is lost.
You can use the generated code even if you don't use DAO in your program, but you will need to add the reference to "Microsoft DAO 3.6 Object Library".
Don't worry about the new reference added because it's already installed in all current Windows, so you don't need to add any new file for distribution (as it is also for ADO).
If you want to avoid shipping an empty database with your program, then you can create the new database by code.
This utility generates the code based on an existing MDB database file.
It produces the code to create all the tables, Indexes, Fields and Relations (not the particular Access objects like Modules, Queries or Forms).
Also, the Access description of the fields is preserved.
There are two caveats that you may want to know:
1) The UnicodeCompression for Text fields is lost.
2) The visual position of the tables in the Relations design window of Access is lost.
You can use the generated code even if you don't use DAO in your program, but you will need to add the reference to "Microsoft DAO 3.6 Object Library".
Don't worry about the new reference added because it's already installed in all current Windows, so you don't need to add any new file for distribution (as it is also for ADO).