Microsoft KB Archive/104569
ACC1x: How to Run MS Access Wizards or Open the WIZARD.MDA File
The information in this article applies to:
- Microsoft Access versions 1.0, 1.1
You can cause the Microsoft Access Wizards to run by calling the zwWizMain() function that is defined in the zwUI module of the WIZARD.MDA file.
The zwWizMain() function is declared as
Function zwWizMain (<szTable> As String, ByVal <fReport> As Integer)
where <szTable> is a string value that is the name of an existing table or query in the open database, and <fReport> is a Boolean value. The value for <fReport> is either 0 or 1. Zero will open the FormsWizard, and 1 will open the ReportWizard.
You can also open the WIZARD.MDA file in Microsoft Access in order to view the code used by the FormsWizard and ReportWizard. To open the WIZARD.MDA file, do the following:
- While Microsoft Access is not running, open the MSACCESS.INI file located in your Windows directory. You can use any text editor (for example, the Microsoft Windows Notepad editor) to open the MSACCESS.INI file.
- Locate the [Libraries] section in the file. It should look like:
- Comment out the "wizard.mda=ro" line by putting a semicolon at the beginning of the line. The section should now look like:
- Save and close the MSACCESS.INI file.
- Start Microsoft Access.
- From the File menu, choose Open Database.
- Select the WIZARD.MDA file in the Open Database dialog box.
With the WIZARD.MDA file open, you can view the code used by the Wizards. The following example demonstrates how to call the zwWizMain() function from an Immediate window:
?zwWizMain ("My Table", False)
NOTE: You will not be able to run the Wizards as you would normally while the WIZARD.MDA file is open. To run the Wizards normally, you need to remove the change made to the MSACCESS.INI file in step 3 above, and then restart Microsoft Access.
Additional query words: zwinitwizard
Keywords : kbprg
Issue type : kbhowto
Last Reviewed: November 4, 2000