Part IV: Professional Database Development
1062
The macro that opens the reports uses submacros, as well as the Condition column. Table 30.3
shows the submacro names, conditions, actions, and action arguments for mcrReportMenu (a
portion of which is shown in Figure 30.10), which opens one of three reports. The Filter Name
and Where Condition arguments are blank for each OpenReport action.FIGURE 30.9frmReportMenu uses a frame to select the view in which to open the Contacts, Products, and Sales
reports.
TABLE 30.3mcrReportMenu
Submacro Name Condition ActionAction
ArgumentAction
Argument
SettingOpenContacts [Forms]![frmReportMenu
]![fraView]=1OpenReport Report Name rptContactsView Print
Window Mode Normal
[Forms]![frmReportMenu
]![fraView]=2OpenReport Report Name rptContactsView Print
Preview
Window Mode Normal
OpenProducts [Forms]![frmReportMenu
]![fraView]=1OpenReport Report Name rptProductsView Print
Preview
Window Mode Normal