In the Real WorldAccess Wizardry

In the Real World Access Wizardry

Access 1.0 had only a few wizards; Access 2003 has 46, the same number as Access 2002. Microsoft defines a wizard as "A Microsoft Access tool that asks you questions and creates an object according to your questions." The "Wizards, add-ins, and Builders in Microsoft Access 2003" online help topic lists 51 wizards, but four items in the list Documentor, Macro-To-Module Converter, Subform/Subreport Field Linker, and Switchboard Manager don't carry the Wizard suffix and are better classified as utilities.

Form-related wizards are the most numerous. The following nine wizards, listed in alphabetical order, assist you in creating custom forms:

  • graphics/access_2002_new_icon.gif AutoForm Wizard automatically generates a form. Access 2002 added PivotTable and PivotChart types.

  • AutoFormat Wizard applies a specific format to a form.

  • Chart Wizard adds to a form a graph or chart bound to a table or query.

  • Combo Box Wizard generates one of three classes of bound and unbound combo box controls on a form.

  • Command Button Wizard adds a command button control.

  • graphics/access_2002_new_icon.gif Form Wizard generates a new form. Access 2002 added the capability to generate a PivotTable or PivotChart form.

  • Option Group Wizard adds a group of option buttons.

  • Subform/Subreport Field Linker creates or alters links between a main form and subform.

  • Subform/Subreport Wizard adds a new subform.

One of the reasons that Access 2003 has the largest wizard population of all Office 2003 applications is that Access is the most complex of the Office 2003 members from both the user and developer standpoint. Access's complexity, compared with Word, Excel, PowerPoint, and Outlook, undoubtedly is the reason that Microsoft doesn't include Access 2003 in the Standard or Small Business editions of Office 2003. The omission of Access from the Small Business edition is surprising, because establishing and maintaining databases is crucial for almost every enterprise, regardless of size.

Wizards are classified as Access add-ins, which also include Builders, menu add-ins, and a new class of Component Object Model (COM) add-ins. The standard set of wizards and builders that come with Access appear in the HKEY_LOCAL_MACHINE\Software\Microsoft\Office\11.0\Access\Wizards key of the Registry. Figure 15.63 shows the top-level Registry keys for the Control and Form Wizards used in this and the preceding chapter. Microsoft classifies Access Builders as Property Wizards in the Registry.

Figure 15.63. The Registry includes keys for each Access wizard and Builder.

graphics/15fig63.jpg

Most of the wizards are contained in the Acwzmain.mde file in your ...\Office11 folder; the Acwztool.mde Advanced Wizards file includes the Add-In Manager and some Builders; and Acwzlib.mde holds the Import/Export Wizards. You can open the Acwz... .mde files in Access 2003, but you can't make changes to objects. It's unfortunate that Microsoft uses the .mde format to prevent viewing the wizard VBA code; Access wizards are excellent examples of VBA power programming in action.



Special Edition Using Microsoft Office Access 2003
Special Edition Using Microsoft Office Access 2003
ISBN: 0789729520
EAN: 2147483647
Year: 2005
Pages: 417

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net