"Michael (michka) Kaplan" wrote
That notwithstanding, it is possible to create a Wizard that can generate a
database. The "database wizard" to which michka refers is one that includes
wizards for generating multiple kinds of databases, but you can create a
specialized one to create one particular type. The problem is that there has
been little incentive to create such Wizards or templates, because it is far
easier and more flexible to create an empty database and let the user modify
it directly.
If kywoo is _compelled_ to write an .MDZ that works as Microsoft's MDZs do,
I fear he is Simply Out of Luck
If a Wizard will do, he/she should search for documentation on creating
Wizards (and there is some of that) for producing Controls. Then he/she
should realize that his/her Wizard will be constructed in similar fashion,
step after step. Each step may be no more complicated than a Control Wizard,
but he/she will end up with a Database Wizard that, as a whole, appears to
be complex.
If it were me, I'd start with an empty database of the kind I want, include
that inside my Wizard, and modify and export the objects to the created
database rather than trying to use all the CreateXxxxx statements to create
everything out of thin air. Unfortunately, that's about all the guidance I
have to offer.
The previously-mentioned
http://msdn.microsoft.com and also
http://support.microsoft.com are good places to start looking for
information on creating Wizards.
Just as a matter of idle speculation, I wonder if kywoo is so _compelled_ to
do something that is difficult rather than something that would be a great
deal simpler because this is a school assignment. It's not that we aren't
willing to help students over stumbling blocks here; it's just that we
aren't willing to _do_ their homework because we know they won't learn
anything if we do.
Larry Linson
Microsoft Access MVP