All of these forms from the new database templates use the new embedded macros
instead of VBA code for various purposes. Using macros instead of code seems to me to
be a step back to the earliest days of Access, but embedded macros do have the advantage of avoiding
security problems that can occur if you try to run code that is not signed with a digital signature (or
even when you run signed code, in Windows Vista). For simple tasks, such as closing a form or run-
ning a command or two, embedded macros work fine, but for more complex tasks, they won’t do the
job; you still need to write VBA code to perform complex tasks such as iterating through a recordset
or creating new objects in other Office applications.
I also imported reports from the Tasks and Events databases, which you can view by selecting the
report name from the Reports section of the sample database’s main menu, shown in Figure 8.15.
FIGURE 8.15
Selecting a report from the main menu.
Depending on what type of printer you have, you may have to adjust the margins on
NOTENOTE some of these reports to avoid error messages when opening them.
NEW FEATURENEW FEATURE
Working with Outlook Items 8