Part II: Programming Microsoft Access
568
FIGURE 15.11
SetLocalVar has been added to the body of the If block
Beginning of If block
End of If block SetLocalVar action within If block
You wouldn’t be able to save this macro in its current condition. The If block requires its condi-
tional expression, and none of the properties of SetLocalVar have been set. Figure 15.12 shows
this macro with the conditional expression provided and the required SetLocalVar properties
filled in.
Although the macro in Figure 15.12 doesn’t do anything significant, we can use it to demonstrate
other features of the Macro Designer.